Skip to main content

AI-based image clustering and exploration tool

Project description

PhotoMapAI

Rediscover your photo collection!

PhotoMapAI is a fast, modern image browser and search tool for large photo collections. It uses the CLIP computer vision model to enable text and image-based search, image clustering, and interactive slideshows with a responsive web interface. Its unique feature is a "semantic map" that clusters and visualizes your images by their content. Browse the semantic map to find and explore thematically-related groups of photos, or use text and/or image similarity search to find specific people, places, events, styles and themes.

PhotoMap main display showing the semantic map of the user's photo album

Features

  • Fast browsing of large image collections
  • AI-based text and image similarity search
  • Thematic image clustering and visualization
  • Flexible album management
  • Responsive UI for desktop and mobile
  • Support for wide range of image formats, including Apple's HEIC
  • Integration with the InvokeAI AI image generation system
  • Extensible backend (FastAPI)

The Semantic Map

PhotoMap's unique feature is its ability to identify thematically similar images and automatically cluster them, creating a "semantic map":

Big Semantic Map

In this map, each image in the photo collection is represented as a dot. The colors distinguish different clusters of related images. You can zoom in and out of the map and pan around it. Hover the mouse over a dot in order to see a preview thumbnail of its image, or click on a cluster to view its contents at full resolution.

You can move the semantic map around, shrink it down in size, or hide it altogether. As you browser your photo collection, a yellow dot marker will highlight the location of the current image in the map.

Text and Image Similarity Search

PhotoMap lets you search your collection by similarity to another image, by text, or by a combination of image and text as shown below:

Big Semantic Map

You can start an image similarity search by uploading a local image file, dragging an image from a web browser window or file browser, or by selecting an existing image from your collection. There's also a "Text to Avoid" field, which can be used to disfavor certain image content.

Support for Image Metadata

When viewing a photo in full-screen mode, you can pop out a little drawer to show its metadata, including the GPS location (if available), and the phone settings:

Image Metadata

If you are a user of the InvokeAI text-to-image generation tool, you can get quick access to the key settings used to generate the image, including the prompts, model and LoRAs in use, and the input images used for IPAdapters, ControlNets and the img2img raster layer. You can also display and copy the full generation graph in native JSON format and copy it to the clipboard.

InvokeAI Metadata

Other Features

PhotoMap supports most of the other features you would expect, including support for multiple separate photo albums, the ability to browse photos chronologically, an uncluttered fullscreen mode, and of course a configurable slideshow mode that can show images sequentially or shuffled.


Quick Start

Here are quick start instructions for Windows, Mac and Linux users using the automated installer scripts that are provided with this package. For instructions on manual installation, see Installation.

Windows

1. Download and unpack the source code

Download the PhotoMap source code as a .zip file from the latest stable Releases page. For development versions, use the "Download ZIP" link in the green "Code" button near the top of the GitHub PhotoMap home page.

Choose a convenient location in your home folder and unzip the file to create a new folder named PhotoMap.

2. Run the installer script

Navigate to the unpacked PhotoMap folder, find the INSTALL folder, and double-click the install_windows script file. The system will check that Python and other requirements are installed, download the necessary library files, and create a .bat script named start_photomap.

3. Start the server

Double-click start_photomap.bat to launch the server. You should see a few startup messages, followed by the URL for the running server.

4. Open your browser:

Navigate to http://localhost:8050 and follow the prompts to create and populate your first album.


Linux & Mac

1. Download and unpack the source code

Download the PhotoMap source code as a .zip file from the latest stable Releases page. For development versions, use the "Download ZIP" link in the green "Code" button near the top of the GitHub PhotoMap home page.

Choose a convenient location in your home directory and unzip the file to create a new folder named PhotoMap.

2. Run the installer script

Navigate to the PhotoMap folder and launch the install_linux_mac shell script file. The script will check that Python and other requirements are installed, download the necessary library files, and create a launcher script named start_photomap on your desktop.

3. Start the server

Double click start_photomap to launch the server. You will see a few startup messages followed by the URL for the running server.

4. Open your browser:

Navigate to http://localhost:8050 and follow the prompts to create and populate your first album.

Manual Install

Follow these instructions if you are comfortable with installing Python packages on the command line.

Mac/Linux

Make sure that your version of Python is between 3.10 and 3.12. Not all required libraries are available in 3.13.

python3 -m venv ~/photomap --prompt photomap source ~/photomap/bin/activate python3 -m pip install --upgrade pip pip install photomapai start_photomap

Then open your web browser and point it to http://127.0.0.1:8050. Follow the prompts to create your first album.

Windows

Make sure that your version of Python is between 3.10 and 3.12. Not all required libraries are available in 3.13. Also make sure that Python is on your PATH.

python3 -m venv C:\Users<your name>\Documents\photomap --prompt photomap C:\Users<your name>\Documents\photomap\Scripts\activate python3 -m pip install --upgrade pip pip install photomapai start_photomap

Then open your web browser and point it to http://127.0.0.1:8050. Follow the prompts to create your first album.

Detailed Guides

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photomapai-0.5.4.tar.gz (147.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photomapai-0.5.4-py3-none-any.whl (167.8 kB view details)

Uploaded Python 3

File details

Details for the file photomapai-0.5.4.tar.gz.

File metadata

  • Download URL: photomapai-0.5.4.tar.gz
  • Upload date:
  • Size: 147.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for photomapai-0.5.4.tar.gz
Algorithm Hash digest
SHA256 4796c4bbb577d1adf1437dce9d2f5285501ae9c2eb49289ae85b53be70dc07a0
MD5 4474cbb97a4faa4e621f27bd0b5a1561
BLAKE2b-256 1b9e006f639bf92f8514377759e0a46889fac5a5016b334da9b54ebb30cb82c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for photomapai-0.5.4.tar.gz:

Publisher: release.yml on lstein/PhotoMapAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photomapai-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: photomapai-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 167.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for photomapai-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b23003909ea071955bed342ed3cf8c8a459ca603862c2e220e7ce05c3d2247df
MD5 185b7fcc8713e1cb32a43c41e00fe5cf
BLAKE2b-256 7ab408738161fafa7e904b6ec43b19fdf482fedc9ab63f8f69ea3aa44d210c62

See more details on using hashes here.

Provenance

The following attestation bundles were made for photomapai-0.5.4-py3-none-any.whl:

Publisher: release.yml on lstein/PhotoMapAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page