The main purpose of this repo is to help iNaturalist observers classify images into correct categories. This will allow users to easily create data sets from projects that have unclassified images, and run models on them. I will utilize Artificial Intelligence and Machine Learning models to classify different fly datasets into male and female categories. The images will also be labeled according to whether or not the fly is eating a prey.
This project works by accessing the Inaturalist API with python in order to download the desired images / metadata. Then the images will be classified with simple ai.
Requires python 3.12+
setup the virtual env:
python -m venv ./env
# On Windows
. ./env/Scripts/activate
# On Linux
./env/bin/activate
pip install -r requirements.txt
pip install -e .
config.json - currently ignored in the project
{
"username": "",
"password": "",
"app_id": "",
"app_secret": "",
"project_name": ""
}
Create a dataset
python main.py -v -r run_id download --config_path /path/to/config.json --dataset_path /path/to/dataset
Train a model
python main.py -v -r run_id train --config_path /path/to/config.json --predict_path /path/to/classify
Predict a dataset
python main.py -v -r run_id predict --config_path /path/to/config.json --predict_path /path/to/classify
Can also pass in a specific run id to keep track of different runs / re-run a run with that id