Sophie Wildeboer
Weeds detections using Transfer Learning
05/06/2023

This repository covers the dataset creation/preparation, model training and evaluation code and model weights for transfer learning YOLOv7 on a agricultural-specific pretraining dataset. Compared to COCO pretraining.
All the code and methods are found in their respective notebooks in the notebooks folder.
Additionally, pretrained YOLOv7 model weights on are found here: MEGAWEEDS_YOLOv7
Finally the MEGAWEEDS dataset can be found on Zenodo over here: MEGAWEEDS dataset.
There are 2 different ways to get started: 1. Python installation or, 2. A precompiled docker-container
Get your preferred Python installation method (Pip, Conda, miniforge, etc.) and install ultralytics, pytorch and jupyterlab
Not wanting to deal with anaconda and environment.yamls? Run everything in a docker container:
docker run --rm -it -p 8888:8888 --shm-size=5gb -v /directory/to/this/repo/on/local/machine:/home/jovyan docker/container:tag
Or using GPUs: Install Docker with NVIDIA runtime and run a gpu-enabled docker container:
docker run --rm -it --runtime=nvidia -p 8888:8888 --gpus 1 --shm-size=5gb -v /directory/to/this/repo/on/local/machine:/home/jovyan docker/container:tag
This project is funded by the European Union, grant ID 101060643.