GithubHelp home page GithubHelp logo

lkampoli / collectionview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brunovianna/collectionview

0.0 0.0 0.0 390 KB

a script to create an organized tableau from an image collection using unsupervised learning

License: MIT License

Python 100.00%

collectionview's Introduction

Collection View

A script to create an organized tableau from an image collection using unsupervised learning

Usage

Just pass a folder with the collection of images and it will generate one image with all thumbnails spatially organized.

Example with ~12000 images (resized) 1200 images

Example with ~200 images (resized) 1200 images

Install

  1. Install Conda https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
  2. Clone this repository.
  3. Change to repo directory: cd collectionview
  4. Prepare the environment using: conda env create -f collection_view.yml
  5. Activate the environment with: conda activate collection_view
  6. Run the python script and pass a directory (subfolders are ok): python collection_view.py my_dir
  7. The image will be created one directory above the image directory.

Options

-h, --help show this help message and exit

--width WIDTH width of final image

--height HEIGHT height of final image

-t THUMBWIDTH, --thumbwidth THUMBWIDTH width of each thumbnail in the final image

-m {vgg16,vgg19,resnet50}, --model {vgg16,vgg19,resnet50} choice of feature categorization model

-i SAVEIMAGE, --saveimage SAVEIMAGE name of image to be saved

-f SAVEFEATURES, --savefeatures SAVEFEATURES name of file to store the extracted features

-rp RANDOMSTATE_PCA, --randomstate_pca RANDOMSTATE_PCA PCA randomstate integer. repeat to obtain the same results

-rt RANDOMSTATE_TSNE, --randomstate_tsne RANDOMSTATE_TSNE TSNE randomstate integer. repeat to obtain the same results

To Do

  • Load features saved in the pkl file
  • Clustering
  • Clustering with voronoi borders
  • Clustering with size weight
  • Mosaic organization instead of scatter

collectionview's People

Contributors

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