Closed Chiunownow closed 10 months ago
Please use the model listed in this page https://huggingface.co/immich-app
Sorry, I don't know which model I should choose. I try immich-app/RN50__cc12m
immich-app/RN50x64__openai
, they all get error log like
Exception in ASGI application
Traceback (most recent call last):
File "/usr/src/app/main.py", line 101, in load
await loop.run_in_executor(app.state.thread_pool, _load)
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/app/main.py", line 94, in _load
model.load()
File "/usr/src/app/models/base.py", line 65, in load
self._load()
File "/usr/src/app/models/image_classification.py", line 39, in _load
processor = AutoImageProcessor.from_pretrained(self.cache_dir, cache_dir=self.cache_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/transformers/models/auto/image_processing_auto.py", line 346, in from_pretrained
config_dict, _ = ImageProcessingMixin.get_image_processor_dict(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/transformers/image_processing_utils.py", line 329, in get_image_processor_dict
resolved_image_processor_file = cached_file(
^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/transformers/utils/hub.py", line 400, in cached_file
raise EnvironmentError(
OSError: /cache/image-classification/immich-app_RN50x64__openai does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co//cache/image-classification/immich-app_RN50x64__openai/None' for available files.
Please use the model listed in this page https://huggingface.co/immich-app
I had the same problem, but I can't find any collection for image classification in https://huggingface.co/immich-app.
Any updates on this problem?
The bug
Environment
Issue
ML job
objectTagging/classify-image
can't run on apple cilicon withmicrosoft/resnet-50
andapple/mobilevit-small
.Logs
The OS that Immich Server is running on
Unraid and M1 MBA
Version of Immich Server
v1.85.0
Version of Immich Mobile App
-
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response