vale46n1 / immich_duplicate_finder

A Comprehensive Solution for Identifying and Managing Duplicate Photos in Immich
Apache License 2.0
184 stars 12 forks source link

list index out of range after running find duplicate photos #26

Closed athiosh closed 4 months ago

athiosh commented 4 months ago

Just ran the search for the first time and it returned below error.

` IndexError: list index out of range 2024-04-19 03:48:09.150 Uncaught app exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script exec(code, module.dict) File "/immich_duplicate_finder/app.py", line 130, in main() File "/immich_duplicate_finder/app.py", line 117, in main generate_db_duplicate() File "/immich_duplicate_finder/imageDuplicate.py", line 187, in generate_db_duplicate save_duplicate_pair(metadata[sorted_pair[0]], metadata[sorted_pair[1]], distances[0][j])


IndexError: list index out of range
`
vale46n1 commented 4 months ago

did you generate the vector db prior the duplicated database generation?

athiosh commented 4 months ago

Just gave it another try and start vector first and it is working. Thanks