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

  Рет қаралды 172,463

When Maths Meet Coding

When Maths Meet Coding

Күн бұрын

Пікірлер: 893
@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 2 жыл бұрын
/bin/bash: darknet/darknet: Not a directory
@bluechipsolutions1904
@bluechipsolutions1904 2 жыл бұрын
@@worthtech3249 same here , do you find any solution?
@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 2 жыл бұрын
it is because the test or train.txt is empty
@Faisalamin01
@Faisalamin01 2 жыл бұрын
@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 ".
@anuragmishra6262
@anuragmishra6262 3 жыл бұрын
I can't thank you enough sir ! You solved all of my doubts, thanks for giving your valuable time to us.
@baritirthesh1178
@baritirthesh1178 2 жыл бұрын
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 7 ай бұрын
hey can please share me the pretrained weights ???
@赛尼木
@赛尼木 2 жыл бұрын
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
@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
@udayzope8810
@udayzope8810 2 жыл бұрын
Hands down crisp and clear. Thank you.
@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)
@saitejamalladi
@saitejamalladi 3 жыл бұрын
Thanks Jay. You explained it very nicely. Now, I can just get the data and start the training. Really appreciate your efforts.
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
Did you run the code?
@saitejamalladi
@saitejamalladi 3 жыл бұрын
@@ahmedhusham7728 Not yet, I'm still setting up the env.
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
@@saitejamalladi ok, if you run it correctly please contact me via ahm179@yahoo.com
@saitejamalladi
@saitejamalladi 3 жыл бұрын
@@ahmedhusham7728 sure. Will try this weekend.
@saqlainhaider1353
@saqlainhaider1353 3 жыл бұрын
@@saitejamalladi have u tried it?
@prasanta6155
@prasanta6155 3 жыл бұрын
Very comprehensive indeed!!! A big thumbs up!!!
@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
@gandhalijoshi9242
@gandhalijoshi9242 2 жыл бұрын
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.
@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
@赛尼木
@赛尼木 2 жыл бұрын
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.
@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
@kazimali901
@kazimali901 3 жыл бұрын
Thankyou after watching from5,6 places this is the best tutorial .
@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 7 ай бұрын
can you share me the pretrained weights??
@vk2k73
@vk2k73 7 ай бұрын
@@ballajaisheel1120 Sorry we done that project in 2022. Even I don't have that code😞
@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 2 жыл бұрын
same problem sir. kindly share this link again
@TheEverydayAnalyst
@TheEverydayAnalyst 2 жыл бұрын
Got the link?
@TheEverydayAnalyst
@TheEverydayAnalyst 2 жыл бұрын
Just try another browser. Chrome is blocking it.
@masathirah3338
@masathirah3338 Жыл бұрын
Try copy link and open in new tab. It will automatically download the weights
@saurabh0965
@saurabh0965 2 жыл бұрын
You are doing an amazing work. Thank you
@trendyimpacttv
@trendyimpacttv 3 жыл бұрын
best video ever #luvFromPakistan
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
@ Jay Bhatt Fantastic tutorial, I really appreciate it.
@lokusharma-he6ec
@lokusharma-he6ec Жыл бұрын
hello sir, i'm not getting your video, where you teach how to use trained weights in local(jupyter notebook) for image detection
@alami9024
@alami9024 2 жыл бұрын
Thanks so much for amazing tutorial :)
@anneswabose2166
@anneswabose2166 3 жыл бұрын
Thank you sooo much sir for this detailed explanation ... ☺️☺️☺️☺️
@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?
@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
@arunkumarkl6772
@arunkumarkl6772 3 жыл бұрын
Excellent video sir,,... thank you so much... this helped me a lot...
@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 3 жыл бұрын
Sorry, did you execute this code?
@allboutapex7742
@allboutapex7742 3 жыл бұрын
Amazing content, thank you very much! I learned so much
@rajivdey3103
@rajivdey3103 2 жыл бұрын
Great tutorial keep doing the good work
@faishalichal8934
@faishalichal8934 2 жыл бұрын
are you separate between training test and valid when training?or only training data you learn?
@makbarattallah1047
@makbarattallah1047 3 жыл бұрын
Thank you for your knowledge. I hope i can create model someday..........
@Nabilphysics
@Nabilphysics Жыл бұрын
Great tutorial India Guy.
@pankajkushwaha3793
@pankajkushwaha3793 3 жыл бұрын
Thanks , it was helpful , Creation of this video and level of detail must have taken lots of effort.
@quantadotonium3654
@quantadotonium3654 2 жыл бұрын
Good job! Keep up !
@umarmuhammadi429
@umarmuhammadi429 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
@talksai
@talksai Жыл бұрын
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...
@nandhininallamuthu4060
@nandhininallamuthu4060 3 жыл бұрын
Thanks for this great tutorial. Very detailed and clear!.
@ravanangaming9673
@ravanangaming9673 7 ай бұрын
Thanks sir it helped a lot
@Junhoenwnw
@Junhoenwnw 3 жыл бұрын
this was very useful for me. I appeciate this video
@SohailKhan-tt5eh
@SohailKhan-tt5eh 2 жыл бұрын
good tutorial, I appreciate your work
@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
@javeedranjha3742
@javeedranjha3742 4 жыл бұрын
Sir training does not start but having this issue 608 x 608 Create 6 permanent cpu-threads
@muhammadhananasghar3102
@muhammadhananasghar3102 3 жыл бұрын
@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 3 жыл бұрын
@@muhammadhananasghar3102 thanks..if possible please provide the link for further also
@muhammadhananasghar3102
@muhammadhananasghar3102 3 жыл бұрын
@@namishabhasin5857 What Kind of Help You Want Any Idea????? I will provide information according to your point
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
@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
@Renan2792
@Renan2792 3 жыл бұрын
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
@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 3 жыл бұрын
hey can u tell wether to change the name to yolo2_custom.cng OR yolo3_custom.cfg ? at 27:20.
@ahmedhusham7728
@ahmedhusham7728 3 жыл бұрын
@@otakuguild5603 I think he mistake, it must be yolo3_custom.cfg
@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 3 жыл бұрын
+1
@divyamishra1089
@divyamishra1089 3 жыл бұрын
@@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?
@matssoto6061
@matssoto6061 2 жыл бұрын
I could not thank you enough for this tutorial. May Zeus bless you (I suscribe to the ancient greek religion)
@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
@SaurabhSingh-zf1de
@SaurabhSingh-zf1de 10 ай бұрын
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.
@srisupangth
@srisupangth 3 жыл бұрын
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--- 3 жыл бұрын
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 3 жыл бұрын
@@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
@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
@toufickeelahi8164
@toufickeelahi8164 3 жыл бұрын
Hi, i face a problem that is nothing is saved in my back up file. how can I solve it?
@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?
@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?
@muhammadhasil2757
@muhammadhasil2757 6 ай бұрын
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
@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.
@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 3 жыл бұрын
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.
@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?
@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
@mukeshpandit3958
@mukeshpandit3958 2 жыл бұрын
very nice video. does this same method apply to yolo v5 also?
@hepzibavimalson9399
@hepzibavimalson9399 3 жыл бұрын
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 3 жыл бұрын
Did you run the code correctly?
@baritirthesh1178
@baritirthesh1178 2 жыл бұрын
@@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 2 жыл бұрын
@@baritirthesh1178 I have the code of this tutorial but sorry I don't have such file of (154 MB)
@ilkeraykut7064
@ilkeraykut7064 3 жыл бұрын
How many photos I should upload for 1 class? And for more classes,What it should be the values for batch,subdivision and step?Please hlp,Thank you.
@Renan2792
@Renan2792 3 жыл бұрын
People usually say the higher the batch, the better (try using 16, 32 or 64), subdivision should be higher deppending on your batch chosen, and memory (example, on colab I choose batch as 64, and subdivision as 8, I got an error. Then used subdivison as 16 and did it. Try using 8 or 16 for subdivison). For steps, you can try using the first value being 70% of max batches, and the second, 90% of max batches.
@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?
@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 ?
@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
@akhilreddy6220
@akhilreddy6220 3 жыл бұрын
GPU isn't used OpenCV isn't used - data augmentation will be slow
@priyanshumaddheshiya5047
@priyanshumaddheshiya5047 Жыл бұрын
have you found the solution?
@evandrocardozo62
@evandrocardozo62 3 жыл бұрын
Thanks for the great content. Does this code work for multiple classes detection in the same picture?
@shankn3520
@shankn3520 3 жыл бұрын
yes
@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).
@HarishKumar-uy5ml
@HarishKumar-uy5ml 3 жыл бұрын
Training stops at Create 6 permanent cpu-threads Please help me @Jay Bhatt with this i tried a lot but unable to resolve.
@upulieh
@upulieh 3 жыл бұрын
Check for Zilong Li's answer in stackoverflow.com/questions/62296292/yolo-not-starting-to-train/66872342#66872342
@HarishKumar-uy5ml
@HarishKumar-uy5ml 3 жыл бұрын
@@saksheepatil5021 Means that i have just change both the file formats right
@mustafasabrialtun9010
@mustafasabrialtun9010 3 жыл бұрын
@@saksheepatil5021 thank youu bro . you're incredible
@nileshohol7484
@nileshohol7484 3 жыл бұрын
@@saksheepatil5021 Thanks, It helped a lot. Not all superhero wear capes.
@HarishKumar-uy5ml
@HarishKumar-uy5ml 3 жыл бұрын
@@saksheepatil5021 Line 74?
@somchatt
@somchatt 2 жыл бұрын
Number of input channels should be multiple of 27 but got 9 in function getMemoryShapes, getting this error, while doing inferencing. Please suggest.
@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
@abhinavchoudhary2581
@abhinavchoudhary2581 3 жыл бұрын
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 3 жыл бұрын
Same.
@donatellamanno790
@donatellamanno790 3 жыл бұрын
@@bub1728 same :(
@saitejamalladi
@saitejamalladi 3 жыл бұрын
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
@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?
@danithmihiran5271
@danithmihiran5271 3 жыл бұрын
By using this pretrain model can we use to train an animals data? Or we can use it only for face detection.
@whenmathsmeetcoding1836
@whenmathsmeetcoding1836 3 жыл бұрын
you can use for all short of custom data not only face animal but all type of data..
@danithmihiran5271
@danithmihiran5271 3 жыл бұрын
I have used 2000 images (7 classes) to train a model..but it didn't detect properly.. in configuration file I changed as batch =20 subdivision = 10 steps = 11200,16800 To test, used the yolov3_custom_9000.weights file.. Please let me know are there any mistakes that I have done?
@ravikiran5518
@ravikiran5518 Жыл бұрын
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
@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
@varungupta7226
@varungupta7226 3 жыл бұрын
I followed the tutorial, made some edits to the 'create-train-test.py' file. My model is training but it says - 'GPU and OpenCV isn't used'. I edited the makefile as told (made gpu and opencv value = 1) and also set notebook settings to use GPU. Any idea on how to resolve this? Kindly help. (model is getting trained, just not using the GPU and OpenCV) Thanks!
@rishalirai4910
@rishalirai4910 3 жыл бұрын
Hey Varun, did you find a solution for this?
@shriniwasmhatre2652
@shriniwasmhatre2652 2 жыл бұрын
Same problem here also
@unexpectediteminbaggingare8074
@unexpectediteminbaggingare8074 Жыл бұрын
GUYS make sure to change the runtime in colab, should be in the options “Change runtime type” and select one of the available GPU options.
@godse54
@godse54 2 жыл бұрын
thanks a lot for this video
@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 6 ай бұрын
Did you resolve it? I'm stuck in the same error.
@prasadbhatta2318
@prasadbhatta2318 3 жыл бұрын
Excellent video, I created notebook following instructions for only two classes in my case and the model does not train for some reason after " Create 6 permanent cpu-threads ". What could be the reason? Thanks in advance!
@SaifChowdhuryFardin
@SaifChowdhuryFardin 3 жыл бұрын
i'm also facing the same problem.
@manishparmar5225
@manishparmar5225 3 жыл бұрын
Same bro
@muhammadzeeshanmasood9143
@muhammadzeeshanmasood9143 3 жыл бұрын
@@manishparmar5225 I am facing the same problem.Let me know if you have the solution
@happysonkar1231
@happysonkar1231 3 жыл бұрын
check the extension of your images is other than ".jpeg" then also the same in your creating-train-and-test-txt-files.py It should solve your purpose
@ahmedjbeli6052
@ahmedjbeli6052 2 жыл бұрын
as @Happy Sonkar said check the extension of the pictures u are using
@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' """
@Iamanandraj
@Iamanandraj 2 жыл бұрын
Finally i have trained my model but in backup folder there no any weight file. It’s blank
@pavankumar3184
@pavankumar3184 3 жыл бұрын
Hi, I am getting GPU isn't used and opencv isn't used.... please help..
@lakshminarasimhan4996
@lakshminarasimhan4996 2 жыл бұрын
Did you solved the problem..?
@ahmedjbeli6052
@ahmedjbeli6052 2 жыл бұрын
thanks for the great tuto :) I followed the steps , but didn,t get any files in backup folder ?
@enesyilmaz96
@enesyilmaz96 3 жыл бұрын
I made everything but program don't detecth my custom object. Have you any opinion this situation ?
@adnanahmed1871
@adnanahmed1871 3 жыл бұрын
the weights are not saving in the backup folder. what should I do?
@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
@bharathwajan6394
@bharathwajan6394 2 жыл бұрын
How model will be saved in backup folder since you didn't mention that folder anywhere in the code
@muhammadgalanggardamukti6484
@muhammadgalanggardamukti6484 3 жыл бұрын
Hello, want to ask. Why does my training keep on stopping midway? It always stopped after some epoch and didn't save any backups. I ran a datasets with total of 737 images to be classified into 7 different categories, and my yolo config is as follow>> batch = 32 subdiv = 8 channel = 7 max_batches = 14000 stteps = 13000, 14000 Thanks
@sivaraman72
@sivaraman72 3 жыл бұрын
I am also having the same problem, no models are generated in backup folder
@akashvasu
@akashvasu 2 жыл бұрын
U find solution?!
@muhammadgalanggardamukti6484
@muhammadgalanggardamukti6484 2 жыл бұрын
@@akashvasu if its got stucked, you need to redo the process from the very beginning, including deleting the pasted files and folders
@salehjamali6716
@salehjamali6716 Жыл бұрын
i did everything as it is but it dosent save files to backup folder why
@bhaktimarkad6209
@bhaktimarkad6209 2 жыл бұрын
Hello Sir, Trained module is not geeting in backup directry after sucessfull run.
@liuvictor3119
@liuvictor3119 Жыл бұрын
Hi, will this work if I use pascal/VOC xml file instead of YOLO txt file?
@gautamaggarwal9980
@gautamaggarwal9980 2 жыл бұрын
bro sab sahi tha but Could not we do selecting gpu in the beginning to save the mess at the end
@ahxmeds
@ahxmeds 3 жыл бұрын
If I also want to train using negative images (images which contain no objects that I am trying to detect), should I just have a empty .txt files for those images?
@priyamsrivastava1241
@priyamsrivastava1241 3 жыл бұрын
I guess you might have found answer to this question by now, but what you can do is use images that might have/not have the object. For example, if I wanna check whether the person is wearing a helmet or no, then I'll use one set of images with no helmet and label them as "no_helmet" and use a second set of images with label "helmet". That means you use two different classes .
@ahxmeds
@ahxmeds 3 жыл бұрын
@@priyamsrivastava1241 thanks for your reply. But this is not a classification problem, this is a detection problem. One needs to provide the annotation files containing coordinates of the bounding boxes, but since the negative image will not have a bounding box, i am not sure how to take care of that in this code.
@priyamsrivastava1241
@priyamsrivastava1241 3 жыл бұрын
@@ahxmeds Now I understand what you were trying to say. Yeah my solution won't work in this situation. Also if you do find the answer, can you please let me know here? Thanks
@mizantednioc
@mizantednioc Жыл бұрын
The link for Labelimg is dead. Can you please update the link and also show the other free alternatives to train a model?
@azgiraffe
@azgiraffe 3 жыл бұрын
Do I need library or packages in my local computer? Or can I just use it to install in google colab? Sadly I have only 2gb ram so I'm finding a tutorial that doesn't require to work in local computer
@unexpectediteminbaggingare8074
@unexpectediteminbaggingare8074 Жыл бұрын
hes using it in colab
@ihebchiha9205
@ihebchiha9205 2 жыл бұрын
Hello, does including negative photos to my dataset improve the detection of custom object?
@ketankumar8893
@ketankumar8893 2 жыл бұрын
not able to download pretrained weights in step 5.please help
@sanaishaq5747
@sanaishaq5747 2 жыл бұрын
GPU isn't used OpenCV isn't used - data augmentation will be slow yolov3_custom mini_batch = 1, batch = 4, time_steps = 1, train = 1 whats the issue? Can osmeone help me out
@priyanshumaddheshiya5047
@priyanshumaddheshiya5047 Жыл бұрын
have you found the solution?
@sanaishaq5747
@sanaishaq5747 Жыл бұрын
@@priyanshumaddheshiya5047 yes
@priyanshumaddheshiya5047
@priyanshumaddheshiya5047 Жыл бұрын
@@sanaishaq5747 how did you fix it?
@broadcasting_marcophilipss2285
@broadcasting_marcophilipss2285 Жыл бұрын
Will it be any different if I use yolov8, if there are any could you explain ?
@JaviepalFordring1
@JaviepalFordring1 3 жыл бұрын
my train.txt and test.txt ends up empty, I didn't rename my photos, they didn't have spaces, can be that the problem?
Introduction into YOLO v3
26:56
Валентин Сичкар
Рет қаралды 99 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 120 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 89 МЛН
Train YOLO to detect a custom object (online with free GPU)
27:56
YOLOv3 Training on Custom Data Using Google Colab With Free GPU.
12:57
Artificially Intelligent
Рет қаралды 10 М.
YOLOv8: How to Train for Object Detection on a Custom Dataset
20:31
YOLOv5 training with custom data
20:29
SoftwaresAI
Рет қаралды 428 М.
YOLOv8 | Object Detection on a Custom Dataset using YOLOv8
17:41
Code With Aarohi
Рет қаралды 138 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН