You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically I chose a model different than what I had been using, clicked the Invoke button and it gave me a server error and the following appeared in terminal:
[2024-05-20 14:11:21,196]::[InvokeAI]::ERROR --> Error while invoking session 339be1d6-6e7b-4dd2-a421-f14f79a64d63, invocation 89b8af93-2edd-4e71-8925-ca8e685af789 (i2l):
[Errno 20] Not a directory: '/Volumes/MegacityTwo/InvokeAI/models/.cache/.DS_Store'
[2024-05-20 14:11:21,196]::[InvokeAI]::ERROR --> Traceback (most recent call last):
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/session_processor/session_processor_default.py", line 185, in _process
outputs = self._invocation.invoke_internal(
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/invocations/baseinvocation.py", line 281, in invoke_internal
output = self.invoke(context)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/invocations/latent.py", line 1260, in invoke
vae_info = context.models.load(self.vae.vae)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/shared/invocation_context.py", line 351, in load
return self._services.model_manager.load.load_model(model, _submodel_type, self._data)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/model_load/model_load_default.py", line 80, in load_model
).load_model(model_config, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 62, in load_model
locker = self._convert_and_load(model_config, model_path, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 89, in _convert_and_load
loaded_model = self._do_convert(config, model_path, cache_path, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 120, in _do_convert
self.convert_cache.make_room(calc_model_size_by_fs(model_path))
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 74, in make_room
lru_models = sorted(self._cache_path.iterdir(), key=by_atime, reverse=True)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 68, in by_atime
atimes = sorted([x.stat().st_atime for x in path.iterdir() if x.is_file()], reverse=True)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 68, in
atimes = sorted([x.stat().st_atime for x in path.iterdir() if x.is_file()], reverse=True)
File "/opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pathlib.py", line 1017, in iterdir
for name in self._accessor.listdir(self):
NotADirectoryError: [Errno 20] Not a directory: '/Volumes/MegacityTwo/InvokeAI/models/.cache/.DS_Store'
When I went into that folder and tried to delete that file there wasn't even a file by that name. So I have no idea what its issue is as to why it is doing that.
What you expected to happen
I expected it to simply generate an image and not an error.
How to reproduce the problem
I'm not sure if this has anything to do with it but I had recently moved all my generated images to another location and then ran the database cleaning routine. Also I had added a line in the yaml file to tell it where to start storing images it makes going forward. Other than that, I'm not sure exactly. I am going to manually convert the models I use the most and try to eliminate the problem that way but I was asked to generate a bug report so that is what I am doing.
Additional context
No response
Discord username
Vanadium74
The text was updated successfully, but these errors were encountered:
Hello darkness my old friend,
We've come to debug you again.
Because a Finder softly creeping,
Left its .DS_Store while I was sleeping,
And the fixes that were planted in my code,
Do not remain, in the github repo.
Is there an existing issue for this problem?
Operating system
macOS
GPU vendor
Apple Silicon (MPS)
GPU model
Mac M1 Ultra
GPU VRAM
128GB
Version number
4.2.0
Browser
126.0
Python dependencies
{
"accelerate": "0.29.2",
"compel": "2.0.2",
"cuda": null,
"diffusers": "0.27.2",
"numpy": "1.26.4",
"opencv": "4.9.0.80",
"onnx": "1.15.0",
"pillow": "10.3.0",
"python": "3.10.12",
"torch": "2.2.2",
"torchvision": "0.17.2",
"transformers": "4.39.3",
"xformers": null
}
What happened
Basically I chose a model different than what I had been using, clicked the Invoke button and it gave me a server error and the following appeared in terminal:
[2024-05-20 14:11:21,196]::[InvokeAI]::ERROR --> Error while invoking session 339be1d6-6e7b-4dd2-a421-f14f79a64d63, invocation 89b8af93-2edd-4e71-8925-ca8e685af789 (i2l):
[Errno 20] Not a directory: '/Volumes/MegacityTwo/InvokeAI/models/.cache/.DS_Store'
[2024-05-20 14:11:21,196]::[InvokeAI]::ERROR --> Traceback (most recent call last):
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/session_processor/session_processor_default.py", line 185, in _process
outputs = self._invocation.invoke_internal(
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/invocations/baseinvocation.py", line 281, in invoke_internal
output = self.invoke(context)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/invocations/latent.py", line 1260, in invoke
vae_info = context.models.load(self.vae.vae)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/shared/invocation_context.py", line 351, in load
return self._services.model_manager.load.load_model(model, _submodel_type, self._data)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/app/services/model_load/model_load_default.py", line 80, in load_model
).load_model(model_config, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 62, in load_model
locker = self._convert_and_load(model_config, model_path, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 89, in _convert_and_load
loaded_model = self._do_convert(config, model_path, cache_path, submodel_type)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/load_default.py", line 120, in _do_convert
self.convert_cache.make_room(calc_model_size_by_fs(model_path))
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 74, in make_room
lru_models = sorted(self._cache_path.iterdir(), key=by_atime, reverse=True)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 68, in by_atime
atimes = sorted([x.stat().st_atime for x in path.iterdir() if x.is_file()], reverse=True)
File "/Volumes/MegacityTwo/InvokeAI/.venv/lib/python3.10/site-packages/invokeai/backend/model_manager/load/convert_cache/convert_cache_default.py", line 68, in
atimes = sorted([x.stat().st_atime for x in path.iterdir() if x.is_file()], reverse=True)
File "/opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pathlib.py", line 1017, in iterdir
for name in self._accessor.listdir(self):
NotADirectoryError: [Errno 20] Not a directory: '/Volumes/MegacityTwo/InvokeAI/models/.cache/.DS_Store'
When I went into that folder and tried to delete that file there wasn't even a file by that name. So I have no idea what its issue is as to why it is doing that.
What you expected to happen
I expected it to simply generate an image and not an error.
How to reproduce the problem
I'm not sure if this has anything to do with it but I had recently moved all my generated images to another location and then ran the database cleaning routine. Also I had added a line in the yaml file to tell it where to start storing images it makes going forward. Other than that, I'm not sure exactly. I am going to manually convert the models I use the most and try to eliminate the problem that way but I was asked to generate a bug report so that is what I am doing.
Additional context
No response
Discord username
Vanadium74
The text was updated successfully, but these errors were encountered: