"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