I have trained my model using yoloV5 on google colab, following the provided tutorial and walkthrough provided for training any custom model: Colab file for training your own custom model. I now have an exported best.pt
file after running the last cell in the link provided. Now, I want to make use of this trained weight to run a detection locally on any python script. Is this possible? If so, how do I go about doing this?
You should follow this step:
cd ObjectDetection
.git clone https://github.com/ultralytics/yolov5.git
. It will create a new folder called yolov5 inside ObjectDetection folder.cd yolov5
pip install -r requirements.txt
python detect.py --weights best.pt --source image.png
ObjectDetection/yolov5/runs/detect/exp