Python IMage MIning
Project description
PIMMI : Python IMage MIning
Library allowing visual search in a corpus of images, from Twitter... or elsewhere.
SIFT interest points, clustering, based on OpenCV and Faiss, multithreaded.
Very preliminary stuff for now.
Install with pyenv and pip
pyenv virtualenv 3.7.0 pimmi-env
pyenv activate pimmi-env
pip install -U pip
pip install pimmi
Demo
# Install dependencies
pip install -r requirements.txt
# --- Play with a very small dataset
# Create a default index structure and fill it with the demo dataset
python3 index_dataset.py --action fill --thread 16 --index "IVF1024,Flat" --save_faiss index/small_dataset.ivf1024 --images_dir demo_dataset/small_dataset
# Query the same dataset on this index
python3 query_dataset.py --simple --thread 16 --load_faiss index/small_dataset.ivf1024 --save_mining index/small_dataset.ivf1024.mining --images_mining --images_root demo_dataset/dataset1
# --- Play with the demo dataset 1
python3 index_dataset.py --action fill --thread 16 --index "IVF1024,Flat" --save_faiss index/dataset1.ivf1024 --images_dir demo_dataset/dataset1
python3 query_dataset.py --thread 16 --load_faiss index/dataset1.ivf1024 --save_mining index/dataset1.ivf1024.mining --images_mining --images_root demo_dataset/dataset1
# Post process the mining results in order to visualize them
python3 fuse_query_results.py
python3 generate_cluster_viz.py
Happy hacking !
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pimmi-0.0.8.tar.gz
(26.9 kB
view details)
Built Distribution
pimmi-0.0.8-py3-none-any.whl
(31.9 kB
view details)
File details
Details for the file pimmi-0.0.8.tar.gz
.
File metadata
- Download URL: pimmi-0.0.8.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c168defb388ed98f7a5cc6f752869e39312d7cd3163a11b31c429664dafa6f |
|
MD5 | c2d7dc4a6481ee3a86573ede964181e2 |
|
BLAKE2b-256 | f12520d7df4b6d869352a944581b4f9c3105d2d6656c0b258eb43e207d520a09 |
File details
Details for the file pimmi-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pimmi-0.0.8-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 261dbf5255b3576f791185b523e497c3f00539e34087e45595709669df86d4cb |
|
MD5 | c3e6f2b0122ac2e75a4f7856d843093e |
|
BLAKE2b-256 | 73862b706345762059e949860f56f6ef9f050c3ebffb029e9bfefe356d68b10a |