mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix --config arg not being recognized
This commit is contained in:
parent
69cc0993f8
commit
ffa54f4a35
@ -48,11 +48,12 @@ def main():
|
||||
# alert - setting a global here
|
||||
Globals.try_patchmatch = args.patchmatch
|
||||
|
||||
if not os.path.exists(os.path.join(Globals.root,'configs','models.yaml')):
|
||||
print(f"\n** Error. The file {os.path.join(Globals.root,'configs','models.yaml')} could not be found.")
|
||||
print(f'** Please check the location of your invokeai directory and use the --root_dir option to point to the correct path.')
|
||||
print(f'** This script will now exit.')
|
||||
sys.exit(-1)
|
||||
if not args.conf:
|
||||
if not os.path.exists(os.path.join(Globals.root,'configs','models.yaml')):
|
||||
print(f"\n** Error. The file {os.path.join(Globals.root,'configs','models.yaml')} could not be found.")
|
||||
print(f'** Please check the location of your invokeai directory and use the --root_dir option to point to the correct path.')
|
||||
print(f'** This script will now exit.')
|
||||
sys.exit(-1)
|
||||
|
||||
print(f'>> InvokeAI runtime directory is "{Globals.root}"')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user