final polish before release candidate

- Fix issue that prevented web ui from starting if
  ROOT/databases/invokeai.db not found.

- Rebuild front end
This commit is contained in:
Lincoln Stein
2023-07-26 10:47:37 -04:00
parent 575ebaeb75
commit af8fc6ff82
8 changed files with 660 additions and 33 deletions

View File

@ -8,9 +8,9 @@ from invokeai.app.services.config import (
def check_invokeai_root(config: InvokeAIAppConfig):
try:
assert config.model_conf_path.exists()
assert config.db_path.exists()
assert config.models_path.exists()
assert config.model_conf_path.exists(), f'{config.model_conf_path} not found'
assert config.db_path.parent.exists(), f'{config.db_path.parent} not found'
assert config.models_path.exists(), f'{config.models_path} not found'
for model in [
'CLIP-ViT-bigG-14-laion2B-39B-b160k',
'bert-base-uncased',
@ -18,9 +18,11 @@ def check_invokeai_root(config: InvokeAIAppConfig):
'sd-vae-ft-mse',
'stable-diffusion-2-clip',
'stable-diffusion-safety-checker']:
assert (config.models_path / f'core/convert/{model}').exists()
except:
path = config.models_path / f'core/convert/{model}'
assert path.exists(), f'{path} is missing'
except Exception as e:
print()
print(f'An exception has occurred: {str(e)}')
print('== STARTUP ABORTED ==')
print('** One or more necessary files is missing from your InvokeAI root directory **')
print('** Please rerun the configuration script to fix this problem. **')