how to train YOLO v3, v4 for custom objects detection | using colab free GPU

  Рет қаралды 173,839

When Maths Meet Coding

When Maths Meet Coding

Күн бұрын

If you like the video, please subscribe to the channel by using the below link
tinyurl.com/1w...
Hi Everyone in this video I have explained how to train YOLO v4 for custom object detection on google colab utilizing the free GPU resources. This video is very special because it provides complete overview of changing the make file configuration file and creating training and testing dataset feel free to add your custom class and train your own model. I have also explained how to use trained model to detect objects on live video.
1. Add crome extension to download images by below URL
bit.ly/3nXfPI8
2. Download rename files jupyter notebook form below link paste in the same folder where you
placed all the images run it all the image files will be renamed
github.com/jak...
2.1 Download labelImg tool with below link
tzutalin.githu...
3. git link to clone darknet on colab
github.com/pjr...
4. Get train and test data generator from here
github.com/jak...
Note for point 4 :- I am not the authors for 2 py files complete credit goes to authors for
creating-files-data-and-name, creating-train-and-test-txt-files files.
5. Download pre-trained weights for the convolutional layers (154 MB):
pjreddie.com/me...
6. command to train the model (take care of single line and spaces)
!darknet/darknet detector train custom_data/labelled_data.data darknet/cfg/yolov3_custom.cfg
custom_weight/darknet53.conv.74 -dont_show
7. Download code to use trained model to detect object on live video
github.com/jak...
In this tutorial I’m going to explain you one of the easiest way to train YOLO to detect a custom object even if you’re a beginner and have no experience with coding.
This video cover:
1. Setting up Google Colab as a cloud VM with Free GPU.
2. Commands to get Darknet with YOLOv3 weights installed and running.
3. YOLOv3 pretrained coco model detections in the Cloud.
4. Configuration for Custom YOLOv3 Training in the Cloud.
5. Training Custom YOLOv3 Object Detector in the Cloud.

