Software, algorithms and research related to the Automated Monitoring of Insects using deep learning and other machine learning methods.
Poetry is used to manage the dependencies common to all scripts and sub-projects. Some sub-projects may manage their own dependencies if necessary.
.env
or copy .env.example
and update the valuespoetry install
in the root of the repositorypoetry run pre-commit install
An optional way to setup the environment is to use Conda for creating and managing the environment, while using Poetry for managing the packages and dependencies. Run the following steps to setup:
environment.yml
: conda env create -f environment.yml
conda activate ami-ml
poetry install
Activate the virtual environment before running scripts
poetry shell
Example for running a script (in the poetry shell):
python src/localization/inference_localization.py \
--data_dir ~/TRAPIMAGES/Sample/ \
--ckpt_path ~/Downloads/fasterrcnn_mobilenet_v3_large_fpn_uqfh7u9w.pt \
--model_type fasterrcnn_mobilenet_v3_large_fpn
Alternatively, one can run the scripts without activating poetry's shell:
poetry run python <script>