Successfully Trained YOLOv5 for Egg Counting: Need Advice on Real-Time Detection

Hey everyone! I wanted to give you an update on my egg-counting project. I decided to train a model using a dataset from Roboflow and chose YOLOv5 as the model. After setting up all the necessary dependencies in VS Code, I started training, but it was taking a really long time. So, I switched to Google Colab for its free GPU support, which turned out to be a great decision, the training only took 20 minutes! I tested a few different egg images, and they were successfully detected and counted! My next goal is to implement real-time detection. Does anyone have any suggestions on the best approach for that?
attachment 0
13 Replies
techielew
techielew2d ago
I didn't realize Google Colab had free GPU access... what's the limitation on those resources?
32bitSaviour
32bitSaviour2d ago
I believe it is limited. They said something about their limitations fluctuating based on demand, not sure if thats still true.
ZacckOsiemo
ZacckOsiemo2d ago
interesting can we see some images you used for training?
techielew
techielew2d ago
Reliable.
wafa_ath
wafa_ath2d ago
Yes it have limitations specialy if you have a very big data to train, sessions can last up to 12 hours, and sometimes GPU availability depends on demand. If you use it a lot, you might hit some usage limits too. You can always upgrade to Colab Pro
wafa_ath
wafa_ath2d ago
Yes @ZacckOsiemo i download this data from roboflow website and it looks like this
attachment 0
attachment 1
wafa_ath
wafa_ath2d ago
It have 850 image , i used 577 for the training and 167 for validation and 106 for testing
ZacckOsiemo
ZacckOsiemo2d ago
nice but what about considering a specific scenario eggs on a tray
undefined.elf
undefined.elf2d ago
what is the accuracy?
wafa_ath
wafa_ath2d ago
Yes , that good idea I will try to add some to the dataset
wafa_ath
wafa_ath2d ago
achieved 91% precision and 89% [email protected] on the test set, i think it's fine
undefined.elf
undefined.elf2d ago
more than 90% is good
wafa_ath
wafa_ath2d ago
Yeah
Want results from more Discord servers?
Add your server