Giter VIP home page Giter VIP logo

immich_duplicate_finder's Introduction

Immich Duplicate Finder

A Comprehensive Solution for Identifying and Managing Duplicate Photos in Immich

image

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.

Features:

  • 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.

FAISS Key Features:

  • 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.

Future development:

  • Auto Deletion Options: Multiple ways to handle detected duplicates, including auto-deletion, manual review, and archival solutions.
  • React frontend

Getting Started

"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:

Clone the Repository

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

Install Dependencies

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.

Launch the App

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.

Docker setup

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.

Initial Configuration

After launching the app, you'll need to complete a simple initial configuration to connect "Immich Duplicate Finder" with your Immich server:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Disclaimer

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.

immich_duplicate_finder's People

Contributors

vale46n1 avatar mmomjian avatar schott12521 avatar jw-ch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.