I have been looking for the best video to properly introduce me to google colab and YOLO and you have just done that to my sactisfaction. Thank you very much.
I have a question, When we run inference is there any specific reason authors have decided to print YOLOR model ? is Yolo7 same as YOLOR or if there is similarity in terms of certain architectures used ?
Thats because the implementation of YOLOv7 is based on YOLOR and they use many things from that code. Perhaps they missed this print statement and did not change it.
good afternoon! thank you for making this content available, it helped a lot. Do you happen to know if it would be possible to detect tree species in a native forest, with a drone orthomosaic?
You're my best youtube teacher! If possible, tell how to illiterate the output folder (not exp) and this folder is initialized as a variable in run time. It works when I change save_dir to a fix path in detect.py but couldn't do if assign a changeable value to save_dir. Thank you!
can yolo use for image classification and optimezer using adam,sgd,rmsprop?? my dataset is rice so i want yolo to detect it like it's basmathi rice or regular rice
if we want to show FPS on yolov5 and yolov6 do we need to follow the same thing as showed for yolov7 or not? if not then please make a video for FPS showing in yolov5 and 6 also it will be very helpfull. thanks
Hi, thanks for the great tutorial. How could you measure the accuracy and get the metrics like mean average precision? Could you do a tutorial on that?
@@TheCodingBug I appreciate the answer, but I am still a newbie to this. I would really appreciate if you could give ma more detailed explanation. I would like to try something like this for my final thesis, but I am not sure how to objectively measure the accuracy. THanks!
@@karlomarkovic2404 You split the dataset and train on some data (train dataset) and test your model on remaining data. Then you compare the results with test dataset, calculate how accurate your results are. You also need to avoid model overfitting which might result in high accuracy by working quite well on the test dataset but would be problematic with other datasets.
I have a problem while training the model, the epoch suddenly stop while extracting certain batches and take around 25 mins to continue , what could lead to such a problem ? and how can i over come it ?
Hi, Thank you for your video. I followed the steps. I got the test_batch0_labels.jpg in the last exp folder inside runs/detect folder. I can see the labels and boxes correctly surrounds the object in this image. Does it mean the training is successful or this is not the right place to look into? My question is I ran the detect.py command with the test image and best.pt , I didn't get back any boxes or labels at all. Can you please tell me why does it happen? If the test_batch0_labels.jpg exists, shall I expect this training is completed? or how to fix this problem? Thank you for your help!
can you make a video on how to modify yaml architecture in yolov8? i'm doing research and want to add attention modules like GAM, CBAM and others but don't know where to start and when i change it, the called architecture configuration stays the same, and there is no change.
When I add photos to yolov7, I run the command !python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source 2.jpg gives this error python3: can't open file '/content/detect.py': [Errno 2] No such file or directory. can anyone fix this ?
@@TheCodingBug File "D:\YOLOV7\detect.py", line 196, in detect() File "D:\YOLOV7\detect.py", line 26, in detect (save_dir / 'labels' if save_txt else save_dir).mkdir(parents=True, exist_ok=True) # make dir File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1327, in mkdir self.parent.mkdir(parents=True, exist_ok=True) File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1328, in mkdir self.mkdir(mode, parents=False, exist_ok=exist_ok) File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1323, in mkdir self._accessor.mkdir(self, mode) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'runs\\detect'
When I add photos to yolov7, I run the command !python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source m_caysi.jpg gives this error python3: can't open file '/content/detect.py': [Errno 2] No such file or directory . Do you have any way to fix it? Thank you. Fastest response please help me
'git' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "C:\Users\User\yolov7\utils\google_utils.py", line 26, in attempt_download assets = [x['name'] for x in response['assets']] # release assets KeyError: 'assets I am getting this error. How to solve this problem?
Right click, rename, change extensions 😁 Just kidding. I understand that you want to convert it to darknet yolo format. The cfg and weights files for pretrained model is available with the official repository. For custom model, you'll need to build darknet and then train the model from scratch. See if you can get it done with existing yolov4 darknet tutorial.
You can also double-click a file to edit it within Google colab and save it.
Pinning the comment as it'll be helpful for others.
Damm man! Nice video, I'm finally starting object detection
okay so this is literally one tutorial in whole yt that helped me get that video object tracking..
Im so thankful !!!!!
I have been looking for the best video to properly introduce me to google colab and YOLO and you have just done that to my sactisfaction.
Thank you very much.
That is useful, thanks! Showing FPS is important for my work.
Fast and useful! Thanks a lot!
Thank you for the appreciation.
It would be really helpful if you could teach how to detect objects on Webcam using google colab.
hello, did you got any video regarding to your question please share if you got it. thanks
May God bless you sir thank you so much ❤❤
Thank you very much Sir. I appericiate you.
Thank you very much
Great Video, Simple explanation. No errors. why did you comment the datasets print? was there a specific reason?
Which print are you referring to? Can you point out the time stamp?
I have a question,
When we run inference is there any specific reason authors have decided to print YOLOR model ? is Yolo7 same as YOLOR or if there is similarity in terms of certain architectures used ?
Thats because the implementation of YOLOv7 is based on YOLOR and they use many things from that code. Perhaps they missed this print statement and did not change it.
@@TheCodingBug thank you :)
Hi sir, thanks for the great session. If possible please share custom dataset training
good afternoon! thank you for making this content available, it helped a lot. Do you happen to know if it would be possible to detect tree species in a native forest, with a drone orthomosaic?
Thank you a lot for that video, but i want to know if o have an other object that i wanna detect like fruits how can i use this model to detect it?
You'll need to train custom model on custom data: ua-cam.com/video/-QWxJ0j9EY8/v-deo.html
@@TheCodingBug Thank you a lot , i wanna also ask you if you have any idea about counting those objects that are detected .?
You're my best youtube teacher! If possible, tell how to illiterate the output folder (not exp) and this folder is initialized as a variable in run time. It works when I change save_dir to a fix path in detect.py but couldn't do if assign a changeable value to save_dir. Thank you!
can yolo use for image classification and optimezer using adam,sgd,rmsprop?? my dataset is rice so i want yolo to detect it like it's basmathi rice or regular rice
if we want to show FPS on yolov5 and yolov6 do we need to follow the same thing as showed for yolov7 or not? if not then please make a video for FPS showing in yolov5 and 6 also it will be very helpfull. thanks
We will do the same thing.
thks for tutor
Hi, thanks for the great tutorial. How could you measure the accuracy and get the metrics like mean average precision?
Could you do a tutorial on that?
Those would already be present in training folder (where best weights are) along with precision recall etc graphs.
@@TheCodingBug I appreciate the answer, but I am still a newbie to this. I would really appreciate if you could give ma more detailed explanation. I would like to try something like this for my final thesis, but I am not sure how to objectively measure the accuracy. THanks!
@@karlomarkovic2404 You split the dataset and train on some data (train dataset) and test your model on remaining data. Then you compare the results with test dataset, calculate how accurate your results are. You also need to avoid model overfitting which might result in high accuracy by working quite well on the test dataset but would be problematic with other datasets.
@@vic0th380 thanks brother
I have a problem while training the model, the epoch suddenly stop while extracting certain batches and take around 25 mins to continue , what could lead to such a problem ? and how can i over come it ?
Why I got attribute error when running on street2.mp4 "module cv2 has no attribute font_hersyey......"
Please help
Your spelling is wrong.
@@TheCodingBug hahaha thank you so much for your respond
can you please share this video file street2.mp4 with me.
Can you share how to find 2.jpg and street2.mp4? Please help if you see it, thank you sir
good video sir, may I know that how to train the model on a batch of images and evaluate them all at once using things like mAP? thank you sir.
Thank you for best resources. How we can get mAP results for object detection in videos and collect them as a file?
Hi, Thank you for your video. I followed the steps. I got the test_batch0_labels.jpg in the last exp folder inside runs/detect folder. I can see the labels and boxes correctly surrounds the object in this image. Does it mean the training is successful or this is not the right place to look into? My question is I ran the detect.py command with the test image and best.pt , I didn't get back any boxes or labels at all. Can you please tell me why does it happen? If the test_batch0_labels.jpg exists, shall I expect this training is completed? or how to fix this problem? Thank you for your help!
Check precision recall and f1 curves. If those have a very small value, model learned nothing and you need more data to train.
can you make a video on how to modify yaml architecture in yolov8? i'm doing research and want to add attention modules like GAM, CBAM and others but don't know where to start and when i change it, the called architecture configuration stays the same, and there is no change.
Here, Can we count the object from image ? it will be helpful
Hi, can you please share how to take input from the webcam ?
When I add photos to yolov7, I run the command
!python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source 2.jpg gives this error
python3: can't open file '/content/detect.py': [Errno 2] No such file or directory.
can anyone fix this ?
hi there its good to see yolo7 new subscriber here... i tried to follow but somehow i got some error
Hi. What's the error?
wow you replied. wait sir i will re run it again
@@TheCodingBug
File "D:\YOLOV7\detect.py", line 196, in
detect()
File "D:\YOLOV7\detect.py", line 26, in detect
(save_dir / 'labels' if save_txt else save_dir).mkdir(parents=True, exist_ok=True) # make dir
File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1327, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1328, in mkdir
self.mkdir(mode, parents=False, exist_ok=exist_ok)
File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1323, in mkdir
self._accessor.mkdir(self, mode)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'runs\\detect'
any method to get the coordinates of boxes formed
Thank you for the great introduction of YOLOV7 code. Do you know how we can access to detected boundary box information from code?
Hi daniyal did you get the ans of your question? because i also want to know the same thing so if you know then plz share it with me
--save_txt
you will see (I guess) one line for each object in "class, x, y, width, height" in one txt file for a frame if object(s) detected
When I add photos to yolov7, I run the command
!python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source m_caysi.jpg gives this error
python3: can't open file '/content/detect.py': [Errno 2] No such file or directory
. Do you have any way to fix it? Thank you. Fastest response please help me
Can we use another version model such as yolov3 etc?
No not with this code.
'git' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:\Users\User\yolov7\utils\google_utils.py", line 26, in attempt_download
assets = [x['name'] for x in response['assets']] # release assets
KeyError: 'assets
I am getting this error. How to solve this problem?
Download and install git for your operating system.
Will it work on any random image
Yes
Bro how can i convert .yaml and .pt to .cfg and .weights?
Right click, rename, change extensions 😁
Just kidding. I understand that you want to convert it to darknet yolo format. The cfg and weights files for pretrained model is available with the official repository. For custom model, you'll need to build darknet and then train the model from scratch. See if you can get it done with existing yolov4 darknet tutorial.
@@TheCodingBug hmm so how to build it, can you make a video on that
How can we run the v7 detection on webcam in Google Colab?
did you got any solution? i also need to try that please share if you know.
time taken to detect an object is in seconds?
how to get jpg and mp4 in min 6.20
Real time detection how
Hi,
We need dataset for object Detection using YOLOv7
Yes
Please tell me the dataset.
Iss mscoco we can download in Google drive from kaggle
what is 2.jpeg ?
It's an image to run object detection on.
Is any imagr can be added to drive for detection??
Any images can be added in drive and shall we detect it???
@@kurumallasatyanarayana9226 Yes
@@TheCodingBug here which dataset used sir