Пікірлер: 894
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 3 жыл бұрын
definitive solution of /bin/bash: ./darknet: Permission denied just run !chmod +x ./darknet.
@karthikprabhu416
@karthikprabhu416 3 жыл бұрын
after running the above code !chmod +x ./darknet its showing permission denied can u plz help
@THARANSTUDIOS
@THARANSTUDIOS 3 жыл бұрын
chmod: invalid option -- 'd' Try 'chmod --help' for more information.
@THARANSTUDIOS
@THARANSTUDIOS 3 жыл бұрын
kindly solve the errors
@worthtech3249
@worthtech3249 3 жыл бұрын
/bin/bash: darknet/darknet: Not a directory
@bluechipsolutions1904
@bluechipsolutions1904 3 жыл бұрын
@@worthtech3249 same here , do you find any solution?
@anuragmishra6262
@anuragmishra6262 4 жыл бұрын
I can't thank you enough sir ! You solved all of my doubts, thanks for giving your valuable time to us.
@baritirthesh1178
@baritirthesh1178 3 жыл бұрын
Hey can you please share this file? 5. Download pre-trained weights for the convolutional layers (154 MB): its not available now, link is not responding Thanks a lot
@ballajaisheel1120
@ballajaisheel1120 10 ай бұрын
hey can please share me the pretrained weights ???
@赛尼木
@赛尼木 3 жыл бұрын
I found some problems in your video. 1. All images should be in JPEG format(not jpg) or ur train.txt and test.txt will be blank(according to some comments below). U might need to write a python scipt to convert them in batches. 2. 11:22 ur unzip location is wrong.
@rabomeister
@rabomeister 2 жыл бұрын
this dudes always do that. for solution of problem 1, just open the codes and change 'jpeg' to 'jpg'. for problem2, you'll figure it out if you think of
@shauntechstudios344
@shauntechstudios344 2 жыл бұрын
Those who need weight files do this, it will work: just right click the weight files link and press open link on a new window, just refresh the page until downloads(2 times refrshing worked for me)
@k.v.srilakshmiasharani1553
@k.v.srilakshmiasharani1553 3 жыл бұрын
[yolo] params: iou loss: mse (2), iou_norm: 0.75, obj_norm: 1.00, cls_norm: 1.00, delta_norm: 1.00, scale_x_y: 1.00 Total BFLOPS 65.879 avg_outputs = 532444 Allocate additional workspace_size = 12.46 MB Loading weights from custom_weight/darknet53.conv.74... seen 64, trained: 0 K-images (0 Kilo-batches_64) Done! Loaded 75 layers from weights-file Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005 Detection layer: 82 - type = 28 Detection layer: 94 - type = 28 Detection layer: 106 - type = 28 Resizing, random_coef = 1.40 608 x 608 Create 6 permanent cpu-threads HEllo i am not getting trained images in backup folder. Can some one help?
@Faisalamin01
@Faisalamin01 3 жыл бұрын
it is because the test or train.txt is empty
@Faisalamin01
@Faisalamin01 3 жыл бұрын
@Marek Žáčik I don't remember the solution of how I fixed it but you have to check the location and file name
@deepakpani5139
@deepakpani5139 2 жыл бұрын
Did you find the solution? Im stuck in the same place
@abd_alim
@abd_alim 2 жыл бұрын
@@Faisalamin01 can u plz tell me plz how to fix this?
@Faisalamin01
@Faisalamin01 2 жыл бұрын
@@abd_alim my friend, l just solved this problem right now. l think i have find the reason here. If your train/test.txt are empty, this is the rreason. you open"creating-train-and-test-txt-files.py" and edit it. Find the keyword is jpeg place. we could find only 2 jpeg words here and you edit them into "jpg" and replace this in your Google Drive. Finally, restart the colaboratory work. And your training will not quit for "608 x 608 Create 64 permanent cpu-threads ".
@vocalchameleon9570
@vocalchameleon9570 2 жыл бұрын
Thanks so much for this course. It really helped in my ongoing final year project. Someday I might also have a video to documetmy processes too, challenges I faced and how I was able to solve them.
@adarshgopi.8693
@adarshgopi.8693 2 жыл бұрын
share
@faishalichal8934
@faishalichal8934 2 жыл бұрын
hello i want to ask, are we only learning training datset only?or test and validation should learning too thanks
@saitejamalladi
@saitejamalladi 4 жыл бұрын
Thanks Jay. You explained it very nicely. Now, I can just get the data and start the training. Really appreciate your efforts.
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
Did you run the code?
@saitejamalladi
@saitejamalladi 4 жыл бұрын
@@ahmedhusham7728 Not yet, I'm still setting up the env.
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
@@saitejamalladi ok, if you run it correctly please contact me via ahm179@yahoo.com
@saitejamalladi
@saitejamalladi 4 жыл бұрын
@@ahmedhusham7728 sure. Will try this weekend.
@saqlainhaider1353
@saqlainhaider1353 3 жыл бұрын
@@saitejamalladi have u tried it?
@udayzope8810
@udayzope8810 3 жыл бұрын
Hands down crisp and clear. Thank you.
@movieimpact12
@movieimpact12 3 жыл бұрын
best video ever #luvFromPakistan
@vk2k73
@vk2k73 2 жыл бұрын
Thank you so much for this step by step tutorial video. With the help of this video we successfully completed our Final Year Project.👌🤝🤞👍
@ballajaisheel1120
@ballajaisheel1120 10 ай бұрын
can you share me the pretrained weights??
@vk2k73
@vk2k73 10 ай бұрын
@@ballajaisheel1120 Sorry we done that project in 2022. Even I don't have that code😞
@gandhalijoshi9242
@gandhalijoshi9242 3 жыл бұрын
Nice video on yolo object detection explained with detail steps..I used same steps to run on my custom dataset. Thanks for sharing this video.
@prasanta6155
@prasanta6155 3 жыл бұрын
Very comprehensive indeed!!! A big thumbs up!!!
@connorhughes4582
@connorhughes4582 Жыл бұрын
Incredible job - straightforward and educational.
@m.pavankalyan2650
@m.pavankalyan2650 Жыл бұрын
I am not getting any weights file in backup folder , what am I doing wrong , someone please help
@kazimali901
@kazimali901 3 жыл бұрын
Thankyou after watching from5,6 places this is the best tutorial .
@shayinmontreal137
@shayinmontreal137 3 жыл бұрын
Thank you so much for explaining so clearly.. No tutorial explains in such depth on how to do especially on windows.. Thanks Sir. Please also show how to run the model on google colab too with webcam in Google colab
@quantadotonium3654
@quantadotonium3654 2 жыл бұрын
Good job! Keep up !
@muhammadhasil2757
@muhammadhasil2757 10 ай бұрын
anyone following along using the label studio app which is newer version of labelmg should just annotate their dataset and then press exposrt scroll down and then click export in yolo format and then follow along
@jailohana9030
@jailohana9030 3 жыл бұрын
sadly i can give you one like only but you deserve a million on this great work
@ajaafferzarief2820
@ajaafferzarief2820 3 жыл бұрын
bro 5 th link is not working bro
@alami9024
@alami9024 2 жыл бұрын
Thanks so much for amazing tutorial :)
@Nabilphysics
@Nabilphysics 2 жыл бұрын
Great tutorial India Guy.
@ChessNotChessing
@ChessNotChessing 3 жыл бұрын
You are doing an amazing work. Thank you
@anneswabose2166
@anneswabose2166 3 жыл бұрын
Thank you sooo much sir for this detailed explanation ... ☺️☺️☺️☺️
@赛尼木
@赛尼木 3 жыл бұрын
Thx for the clear explanantion. But... where is the .ipynb file u used in the video? Am I supposed to type everything? Besides ur command of 11:22 is wrong. That will extract all images in the folder of yolo_custom_model_Training rather than in the folder of custom_data.
@umar_muhammad_yaree
@umar_muhammad_yaree 2 жыл бұрын
Thanks for the video I have a task which is pedestrian detection and congestion measurement I need to build a model that can detect pedestrian and also be able to say if the frame is congested For example let's say in a frame greater than 20 people means congested
@rajivdey3103
@rajivdey3103 3 жыл бұрын
Great tutorial keep doing the good work
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
@ Jay Bhatt Fantastic tutorial, I really appreciate it.
@ravanangaming9673
@ravanangaming9673 10 ай бұрын
Thanks sir it helped a lot
@lokusharma-he6ec
@lokusharma-he6ec 2 жыл бұрын
hello sir, i'm not getting your video, where you teach how to use trained weights in local(jupyter notebook) for image detection
@ravibarot6865
@ravibarot6865 3 жыл бұрын
Thank you for making this video. 5. Download pre-trained weights for the convolutional layers (154 MB) - link is not working. Can you please share it again
@kashafurooj1907
@kashafurooj1907 3 жыл бұрын
same problem sir. kindly share this link again
@TheEverydayAnalyst97
@TheEverydayAnalyst97 2 жыл бұрын
Got the link?
@TheEverydayAnalyst97
@TheEverydayAnalyst97 2 жыл бұрын
Just try another browser. Chrome is blocking it.
@masathirah3338
@masathirah3338 2 жыл бұрын
Try copy link and open in new tab. It will automatically download the weights
@allboutapex7742
@allboutapex7742 3 жыл бұрын
Amazing content, thank you very much! I learned so much
@Junhoenwnw
@Junhoenwnw 3 жыл бұрын
this was very useful for me. I appeciate this video
@makbarattallah1047
@makbarattallah1047 3 жыл бұрын
Thank you for your knowledge. I hope i can create model someday..........
@kiddicode6897
@kiddicode6897 2 жыл бұрын
I think: line 20: max_batches = max((number class)*2000, 6000). line 22: steps = 80%, 90% max_batches. Ex: number class = 1 --> max_batches=6000, steps=4800,5400
@arunkumarkl6772
@arunkumarkl6772 3 жыл бұрын
Excellent video sir,,... thank you so much... this helped me a lot...
@matssoto6061
@matssoto6061 2 жыл бұрын
I could not thank you enough for this tutorial. May Zeus bless you (I suscribe to the ancient greek religion)
@godse54
@godse54 2 жыл бұрын
thanks a lot for this video
@pankajkushwaha3793
@pankajkushwaha3793 4 жыл бұрын
Thanks , it was helpful , Creation of this video and level of detail must have taken lots of effort.
@SohailKhan-tt5eh
@SohailKhan-tt5eh 3 жыл бұрын
good tutorial, I appreciate your work
@houston3414
@houston3414 4 жыл бұрын
good tutorial, I appreciate your work, is it possible you can do a tutorial about precision and recall between the two models(yolov3,v4) performance and plot on the same graph
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 4 жыл бұрын
sure
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
Sorry, did you execute this code?
@mkBenja
@mkBenja 3 жыл бұрын
Thank you for the great tutorial, it works! I have a questions: How do I test the model that I just trained so that I can analyse the validation accuracy of the model? Thanks
@mostafaashraf3264
@mostafaashraf3264 3 жыл бұрын
remove the comment in testing lines
@akinyigaobadamilare8946
@akinyigaobadamilare8946 3 жыл бұрын
If we are removing different comment in testing file, does that mean we will also change all the parameters has well
@dennisasamoah2213
@dennisasamoah2213 4 жыл бұрын
really clear tutorial
@chaoxi8966
@chaoxi8966 4 жыл бұрын
Hi, have you run the model success? My model only recognize Mark Zuckerberg? Any sugggestion?
@vanlarruat5259
@vanlarruat5259 4 жыл бұрын
When testing, i got the error. Value error : list index out of bound. How can I solve this? Plz. Thank yoy.
@ansjaved3484
@ansjaved3484 2 жыл бұрын
great hard work. I want to ask one question. As we are just passing the images name from the train.txt and test.txt file to train the model but where we are passing the images annotations to that model?
@sohailali5741
@sohailali5741 4 жыл бұрын
Great tutorial, can you please make a tutorial on how to evaluate trained model in terms of Precision and Recall?
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 4 жыл бұрын
Sure object detection tutorial are under development will be out soon...
@avirupbhattacharyya
@avirupbhattacharyya 4 жыл бұрын
+1
@divyamishra1089
@divyamishra1089 4 жыл бұрын
@@whenmathsmeetcoding1836 yes... please make a video on how to calculate mean average precision metric. Also, thanks for sharing the knowledge for custom model. It's awesome 😀
@ansjaved3484
@ansjaved3484 2 жыл бұрын
@@whenmathsmeetcoding1836 bro great hard work. I want to ask one question. As we are just passing the images name from the train.txt and test.txt file to train the model but where we are passing the images annotations to that model?
@Iamanandraj
@Iamanandraj 3 жыл бұрын
Finally i have trained my model but in backup folder there no any weight file. It’s blank
@talksai
@talksai 2 жыл бұрын
Really helpfu!!! But what if i want to add more objects with existing yolov3 objects. I have some costomized objects but also want old one. Pls reply...
@fatima-ezzahramaad5366
@fatima-ezzahramaad5366 2 жыл бұрын
thank you so much
@srisupangth
@srisupangth 4 жыл бұрын
if you guys have a problem like "/bin/bash: darknet/darknet: Permission Denied"., after GPU-enabled. Please following this step; 1. restart your colab again and execute your whole cells again 2. if you find the error after run !make , you have to delete the obj folder inside darknet folder and then rerun !make again. 3. try to run the !darknet/darknet .... again. It works for me. if you have the problem on the train and test.txt show as the empty files, you have to edit the creating-files-data-and-name, creating-train-and-test-txt-files files by changing jpg to jpeg, or vice versa. Hope it help!
@roy---
@roy--- 4 жыл бұрын
can you help me with this error when training, Wrong annotation: class_id = 15. But class_id should be [from 0 to 0], file: dataset2/60.txt
@srisupangth
@srisupangth 4 жыл бұрын
@@roy--- hey roy, I had the same problem after used the labelImg tool. It will generate class_id start from 15 to the end. The class_id should be started at 0 to the end. You can edit from your text file or using other labelImg tool.
@tayfurgulen2153
@tayfurgulen2153 3 жыл бұрын
​@@srisupangth hey, when i run training command(!darknet/darknet....) CUDA status Error: file: ./src/dark_cuda.c : (). CUDA Error: no CUDA-capable device is detected: Bad file descriptor darknet: ./src/utils.c:331: error: Assertion `0' failed. i had to face with this problem. My make file value is GPU=1, CUDNN=1, OPENCV=1
@Renan2792
@Renan2792 4 жыл бұрын
Does it work with multiple objects in same image? I'm trying to detect beans over a white screen. I'll try everything the video shows, but does somebody knows if there's no problem in putting more than one square over the same image using label image? Edit: IT WORKS! I've done it. Congratulations Mr. Jay, your video is very good for us people who have difficulty in learning advanced programming. I just have a simple suggestion, to add subtitles to the video. Other than this, everything is great!
@kamalinichauhan4407
@kamalinichauhan4407 3 жыл бұрын
hey how did u train it
@Renan2792
@Renan2792 3 жыл бұрын
@@kamalinichauhan4407 Just followed the video
@javeedranjha3742
@javeedranjha3742 4 жыл бұрын
Sir training does not start but having this issue 608 x 608 Create 6 permanent cpu-threads
@muhammadhananasghar3102
@muhammadhananasghar3102 4 жыл бұрын
@MOHAMMAD ABDUL RAZZAQ 18BCD7128 Check out this i have solve this and got a better solution colab.research.google.com/drive/1GEiDDpDOSeGqi1nijW0yCmFApQkypkmt?usp=sharing
@namishabhasin5857
@namishabhasin5857 4 жыл бұрын
@@muhammadhananasghar3102 thanks..if possible please provide the link for further also
@muhammadhananasghar3102
@muhammadhananasghar3102 4 жыл бұрын
@@namishabhasin5857 What Kind of Help You Want Any Idea????? I will provide information according to your point
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
@MOHAMMAD ABDUL RAZZAQ 18BCD7128 exactly like me it is ended in a few minutes with these lines: 608 x 608 Create 6 permanent cpu-threads
@wesleymotta56
@wesleymotta56 3 жыл бұрын
Exactly like me and i found the solution!!! - First open de custom_Data folder and check if train.txt and test.txt are blank, if they this is the same problem! When we use "!python TFT_Data/creating-train-and-test-txt-files.py" the command expect imagens with the extencion .jpeg so others extencions dont work - Second make sure all imagens on custom_Data folder have extension .jpeg - Remove test.txt and train.txt file, return to colab and run "!python TFT_Data/creating-train-and-test-txt-files.py" - Check if the new test.txt and train.txt have content - Use the last comant of the video normaly to train YOLO
@SaurabhSingh-zf1de
@SaurabhSingh-zf1de Жыл бұрын
My training is abruptly stopping after 3-4 hrs. (no error message) and nothing is stored in backup folder. I am training for 2 classes. What could be the possible reasons.
@nandhininallamuthu4060
@nandhininallamuthu4060 3 жыл бұрын
Thanks for this great tutorial. Very detailed and clear!.
@secretofreligion4663
@secretofreligion4663 3 жыл бұрын
Hello I worked with this model perfectly but the issue is the only last weight file gets save into my backup folder. Other weights file like yolo_1000 weights these files are not getting save in my backup folder. Please help me to solve this issue. Why this is happening ?
@whataday3910
@whataday3910 4 жыл бұрын
Really, really good tutorial!!! Can you say anything to the values of width and height in yolov3_custom.cfg file? Depends the resolution on the training data or on the camera resolution i use for detection later? maybe it is a dumb question for you but i am definitely not sure.
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 4 жыл бұрын
yes there are arguments but it also automatically scales down the image you can give imges with different aspect ratio.
@whataday3910
@whataday3910 4 жыл бұрын
@@whenmathsmeetcoding1836 so the resolution of training don't depend on my camera later?
@otakuguild5603
@otakuguild5603 4 жыл бұрын
hey can u tell wether to change the name to yolo2_custom.cng OR yolo3_custom.cfg ? at 27:20.
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
@@otakuguild5603 I think he mistake, it must be yolo3_custom.cfg
@mizantednioc
@mizantednioc 2 жыл бұрын
The link for Labelimg is dead. Can you please update the link and also show the other free alternatives to train a model?
@TheJoker-cg6te
@TheJoker-cg6te 2 жыл бұрын
Sir this is urgent. I am getting "/bin/bash: darknet/darknet: Not a directory", what should I do?
@habibashaheen4906
@habibashaheen4906 2 жыл бұрын
@@UCky-l_seRRkuS7rHG9AJMsQ did you solve it?
@faishalichal8934
@faishalichal8934 2 жыл бұрын
are you separate between training test and valid when training?or only training data you learn?
@zakariaesaidi843
@zakariaesaidi843 3 жыл бұрын
i didn't find any trained files in the folder backup what can be the problem !
@skandan531
@skandan531 3 жыл бұрын
same here
@secretofreligion4663
@secretofreligion4663 3 жыл бұрын
@@skandan531 would you solve your problem facing the same problem
@SaurabhKumar-nm6jl
@SaurabhKumar-nm6jl 4 жыл бұрын
sir, training stoped here // Detection layer: 82 - type = 28 Detection layer: 94 - type = 28 Detection layer: 106 - type = 28 Resizing, random_coef = 1.40 608 x 608 Create 6 permanent cpu-threads // and after this no weight file in backup folder
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 4 жыл бұрын
Hi Sauarb please recompile the makefile and check if you have. not done any mistake with config file..
@taibtassadit910
@taibtassadit910 4 жыл бұрын
have you found a solution?
@SaurabhKumar-nm6jl
@SaurabhKumar-nm6jl 4 жыл бұрын
@@taibtassadit910 no not yet
@whataday3910
@whataday3910 4 жыл бұрын
@@SaurabhKumar-nm6jl Hi, i have the same problem. is your train.txt empty?
@ismaelhl5656
@ismaelhl5656 4 жыл бұрын
I had the same issue. Check out if your train.txt and text.txt are empty, in that case, open your creating-text-and-text-txt-files.py and go to the line 74. Check if the parameter is the same as the extension of your images, if not, change it. In my case looks like: "if f.endswith('.jpg'):". Hope it help you all.
@jcavs9847
@jcavs9847 2 жыл бұрын
obrigado!
@mukeshpandit3958
@mukeshpandit3958 3 жыл бұрын
very nice video. does this same method apply to yolo v5 also?
@SUMANMH
@SUMANMH 2 жыл бұрын
608 x 608 Create 6 permanent cpu-threads after running it is just stopping here so what to do plz help sir
@abhinavchoudhary2581
@abhinavchoudhary2581 4 жыл бұрын
Hello Sir, First of all, thanks for sharing such a brilliant video. Really appreciate it 🙏. Sir, I am facing the same problem of getting a error msg : "/bin/bash: darknet/darknet: Permission Denied". But the solution comman you shared isn't working in my system. Can you please help me with a solution 🙏
@bub1728
@bub1728 4 жыл бұрын
Same.
@donatellamanno790
@donatellamanno790 4 жыл бұрын
@@bub1728 same :(
@saitejamalladi
@saitejamalladi 4 жыл бұрын
Try using !chmod 755 -R darknet when you are in the yolo_custom_model_training directory. It gives the permission to execute ./darknet
@VikashKumar-ty6uy
@VikashKumar-ty6uy 3 жыл бұрын
@@saitejamalladi How did you do that..can i have the full path please
@muhammadraza9674
@muhammadraza9674 3 жыл бұрын
try this line of code it will be working >>> %cd /content/drive/MyDrive/yolo_custom_model_training >>> !darknet/darknet >>> !darknet/darknet detector train custom_data/labelled_data.data darknet/cfg/yolov3_custom.cfg custom_weight/darknet53.conv.74 -dont_show
@sunilamehboob465
@sunilamehboob465 4 жыл бұрын
Sir please give some example of using resnet50, alexnet and other models using for own dataset
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 4 жыл бұрын
check out letest video on channel.. its already done..
@merondesta3895
@merondesta3895 2 жыл бұрын
thanks for the tutorial that was wonderful. when editing the MAKE file which is in the darknet folder what if i make CUDNN_HALF=0 to CUDNN_HALF=1 what is the diirence?
@gautamaggarwal9980
@gautamaggarwal9980 2 жыл бұрын
bro sab sahi tha but Could not we do selecting gpu in the beginning to save the mess at the end
@TheOubaid
@TheOubaid 4 жыл бұрын
i edited to suit my custom data: example of what my .txt file for the bounding box looks like: (0 0.336232 0.320863 0.052174 0.515108), i have only 1 class so it's 0. I have changed the classes number to 1, filters to 18((classes+5)*3), batches 4000(minimum), min/max batches(3800-4200) and of course changed all the 3 [Yolo] layers with their convolutional layers, Height = Width, etc.. I'm working on google.collab but i edit my files on my machine which is windows. I checked for the CR - LF, using windows and my files contain " " so i did not change them assuming it works fine with a windows machine. i have my test and train files filled, labelled_data.data, "!file" compiled correctly, checked the path !darknet/darknet detector train custom_data/labelled_data.data darknet/cfg/yolov3_custom.cfg custom_weight/darknet53.conv.74 -dont_show assuming i took care of all the details and everything will work fine. BUT,i keep getting this error when i try t o train the model: yolov3_custom First section must be [net] or [network]: No such file or directory darknet: ./src/utils.c:256: error: Assertion `0' failed. I don't know what could've gone wrong with this!
@fairuzshadmanishishir8171
@fairuzshadmanishishir8171 4 жыл бұрын
great
@ayushanusha
@ayushanusha 2 жыл бұрын
Really good tutorial sir, it really helped a lot! I just wanted to know what command I should write and the changes I should do so that I can use my trained model weights on my test set that we created instead of real time object detection. Please let me know!
@illuminatidaylight8566
@illuminatidaylight8566 Жыл бұрын
Did you get your expected result??? I ran the python code which he has given in description after doing everything from start In output I can only see live webcam it's not showing the classes which I gave
@illuminatidaylight8566
@illuminatidaylight8566 Жыл бұрын
Where should be the problem
@prasantas2195
@prasantas2195 3 жыл бұрын
The jupyter notebook is missing at the link you shared So one needs to make note of every word you are telling to be able to implement this. Please also share the link for magic command you are mentioning in the video (13th min).
@xiaogecheng3335
@xiaogecheng3335 3 жыл бұрын
Hello sir, Im really grateful that you made this video, it really helped me a lot! I want to ask if I want to use a pretrained ResNet50 as backbone with Yolov3, then I can just replace the final layers with the YOLO at the resnet cfg file in the cfg folder?
@toufickeelahi8164
@toufickeelahi8164 3 жыл бұрын
Hello, is labelImg.exe work in your computer?
@xiaogecheng3335
@xiaogecheng3335 3 жыл бұрын
@@toufickeelahi8164 yes
@toufickeelahi8164
@toufickeelahi8164 3 жыл бұрын
@@xiaogecheng3335 can you detect object in real time video?
@xiaogecheng3335
@xiaogecheng3335 3 жыл бұрын
@@toufickeelahi8164 can ya, follow another video from him
@toufickeelahi8164
@toufickeelahi8164 3 жыл бұрын
actually i asked it because, this tuitorial labelimg download annotation of image in text file format, but when I annotated it, the annotation data save in XML file. Is there any solution?
@someshkb
@someshkb 2 жыл бұрын
Thank you for your video. For labelling objects in the image, can we use polygons or circles for annotating them and feed it to YOLO? If yes, can you please explain that?
@anumulachaitanyasai5087
@anumulachaitanyasai5087 Жыл бұрын
No sir, standard yolo algorithm only takes a box as input
@ravikiran5518
@ravikiran5518 2 жыл бұрын
Hai, i have followed the procedure as shown in this video and everything is worked fine but when it comes to detecting an object if i show images infront of web cam its not working means not detecting the object , please let me know your response at the earliest
@nebiyebulan9242
@nebiyebulan9242 3 жыл бұрын
Hello, I have come to the end, the training has started. my dataset is less. After 1 hour of training, only yolov3_custom_last.weights appeared in the backup file. Where am I going wrong? Please tell me.
@ankitsharma1943
@ankitsharma1943 3 жыл бұрын
is this issue resolved?
@syun8475
@syun8475 3 жыл бұрын
HI ~ Teacher , I have a question when I excute the code {!make} . Content appears warning {nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50'} Will it effect to excute !darknet/darknet? I excute {!darknet/darknet} appear the content /bin/bash: darknet/darknet: Not a directory how can i resolve the erroe ? thank u ~
@MrUnbeatable-zz3ve
@MrUnbeatable-zz3ve 3 жыл бұрын
run once again make and %cd and python script file that
@MrUnbeatable-zz3ve
@MrUnbeatable-zz3ve 3 жыл бұрын
is !python custom_data/creating-files-data-and-name.py !python custom_data/creating-train-and-test-txt-files.py
@ketankumar8893
@ketankumar8893 2 жыл бұрын
not able to download pretrained weights in step 5.please help
@pranjaliraut205
@pranjaliraut205 6 ай бұрын
18:50 There is nothing in train.txt and test.txt how to solve that problem
@naveenvarghesejacob5792
@naveenvarghesejacob5792 Жыл бұрын
"detections_count = 0, unique_truth_count = 0 class_id = 0, name = Wounds, ap = 0.00% (TP = 0, FP = 0) for conf_thresh = 0.25, precision = nan, recall = nan, F1-score = nan for conf_thresh = 0.25, TP = 0, FP = 0, FN = 0, average IoU = 0.00 % IoU threshold = 50 %, used Area-Under-Curve for each unique Recall mean average precision (mAP@0.50) = 0.000000, or 0.00 % Total Detection Time: 0 Seconds" I tried to train a model with 1000 images(80:20) and while detection I am getting MAP as zero...is it an issue of not detecting labels or less amount of data being trained?. The annotations in yolo format (text files) with the same name as training image are put in the same directory. Pls let me know how the model detects the annotations as I am not clear how to pass labels into in the training process.
@akhilreddy6220
@akhilreddy6220 3 жыл бұрын
GPU isn't used OpenCV isn't used - data augmentation will be slow
@priyanshumaddheshiya5047
@priyanshumaddheshiya5047 Жыл бұрын
have you found the solution?
@yashnikhare2210
@yashnikhare2210 4 жыл бұрын
My backup folder remains empty even after successfully trained
@redabadaoui1641
@redabadaoui1641 4 жыл бұрын
same
@sebastiaong7365
@sebastiaong7365 4 жыл бұрын
please i have de same problem . have solve this problem?
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
same with me, the code finished correctly displaying the network layers details which end at this lines: 608 x 608 Create 6 permanent cpu-threads Anyone can assist me?
@georgemamdouh9131
@georgemamdouh9131 3 жыл бұрын
same
@kamalinichauhan4407
@kamalinichauhan4407 3 жыл бұрын
did anyone solve the issue?
@adnanahmed1871
@adnanahmed1871 3 жыл бұрын
the weights are not saving in the backup folder. what should I do?
@ahmedjbeli6052
@ahmedjbeli6052 3 жыл бұрын
thanks for the great tuto :) I followed the steps , but didn,t get any files in backup folder ?
@m.pavankalyan2650
@m.pavankalyan2650 Жыл бұрын
I am not getting any weights file in backup folder , what am I doing wrong , someone please help
@melihkeskin6425
@melihkeskin6425 4 жыл бұрын
The link for the pre-trained weights is not working right now. Can you update it?
@parhammembari584
@parhammembari584 3 жыл бұрын
I'm trying to detect objects in 4 classes and 10 images containing 100 labels in each image. But I have a performance bottleneck and the estimated time for loading images is 190 hours. What should I do to solve the problem?
@muhammadahsan7414
@muhammadahsan7414 2 жыл бұрын
I'm facing this error while training, "Couldn't open file: custom_data/labelled_data.data" Is anyone who can solve this error?
@huzaifihafizhahullah358
@huzaifihafizhahullah358 2 жыл бұрын
Same, i got an error """ OSError: [Errno 30] Read-only file system: 'custom_data/labelled_data.data' """
@CodeFlowYT
@CodeFlowYT 3 жыл бұрын
My training execution stops at this line 'Create 6 permanent cpu-threads' as seen on 32:02, do you have any idea?
@CodeFlowYT
@CodeFlowYT 3 жыл бұрын
Apparently I found that my text.txt is empty. The solution is to replace .jpeg to .jpg (because I'm using jpg files) inside creating-train-and-test-txt-files.py
@bharathwajan6394
@bharathwajan6394 2 жыл бұрын
How model will be saved in backup folder since you didn't mention that folder anywhere in the code
@farzeenashfaq2910
@farzeenashfaq2910 2 жыл бұрын
thank you so much but why my training stops too early and nothing is created in backup folder
@alter_thing5383
@alter_thing5383 3 жыл бұрын
I'm unable to run the make command, showing "chmod +x *.sh " error. please help me out.
@KM-kj6nm
@KM-kj6nm 9 ай бұрын
Did you resolve it? I'm stuck in the same error.
@warlok5779
@warlok5779 3 жыл бұрын
after running the last command im getting this error CUDA status Error: file: ./src/dark_cuda.c : () : line: 39 : build time: Sep 20 2021 - 13:14:47 CUDA Error: no CUDA-capable device is detected Darknet error location: ./src/dark_cuda.c, check_error, line #70 CUDA Error: no CUDA-capable device is detected: Bad file descriptor
@souravsingh6229
@souravsingh6229 2 жыл бұрын
i am getting this error If error occurs - run training with flag: -dont_show Unable to init server: Could not connect: Connection refused can someone help me
@balajip8711
@balajip8711 3 жыл бұрын
Sir, you had forgot to tell that after making changes in the make file we have to run the !make command.
@techrock4499
@techrock4499 3 жыл бұрын
I am facing 6 parameters threads cpu. can you help me out?
@walid-lb9so
@walid-lb9so 3 жыл бұрын
@@techrock4499 i am having the same problem. Did you find a solution?
@S.h.iv.an.i
@S.h.iv.an.i 2 жыл бұрын
error: nvcc fatal : Unsupported gpu architecture 'compute_30' Makefile:92: recipe for target 'obj/convolutional_kernels.o' failed make: *** [obj/convolutional_kernels.o] Error 1
@ahmadharun25
@ahmadharun25 3 жыл бұрын
when I create !python custom_data/creating-train-and-test-txt-files.py, file train and test.txt is empty, why ? please help
@sivaraman72
@sivaraman72 3 жыл бұрын
check the extension of your image file, if it is other than .jpg, then try to include that extension in the creating-train-and-test-txt-files.py file
@eminsaygl4655
@eminsaygl4655 3 жыл бұрын
Hello everyone, i have done everything but program did not run actually program runned and camera openned but did not detecth my custom objects i need some help abouth it. Could you please help me about this subject it's so important for me
@VikashKumar-ty6uy
@VikashKumar-ty6uy 3 жыл бұрын
while running !python custom_image/creating-files-data-and-name.py i am getting below error: Traceback (most recent call last): File "custom_image/creating-files-data-and-name.py", line 58, in with open(full_path_to_images + '/' + 'classes.names', 'w') as names, \ FileNotFoundError: [Errno 2] No such file or directory: 'E:/Data Science/DL/Dataset/custom_image/classes.names' Please help
@syedusama7393
@syedusama7393 2 жыл бұрын
sir the short script for renaming the images is not running, it gives the error "name os is not defined"
@nipunchawla4064
@nipunchawla4064 3 жыл бұрын
Sir the model training command is showing the error 'Permission denied'. Please help
@zakariaesaidi843
@zakariaesaidi843 3 жыл бұрын
hi nipun, did you solve the problem
@nipunchawla4064
@nipunchawla4064 3 жыл бұрын
@@zakariaesaidi843 Yeah... I just had to do the chmod +x thing
@hegngheng2665
@hegngheng2665 3 жыл бұрын
how to solve it?
@nipunchawla4064
@nipunchawla4064 3 жыл бұрын
@@hegngheng2665 You just add the chmod +x and then the file name before executing the training statement
@hegngheng2665
@hegngheng2665 3 жыл бұрын
@@nipunchawla4064 ok i try later Thxxx
@hepzibavimalson9399
@hepzibavimalson9399 4 жыл бұрын
Thanking you. i had a another one doubt Shall i use this weights file ? yolov3_custom_last.weights instead of yolov3_custom_6000.weights file Bcz my backupfolder has only yolov3_custom_last.weights file after the training done
@ahmedhusham7728
@ahmedhusham7728 4 жыл бұрын
Did you run the code correctly?
@baritirthesh1178
@baritirthesh1178 3 жыл бұрын
@@ahmedhusham7728 Hey can you please share this file? 5. Download pre-trained weights for the convolutional layers (154 MB): its not available now, link is not responding Thanks a lot
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
@@baritirthesh1178 I have the code of this tutorial but sorry I don't have such file of (154 MB)
@pavankumar3184
@pavankumar3184 3 жыл бұрын
Hi, I am getting GPU isn't used and opencv isn't used.... please help..
@lakshminarasimhan4996
@lakshminarasimhan4996 3 жыл бұрын
Did you solved the problem..?
YOLO11 Custom Object Detection
27:09
Code With Aarohi
Рет қаралды 20 М.
NERF TIMBITS BLASTER
00:39
MacDannyGun
Рет қаралды 14 МЛН
Горы Бесплатной пиццы
00:56
Тимур Сидельников
Рет қаралды 8 МЛН
Strange dances 😂 Squid Game
00:22
عائلة ابو رعد Abo Raad family
Рет қаралды 29 МЛН
YOLO-V3: An Incremental Improvement || YOLO OBJECT DETECTION SERIES
29:38
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 7 МЛН
YOLOv5 training with custom data
20:29
SoftwaresAI
Рет қаралды 443 М.
12VHPWR on RTX 5090 is Extremely Concerning
20:36
der8auer EN
Рет қаралды 15 М.
Visualizing transformers and attention | Talk for TNG Big Tech Day '24
57:45
NERF TIMBITS BLASTER
00:39
MacDannyGun
Рет қаралды 14 МЛН