"Sniff out the good and bad imagery in your dataset."
- A python application for sorting through imagery.
- Only sorts jpgs in the
images
directory - Saves the sorted jpgs in two directories called
good_images
andbad_images
within the program's directory whenFile Mode
is activated - Saves the outputs as a csv into the programs current working directory when
CSV Mode
is activated
- There are two ways to run the program, from the command line or from within a jupyter notebook.
conda activate Sniffer
cd <location where you saved Sniffer>
jupyter notebook
conda activate Sniffer
cd <location where you saved Sniffer>
panel serve Sniffer.ipynb
- Copy the local host text into your browser of choice
http://localhost:5006/Sniffer
I recommend using hotkeys in the localhost version of Sniffer. Sometimes jupyter notebooks will create and delete cells when you type a
and d
. That being said hotkeys will still work in jupyter notebook.
a
= good image
d
= bad image
s
= undo last action
- Clone the repository
git clone --depth 1 https://github.com/2320sharon/Sniffer.git
(--depth 1 means "give me only the present code, not the whole history of git commits" - this saves disk space, and time)
conda env create --file install/sniffer.yml
conda activate Sniffer
cd <location where you installed Sniffer>
cd install
conda activate sniffer
conda env update --file sniffer.yml --prune
├── Sniffer
│ ├── Sniffer
│ │ ├── tests #Don't touch the test directory
| | | |_ test_data
| | |_ __init__.py
| | |_ conftest.py
| | |_ test_sniffer.py
| |
│ ├── __init__.py
│ ├── sniffer.py
│
├── install
| |_sniffer.yml
├──thumbnails
| |_ <OTHER THUMBNAILS GENERATED BY SNIFFER>
|
|___images
| |_ <YOUR IMAGES HERE>
|
|___good_images
| |_ <GOOD IMAGES MOVED HERE BY SNIFFER>
|
|___BAD_images
| |_ <BAD IMAGES MOVED HERE BY SNIFFER>
|
├── README.md
├── assests
├── .github
└── .gitignore
Currently sniffer only works with images with the .jpg
extension. Other file types are not supported.
- ❌
.PNG
- Support for
.png
s - Hosting 🌐
- A wiki full of examples and troubleshooting tips