Getting the data is quite simple. Generate a 3d scene, render a camera from different angles, do a world to screen matrix calculation for each piece, creating bounding boxes from the cameras perspective; randomize, save, and repeat. I have around 3000 label images of chess positions from all kinds of different angles and with different lighting. It works nearly flawlessly.
nice video! i'm really enjoying these computer vision videos...since i'm not familiar with this field. two quick questions i'm hoping you can address in future videos 1. skills/tools needed to be successful in data science (i.e. calculus, probability, pandas, etc.) in a tier list 2. the best ways to communicate the results of your findings and how to structure the content (slides, blog post, etc.)
Glad you liked it! Great ideas for future videos. Regarding #1 have you seen my video on getting started with machine learning? ruclips.net/video/IvftXeosBZQ/видео.html
what an amazing video, I found this content by chance (I'm not in programming), but I'm trying to marathon and learn about it. Because I work with audiovisual, and I think about how to use this to make a realtime tracking. Like we see in soccer games, racing games, etc, where signs and icons appear following the objects and people. On TV this is all done with several expensive sensors that capture the position of each item, but if somehow I could get those position coordinates of the objects detected with YOLO, it would already be possible to get an extremely close result but in an absurdly cheaper and homemade way. Including, many editing and compositing programs have fields for python programming, allowing the creation of extensions and plug-ins. I am sure this would be absurd inside any of these programs, if you want to talk to me so we can think of practical applications, I am sure it could bring a good financial return.
Love this comment. So cool that you found it helpful and are getting started in coding. Check out the Kaggle competition that recently where they used computer vision on soccer video. I covered it in one of my live streams. Not sure about the ideas. Join my discord and ask there.
Hey Rob, I love your videos and the overall content that you share. I am a new subscriber and have one question for you. I see that you use a Mac device for your videos? Especially for this video where you are running Yolov7 which runs faster on a GPU why did you decide to use a Mac device over a windows device that has a dedicated GPU?
Hey Keshawn! Glad you have you as a new subscriber. I'm actually not using a Mac, my main operating system is Linux (Ubuntu). I go into detail about it in this video. You should check it out: ruclips.net/video/TdbeymTcYYE/видео.html&lc=UgwHA_11TkbNahYIJE14AaABAg
Hey great video but I'm a little confused on why your using the Ubuntu's command terminal Why are you not using visual studio code, or pycharm for this project?
thanks for the info...I have a small query..how can I get the predicted labels and bounding box information in yolov7 after detection of objects in image
Hi, first of all thank you for this video, was really helpful. And is it possible to save the data received from the detection as csv file or txt file. I tried the --save-text command but it doesn't specify the type of object detected like "person" or "car" etc. Is there a way to get this info too in the txt file?
Hey Afif. That is possible. The save-txt will use the classification ids setup in the dataset config file. So you just need to map those ids to their labels. Hope that helps.
ditect place and shape and size of upload second image in main image and after ditectin all thing second image upload in main image acording to ditection and save image i dont get solution please help me sir give me solution
Hi Rob! Amazing stuff. Could you please tell me about a video or source using python that allows body or object detection and returns an alert? Like detect a person who was walking and fell down on the ground. Thank you!
Hello I found the video really helpful, but i would like to ask how I can do transfer learning or the command used to do so on yolov7, im new to this stuff and I need help adding more dataset to my pre-trained custom weight, I would highly appreciate your assistance thanks!
Yolov7 and yolov5 have almost identical interfaces, so you would follow the same steps with the yolov7 repo. I was able to do both but only showed v5 in the video because it looked better.
I am getting this kind of error what could be the reason assert mlc < nc, 'Label class %g exceeds nc=%g in %s. Possible class labels are 0-%g' % (mlc, nc, opt.data, nc - 1) AssertionError: Label class 15 exceeds nc=5 in data/custom.yaml. Possible class labels are 0-4
I believe this error means that your data configuration yaml file only has 5 labels (0, 1, 2, 3, 4). One of your label files however must have a label of 15. You need to either fix the label file to not have the class of 15 or change your configuration yaml to have more classes defined. Hope that helps!
Does everything have to be run with Cuda or is there any other way to do things via the Apple silicon? My new MBP has a 32 core neural engine I believe (don’t quote me on the number). Is it possible to run a model like Yolov7 using the Mac GPU’s?
@@robmulla How would you go about running it on Apple silicon? Would I have to convert YOLOv7 to Core ML and go from there? Have you tried this on newer Macs? It might also be an interesting video. Thanks for the response.
In python detect.py section, I don't have best.pt under weight folder. python detect.py --source data/images/myimage.jpg(it doesn't make customized predictions when I run this command) Do we need to make changes to detect.py file? I couldn't execute the last part. It didn't occur train_batch0.jpg files.
If you trained correctly you should have model weights saved in the train folder. Usually there is a best.pt and last.pt - either should work. You shouldn't need to modify the scripts to detect so long as the model weights are linked correctly.
@@robmulla OK I did it, it working . Thank you very much for all the replies. Can you make a video to run it in real time on android? (with Tensorflow Lite) Thanks a lot :)))) !!!!
@@onewhoflutters4866 good questions. I’ve never done something like that before. But it might be a fun video for future applications. The cost is definitely going to be dependent on the model size and hardware. Good luck!
@@robmulla Hello again, I will question a new question. How will we update the model when new data (ex: new images) is added to the yolov5 model trained ? Thanks a lot!!!! :)
@@robmullaGood day! We have some issues with object detection on custom datasets and would be appreciated any advice. Is it possible to have a 1-hours consultation?
Getting the data is quite simple. Generate a 3d scene, render a camera from different angles, do a world to screen matrix calculation for each piece, creating bounding boxes from the cameras perspective; randomize, save, and repeat. I have around 3000 label images of chess positions from all kinds of different angles and with different lighting. It works nearly flawlessly.
Genius advice!
Did you shared your dataset somewhere? And the training weights? It would be great if you could share. 😊
@@ar2050brother did you get something?. it would help me a loy
nice video! i'm really enjoying these computer vision videos...since i'm not familiar with this field.
two quick questions i'm hoping you can address in future videos
1. skills/tools needed to be successful in data science (i.e. calculus, probability, pandas, etc.) in a tier list
2. the best ways to communicate the results of your findings and how to structure the content (slides, blog post, etc.)
Glad you liked it! Great ideas for future videos. Regarding #1 have you seen my video on getting started with machine learning? ruclips.net/video/IvftXeosBZQ/видео.html
@@robmulla oh awesome! i hadnt watched that video, I will check it out. Thanks!
what an amazing video, I found this content by chance (I'm not in programming), but I'm trying to marathon and learn about it. Because I work with audiovisual, and I think about how to use this to make a realtime tracking. Like we see in soccer games, racing games, etc, where signs and icons appear following the objects and people. On TV this is all done with several expensive sensors that capture the position of each item, but if somehow I could get those position coordinates of the objects detected with YOLO, it would already be possible to get an extremely close result but in an absurdly cheaper and homemade way. Including, many editing and compositing programs have fields for python programming, allowing the creation of extensions and plug-ins. I am sure this would be absurd inside any of these programs, if you want to talk to me so we can think of practical applications, I am sure it could bring a good financial return.
Love this comment. So cool that you found it helpful and are getting started in coding. Check out the Kaggle competition that recently where they used computer vision on soccer video. I covered it in one of my live streams. Not sure about the ideas. Join my discord and ask there.
Great video! Thanks I was able to follow along and get the chess board detection working.
Thanks for showing this, It was very informative and caught my attention as well. 😅
That was an amazing video! Keep going, Rob!
Cristal clear thank you 👍
In The setup i had struggels with soft soft and now i can make soft and for my birthday i askd for so Nice speakers and Lets make
Are you a real person? This comment is confusing to me.
Are you having a stroke?
Thank u for this amazing video 🎉
Thanks for the feedback. Glad you found it helpful!
Hey Rob, I love your videos and the overall content that you share. I am a new subscriber and have one question for you. I see that you use a Mac device for your videos? Especially for this video where you are running Yolov7 which runs faster on a GPU why did you decide to use a Mac device over a windows device that has a dedicated GPU?
Hey Keshawn! Glad you have you as a new subscriber.
I'm actually not using a Mac, my main operating system is Linux (Ubuntu). I go into detail about it in this video. You should check it out: ruclips.net/video/TdbeymTcYYE/видео.html&lc=UgwHA_11TkbNahYIJE14AaABAg
Hey great video but I'm a little confused on why your using the Ubuntu's command terminal Why are you not using visual studio code, or pycharm for this project?
thanks for the info...I have a small query..how can I get the predicted labels and bounding box information in yolov7 after detection of objects in image
Yes. You can have it output to a text file with one of the parameters.
amazing, can u train the yolo with the first layers frozen and the latest unfrozen to be more faster for training.
If it’s pre-trained weights then training should be relatively quick. You can freeze layers in PyTorch but not sure how to specifically in yolo.
Hi how can we merge the custom model with yolo5 and use as a part of it?
Awesome 🙌🙌
Thank you! Cheers!
how if i want to change thickness bonding box and size of font when predict object
Hi, first of all thank you for this video, was really helpful.
And is it possible to save the data received from the detection as csv file or txt file. I tried the --save-text command but it doesn't specify the type of object detected like "person" or "car" etc. Is there a way to get this info too in the txt file?
Hey Afif. That is possible. The save-txt will use the classification ids setup in the dataset config file. So you just need to map those ids to their labels. Hope that helps.
@@robmulla Okk, will try that. Thank you so much.
ditect place and shape and size of upload second image in main image and after ditectin all thing second image upload in main image acording to ditection and save image
i dont get solution please help me sir
give me solution
Hi Rob! Amazing stuff. Could you please tell me about a video or source using python that allows body or object detection and returns an alert? Like detect a person who was walking and fell down on the ground. Thank you!
after you can do detection object,is it also can sent notification from email? if there is part of chess is missing?
Hello I found the video really helpful, but i would like to ask how I can do transfer learning or the command used to do so on yolov7, im new to this stuff and I need help adding more dataset to my pre-trained custom weight, I would highly appreciate your assistance thanks!
my question is how do you analyse and trained the dataset on YoloV7
Yolov7 and yolov5 have almost identical interfaces, so you would follow the same steps with the yolov7 repo. I was able to do both but only showed v5 in the video because it looked better.
Is it possible to detect chart patterns of a stock price using Yolo?
That’s not really what it’s designed to do. More general object detection typically. But you could try!
I am getting this kind of error what could be the reason
assert mlc < nc, 'Label class %g exceeds nc=%g in %s. Possible class labels are 0-%g' % (mlc, nc, opt.data, nc - 1)
AssertionError: Label class 15 exceeds nc=5 in data/custom.yaml. Possible class labels are 0-4
I believe this error means that your data configuration yaml file only has 5 labels (0, 1, 2, 3, 4). One of your label files however must have a label of 15. You need to either fix the label file to not have the class of 15 or change your configuration yaml to have more classes defined. Hope that helps!
@@robmulla you are saying that one of my txt file has class index of 15 am i right
I believe so. Check to see if any of the txt files have a 15 in the first column.
@@robmulla Actually i have trained the model on yolo4 which works fine now i am using same data to train on yolov7
@@robmulla thank you
Any of U were able to train on MPS?
Hello sir.. I'm getting the losses as nan after the training process. Can u plz help me out with this.
Oh, that's not good. That usually happens if your model fails to converge or if your labels are not correctly setup. Hope you can figure it out!
Oh. Thanks.. Then wt website would u suggest for correct labeling
how can i stop the training like you said if theres not much improvement, i know ctrl+c stops it but does it save the trained model ?
early stopping might help
do you know how to deploy and use it in Flutter app?
Sorry, I'm not familiar with Flutter.
how do i load the model if i were making my own version of detect.py
The model objects are within the package, but I'd suggest starting by just modifying the existing detect.py
Does everything have to be run with Cuda or is there any other way to do things via the Apple silicon? My new MBP has a 32 core neural engine I believe (don’t quote me on the number). Is it possible to run a model like Yolov7 using the Mac GPU’s?
You can run it on CPU but it just will be a lot slower.
@@robmulla How would you go about running it on Apple silicon? Would I have to convert YOLOv7 to Core ML and go from there? Have you tried this on newer Macs? It might also be an interesting video. Thanks for the response.
In python detect.py section, I don't have best.pt under weight folder. python detect.py --source data/images/myimage.jpg(it doesn't make customized predictions when I run this command) Do we need to make changes to detect.py file? I couldn't execute the last part. It didn't occur train_batch0.jpg files.
If you trained correctly you should have model weights saved in the train folder. Usually there is a best.pt and last.pt - either should work. You shouldn't need to modify the scripts to detect so long as the model weights are linked correctly.
@@robmulla OK I did it, it working . Thank you very much for all the replies. Can you make a video to run it in real time on android? (with Tensorflow Lite) Thanks a lot :)))) !!!!
I also need to calculate the total price of the products estimated for the application. Is there an algorithm I should use ?
@@onewhoflutters4866 good questions. I’ve never done something like that before. But it might be a fun video for future applications. The cost is definitely going to be dependent on the model size and hardware. Good luck!
@@robmulla Hello again, I will question a new question. How will we update the model when new data (ex: new images) is added to the yolov5 model trained ? Thanks a lot!!!! :)
Where can i get that git link?
Ummm. I need to dig it up. Sorry!
17:08 name of this endgame?
Yes, do you know it?
@@robmulla No but i trying find,it too hard. My first think was Anand vs Kasparov 1996 but it's not enough pieces 🙈
@Krzysztof Honestly at this point I forget :D But I think it was an older game. Maybe fischer?
Rob Mulla 💰💰💰
Thanks?!
9:25 what is that software..
This is the Linux terminal.
@@robmulla I mean selecting and labelling objects of image. Which software helps to do it?
@@DIGIL.this is also what I want to know
where is the link to the code.
Good day!
Your experience is so cool. Can I contact you about the opportunity to work on my project?
Glad you liked my video. I'm not currently seeking extra work.
@@robmullaGood day!
We have some issues with object detection on custom datasets and would be appreciated any advice. Is it possible to have a 1-hours consultation?
excuse me, where is the code for this?
All of the code I use is cloned directly from the yolo repo: github.com/ultralytics/yolov5 and github.com/WongKinYiu/yolov7