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

Fix convert RGBA to RGB image before Resnet Evaluation in imageDuplicate.py #33

Closed Deathproof76 closed 3 days ago

Deathproof76 commented 3 months ago

Possible fix for https://github.com/vale46n1/immich_duplicate_finder/issues/32

ResNet does seem to have a problem with RGBA encoded images. This might help by converting an image to RGB before duplicate evaluation.

(btw: first PR ever, sorry in advance if I missed anything)

edit: ran on half my assets so far and everything regarding duplicate preview, comparison and deletion seems to be in working order

Fclem commented 2 months ago

I have tested this fix, and can confirm that it solves issue #32