Nevysha / Cozy-Nest

A collection of tweak to improve Auto1111 UI//UX
Other
381 stars 17 forks source link

[Issue]: missing nevyui_settings.json when sd --data-dir parameter is set #145

Closed TokcDK closed 1 year ago

TokcDK commented 1 year ago

What happened?

sd run parameters: -u -m launch --data-dir /content/drive/MyDrive/SD --xformers --xformers-flash-attention

error: config = get_dict_from_config() File "/content/drive/MyDrive/SD/extensions/Cozy-Nest/scripts/nevysha_cozy_nest.py", line 105, in get_dict_from_config reset_settings() File "/content/drive/MyDrive/SD/extensions/Cozy-Nest/scripts/nevysha_cozy_nest.py", line 144, in reset_settings save_settings( File "/content/drive/MyDrive/SD/extensions/Cozy-Nest/scripts/nevysha_cozy_nest.py", line 96, in save_settings open(CONFIG_FILENAME, 'w').close() FileNotFoundError: [Errno 2] No such file or directory: 'extensions/Cozy-Nest/nevyui_settings.json'

Webui

Automatic1111's webui

What browsers are you seeing the problem on?

Chrome

Additional info

Suppose the error because the extensions is not expecting that data dir can be changed and it trying to open nevyui_settings.json when dir is set to /content/repository when need to search in /content/drive/MyDrive/SD/

Relevant browser log output

No response

Relevant log output from the webui

No response

Checklist