Installation
We have successully tested migYOLO with python 3.8, 3.9, 3.10, 3.11, and 3.12. Recommended: Use python 3.10 or newer.
Instructions
Clone the migYOLO repository
git clone https://github.com/jschuel/migYOLO.git
or
git clone git@github.com:jschuel/migYOLO.git
Set up a virtual environment with
python>=3.8. If you use Anaconda, you can do something like
conda create -n migYOLO python=3.10
conda activate migYOLO
Navigate to the
migYOLOparent directory where thesetup.pyfile is and run
pip install -e .
This will install migYOLO and all necessary packages except PyTorch and Ultralytics’ YOLOv8.
Follow the instructions on the installation guide of the front page of the PyTorch website to install pytorch. The “compute platform” row allows you to select the relevant platform for your GPU or “CPU only” if you do not have a compatible GPU
Install Ultralytics’ YOLOv8 package with
pip install ultralytics
In
migYOLO/migYOLOrunsetup_environment.shwith (this step requires close to 10GB of disk space)
source setup_environment.sh
Running this command will (1) fetch test data zip files associated with this package, (2) move all contents to their appropriate directories, and (3) remove the downloaded zip files
Navigate to the
tests/directory and first runpython3 downsample.pyand thenpython3 runYOLO.py. If both of these run, then everything was installed correctly! If you run into issues please report them.