This notes that I took for target detection with yolov5. In this project, blood cancer cells were detected.
$ python -m pip install --upgrade pip
$ conda create --name yolov5
$ conda activate yolov5
$ cd <yolov5_dir>
$ pip install -r requirements.txt
$ cd <yolov5_dir>
% python train.py --img 416 --data ../data.yaml --cfg ./models/yolov5s.yaml --batch 32 --epochs 50
$ cd <yolov5_dir>/runs/train
$ python detect.py --source ../dataset/test/images/ --weights ./runs/train/exp/weights/best.pt --conf 0.4
$ cd <yolov5_dir>/runs/detect