Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError('storageFilename') #76

Open
bdsv opened this issue Nov 15, 2024 · 0 comments
Open

KeyError('storageFilename') #76

bdsv opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bdsv
Copy link

bdsv commented Nov 15, 2024

Hi all.

I think this issue already [existed] (#23 ) in the past but I faced it again.
I restarted the process to find duplicates without downloading the images again.
And around 51% (more or less), I got the following error:

[2024-11-14 23:16:16,876: WARNING/ForkPoolWorker-31]
51%|█████ | 69346/136269 [10:05<09:59, 111.71it/s]
[2024-11-14 23:16:16,979: WARNING/ForkPoolWorker-31]
51%|█████ | 69358/136269 [10:05<09:51, 113.09it/s]
[2024-11-14 23:16:17,089: WARNING/ForkPoolWorker-31]
51%|█████ | 69370/136269 [10:05<09:56, 112.14it/s]
[2024-11-14 23:16:17,195: WARNING/ForkPoolWorker-31]
51%|█████ | 69382/136269 [10:05<09:55, 112.25it/s]
[2024-11-14 23:16:17,206: WARNING/ForkPoolWorker-31]
51%|█████ | 69383/136269 [10:05<09:43, 114.61it/s]
[2024-11-14 23:16:17,213: ERROR/ForkPoolWorker-31] Task app.tasks.process_duplicates[796340ac-e13f-478e-bbd9-2806427b970a] raised unexpected: KeyError('storageFilename')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/src/app/app/init.py", line 25, in call
return self.run(*args, **kwargs)
File "/usr/src/app/app/tasks.py", line 111, in process_duplicates
results = task_instance.run()
File "/usr/src/app/app/lib/process_duplicates_task.py", line 113, in run
similarity_map = duplicate_detector.calculate_similarity_map()
File "/usr/src/app/app/lib/duplicate_image_detector.py", line 61, in calculate_similarity_map
embeddings = self._calculate_embeddings()
File "/usr/src/app/app/lib/duplicate_image_detector.py", line 113, in _calculate_embeddings
storage_path = self._get_storage_path(media_item)
File "/usr/src/app/app/lib/duplicate_image_detector.py", line 307, in _get_storage_path
return self.image_store.get_storage_path(media_item["storageFilename"])
KeyError: 'storageFilename'

Please let me know if someone wishes to see any other log information.

Thank you.

@mtalcott mtalcott added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants