The "Immich Duplicate Finder" is an tool designed to seamlessly be integrated with the Immich API, targeting the efficient detection and management of duplicate images through hashing detection (and future incorporation of machine learning technologies). This project aims to enhance storage optimization and organization within the Immich ecosystem.
- Highly Accurate Detection: Utilizes state-of-the-art algorithms to identify duplicates with precision based on hashing values and FAISS Vector Database using ResNet152.
- Easy Integration: Designed to be effortlessly integrated with existing Immich installations, ensuring a smooth user experience without disrupting the workflow.
- Performance Optimized: Engineered for minimal resource consumption, ensuring fast and efficient duplicate detection even in large datasets.
- User-Friendly Interface: Comes with a simple and intuitive interface, making it accessible to both technical and non-technical users, further enriched by the comparison slider for an enhanced visual interaction.
- Better Picture Understanding: ResNet152 helps us see and understand tiny details in pictures, making our tool smarter at finding similarities and differences.
- Find Similar Photos Easier: It's now easier for us to spot photos that look alike. This is great for organizing photos or finding duplicates.
- FAISS Vector Database Generation: Leveraging the power of FAISS, we now generate and store high-dimensional feature vectors extracted from images. This allows for efficient similarity searches and duplicate detection.
- Advanced Feature Extraction: Utilizing a pretrained ResNet18 model, we extract meaningful features from images, ensuring high accuracy in identifying similarities.
- Euclidean Distance for Similarity Measurement: By employing Euclidean distance measures, our system accurately finds and groups similar images, aiding in the decluttering and organization of image assets.
- Streamlit Integration: For an improved user experience, we've integrated Streamlit, providing an intuitive interface for progress tracking and interactive data exploration.
- Auto Deletion Options: Multiple ways to handle detected duplicates, including auto-deletion, manual review, and archival solutions.
- React frontend
"Immich Duplicate Finder" is built as a Streamlit app in Python, making it easy to deploy and use with just a few steps. Follow these instructions to get up and running:
Begin by cloning this repository to your local machine. You can do this by running the following command in your terminal or command prompt:
git clone https://github.com/vale46n1/immich_duplicate_finder.git
Navigate to the cloned repository's directory and install the required dependencies using the provided requirements.txt
file:
cd immich_duplicate_finder
pip install -r requirements.txt
This command installs all necessary Python packages that "Immich Duplicate Finder" relies on.
With the dependencies installed, you can now launch the Streamlit app. Execute the following command:
streamlit run app.py
This will start the Streamlit server and automatically open your web browser to the app's page. Alternatively, Streamlit will provide a local URL you can visit to view the app.
If preferred, you can run Immich Duplicate Finder using the files in the docker/
subfolder of the repository. Download the docker-compose.yml
and Dockerfile
, and run docker compose up -d
. Immich Duplicate Finder will be accessible at localhost:8501
.
After launching the app, you'll need to complete a simple initial configuration to connect "Immich Duplicate Finder" with your Immich server:
-
Specify Immich Server Address: Upon first launching the app, in the sidebar, you'll be prompted to enter the address of your Immich server. This ensures that the "Immich Duplicate Finder" can communicate with your Immich installation.
-
Generate an API Key: Next, generate an API key within your Immich app. This is a critical step for authenticating and securing communication between the "Immich Duplicate Finder" and the Immich server.
-
Enter the API Key into the Program: Once you have your API key, enter it into the designated field in the "Immich Duplicate Finder" app. This links your specific Immich instance to the duplicate finder.
-
Data Persistence: To streamline your experience, the server address and API key are securely saved in a database. This means you won't need to re-enter this information every time you use the app, making future interactions quicker and more seamless.
This software is provided "as is", without any warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
This program is still under development and may contain bugs or defects that could lead to data loss or damage. Users are cautioned to use it at their own risk. The developers assume no responsibility for any damages, loss of information, or any other kind of loss resulting from the use of this program.
Enjoy exploring and managing duplicates in your Immich ecosystem with ease! If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.