Skip to content

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.

License

Notifications You must be signed in to change notification settings

andreijw/iNaturalistClassifier

Repository files navigation

iNaturalistClassifier

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.

Setup

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 .

Update the config

config.json - currently ignored in the project

{
    "username": "",
    "password": "",
    "app_id": "",
    "app_secret": "",
    "project_name": ""
}

How to run

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published