This is purely a passion project I decided to make by training yolov5 on a custom dataset that I labeled. The trained model can detect 5 flowers: rose, dandelion, daisy, tulip and sunflower.
- Clone this repository
- Run
pip install -r requirements.txt
- Run
python app.py
Open the local server in your browser and have fun :)
I used the Roboflow annotation tool to label the images and export them using code. Check out the notebook in the repo to see how to import the custom dataset and train it. I've also written the code for testing it on a single inference and also to permanently save the trained weights to google drive.
Ultralytics docs - Train on custom data
Dataset link - [ ] (Go to Download this Dataset, and select the Yolov5 Pytorch format)
This is incredibly funny but, while annotating, I decided to skip this image below, since it doesn't contain any real flowers. And the model still detected the roses in it. plus a lil tulip :))