YOLOv5 training with custom data

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • YOLOv5 training with custom data.
    Need help? My Upwork account link:
    www.upwork.com...
    YOLOv5 chicken detection.
    YOLOv5 working with single class.
    YOLOv5 image labeling/bounding box
    chicken detection YOLOv5
    YOLOv5 train on cloud (google colab)
    Turn any camera into A.I object detection camera:
    • Turn your IP camera in...
    #YOLOv5
    #customDataset
    #imageAnnotation
    #makesenseAi

Komentáře • 586

  • @pranavkul525
    @pranavkul525 Před 2 lety +31

    Thanks a lot for this video! Not only did you present everything really well, but also there wasn't anything in this video that I missed or didn't understand. It's good to be learning such complicated implementations with such ease!

  • @bhuvneshvarvashistha6335
    @bhuvneshvarvashistha6335 Před 2 lety +7

    Wow, this explaination is one of the best I can find on CZcams! Thanks for your effort!

  • @aniketborkar9185
    @aniketborkar9185 Před 2 lety +13

    For the first time I could execute something in the very attempt! Thanks to you Sir!!! This was seriously awesome.

  • @sowmyar7056
    @sowmyar7056 Před rokem +5

    Thank you for such a amazing video about YOLO, had almost everything needed in it ❤

  • @chowdhuryalvikhan1666
    @chowdhuryalvikhan1666 Před 2 lety +9

    You explained this quite well man. Thanks a lot for such a great video. I do not comment on any channel but I couldn't stop myself from commenting on this video of yours. You are doing great man, best of luck for the future. Please do make videos on object detection using Reinforcement learning, it would help me a lot. I subscribed to your channel and liked your video, thanks man.

  • @BenceTGIF
    @BenceTGIF Před 9 měsíci

    The official colab notebook has changed since this video was made but still very useful! Thank you for your work!

  • @MarkMifsud
    @MarkMifsud Před 2 lety +1

    Thank you for the great tutorial and extra points for the chickens. I LOVE chickens!

  • @blackdiamond7790
    @blackdiamond7790 Před 2 měsíci

    Thank you soooo much. Finally after two days, I was able to do my class project ❤

  • @traeht
    @traeht Před rokem

    Thank you very much! You helped me a lot with your clear explanation. I spent my whole day trying to get YOLOv5 up and running. Then I found your guide, followed it and everything works now.

    • @abprojects7477
      @abprojects7477 Před rokem

      dear can you plz tell me how he unzipped the file i wrote the same code but it says unzip: cannot find or open ../train_data.zip, ../train_data.zip.zip or ../train_data.zip.ZIP.

    • @Isaac-be8dk
      @Isaac-be8dk Před 9 měsíci

      i encounter the same error ,and the problem maybe we compress all the files together. and it works well when i seperate this files to upload ,hope this can help you.@@abprojects7477

    • @nandininandu8375
      @nandininandu8375 Před 7 měsíci

      ​Yup I've also similar error is there any sol

    • @user-jt8pl1to7b
      @user-jt8pl1to7b Před měsícem

      ​@@abprojects7477did u get the solution

    • @user-jt8pl1to7b
      @user-jt8pl1to7b Před měsícem

      ​@@nandininandu8375did u get the solution

  • @shapeyrthoughtsllshapeyrli1767

    Thank you so much bro. I can't believe that I have done an object detection model in just one day.

  • @randomly-genrated
    @randomly-genrated Před 3 lety +38

    lol.....I got that memory error too, but I paused the video and never saw that you got it too and I spent an hour figuring out the same fix. Then I came back and resumed the video and in probably 10 seconds you changed the batch size lol....

  • @jackycwwang
    @jackycwwang Před 2 lety +3

    Wow, the explanation is so clear and straightforward! Thank you sir!!!

  • @mauricioramirezsalamanca8620

    Gracias por tomarte el tiempo de hacer este vídeo, no sabes lo útil que me fue, te juro, no tienes ni idea. Te amo.

  • @elvenkim
    @elvenkim Před 2 lety

    1thanks a lot!! was looking for a simple way to detect object and found this channel. Subscribed

  • @hippieee9661
    @hippieee9661 Před 2 měsíci

    BEST TUTORIAL I EVER FOLLOWED! THANK YOUUUU!!!

  • @zemenuketema1734
    @zemenuketema1734 Před 11 měsíci

    Wow best explanation really am so happy by watching this video and many students get some thing especial.

  • @peterkipropkurui9075
    @peterkipropkurui9075 Před 2 lety

    Thank you very much, been looking for this explanation. Many thanks

  • @rubs63
    @rubs63 Před 3 lety +1

    It's brilliant.!! Thanks for the amazing video!! Really helpful!!

  • @Eng-Ahmed_Gamal
    @Eng-Ahmed_Gamal Před 11 měsíci +1

    Thank you for this great video, all the best 👍🏻

  • @-500IQgaming
    @-500IQgaming Před 8 měsíci

    bro, I did this more than 4 hours and repeated many mistakes but I finally succeeded, that's an achievement for me :).

  • @nehan5317
    @nehan5317 Před rokem

    I have no words to express my gratitude towards you. Thanks a ton.

  • @Yawanawa_K
    @Yawanawa_K Před 3 lety +1

    Thank you! This is just what I was looking for!

  • @umarmuhammadi429
    @umarmuhammadi429 Před 2 lety

    Wow
    Thank you very much for this tutorial it helps alot
    It's very clear and straightforward 🤗🤗

  • @osama82405
    @osama82405 Před 2 lety

    excellent man,thank you for this video.look forward more such videos.

  • @aleksandrjefremov3816
    @aleksandrjefremov3816 Před 2 lety

    Thank you so much. Very clear explanation!

  • @herberthipolito9941
    @herberthipolito9941 Před rokem

    Thankss. This video was really helpful in my project 😃.

  • @magnetizing
    @magnetizing Před rokem

    My man, you absolutely murdered this explanation. I would add #objectdetection, etc. to the description to help youtube/other people find this video faster (I was riding the struggle bus hard until I found this video lol). Cannot thank you enough!!!

  • @BernardLawes
    @BernardLawes Před 2 lety

    Very well done. Easy to follow.. you’ve got a new subscriber

  • @seinkoudiakite9546
    @seinkoudiakite9546 Před 2 lety

    wahoo I'm stupefy, very good explanation. Thanks to you, I more learned about this topic

  • @mithraravi4722
    @mithraravi4722 Před 2 lety +1

    Thankyou for this video! How to turn on Webcam and do object detection in real-time...can please say what changes should be done?

  • @yasirali8409
    @yasirali8409 Před 2 lety

    What a great Explanation. very thanks it help me a lot in sport analysis matches.!)

  • @shaunincohst2839
    @shaunincohst2839 Před 2 lety +1

    This TUTORIAL IS 100% WORKING GOOD TUTORIAL

  • @TheMrkillermole
    @TheMrkillermole Před 3 lety +2

    Thanks man, very helpful video.

  • @noshinsaiyaraahmad3688

    Thank you so much for this useful tutorial!

  • @bharathijuvva5984
    @bharathijuvva5984 Před 10 měsíci +1

    hello sir please do the same video for yolov8 also using webcam I mean for real time detection also

  • @shit6917
    @shit6917 Před 2 lety

    Bro you're a god
    Thanks a lot for this amazing easy to follow tutorial

  • @vijayk2065
    @vijayk2065 Před rokem

    thank you, finally, I am able to identify chickens.

  • @abidmaqbool1427
    @abidmaqbool1427 Před 3 lety +6

    good tutorial, keep going on man!

  • @demnatiyoussef9286
    @demnatiyoussef9286 Před rokem +1

    come on man... you forgot a chicken in tha cage🍌

  • @muhammadfahadnasir1627

    I cannot Thank You enough for this.

  • @ku5h_
    @ku5h_ Před 2 lety +1

    thank you for the video!

  • @MikeNapoli735
    @MikeNapoli735 Před 2 lety +1

    Thank you very much! Nice video!

  • @lawalabdulazeez2636
    @lawalabdulazeez2636 Před 2 lety +1

    Hello, thank you so much for this beautiful tutorial. Please, could you also do a tutorial on how to deploy this model live?

  • @user-vc1it5qw7b
    @user-vc1it5qw7b Před rokem +1

    I have followed all the steps in the video, but my training only has 66% accuracy and when I try to predict and their is no prediction/bounding boxes. The results image has no labels.
    Does anybody know why is it? thanks in advance

  • @parbirmondal3723
    @parbirmondal3723 Před 3 lety +1

    Thank you Sir... It is really to the point and informative... Really too helpful

  • @shivamamrutkar8915
    @shivamamrutkar8915 Před 2 lety +1

    Hello Instructor, thanks for this amazing tutorial, please give us that video link of chickens, please upload it somewhere and provide us with link.
    Help appreciated...

  • @DrShroom.
    @DrShroom. Před rokem

    Hi this video was really good i found out i really like machine learning and that i chose my middle school right also i love the way you say chicken

  • @scooterboom4157
    @scooterboom4157 Před rokem

    you are so good at teaching!

  • @Nour-Elislem
    @Nour-Elislem Před 2 lety

    Thank you bro for this tutorial ,you're Amazing

  • @merondesta3895
    @merondesta3895 Před 2 lety

    thankyou sir that was useful. i trained using my own dataset but no matter how long i trained it the m@p will not get improved from 0.34 something like that i have used same data for yolov4 but it performs well

  • @user-ok5dz2wf1p
    @user-ok5dz2wf1p Před rokem

    Thank you. It's settled thanks to you.

  • @herlina9622
    @herlina9622 Před 2 lety +1

    could you please help me? i tried to unzip train data few times, it always comes out like this: unzip: cannot find or open ../train_data.zip, ../train_data.zip.zip or ../train_data.zip.ZIP.
    what should i do?

  • @girish2555
    @girish2555 Před 3 lety +2

    Really a lifesaver 👍

    • @SoftwaresAI
      @SoftwaresAI  Před 3 lety

      If you like to support my channel, here is link www.buymeacoffee.com/biplob004

  • @medinikb
    @medinikb Před 2 lety

    Thank you so much........for sharing your knowledge.............

  • @user-hp2ek9sj8y
    @user-hp2ek9sj8y Před rokem

    great video and explaining. I did everything as you mentioned but the model can't detect any image from the video. although it does detect it in the runs. .

  • @supriyantoku
    @supriyantoku Před 3 lety

    thank you so much. Very good tutorials.

  • @enisarslan2503
    @enisarslan2503 Před 2 lety +1

    ı got error
    AssertionError: train: No labels in /content/yolov5/../TryMe/İmages/train.cache. Can not train without labels.
    can u help me ?

  • @caneron6539
    @caneron6539 Před rokem

    Thank you so much bro. God bless you.
    I love you ♥

  • @user-re3xq4jp9d
    @user-re3xq4jp9d Před 8 měsíci

    Hello good man.
    I quickly tested your video, I like how you explain and kudos to you for your knowledge.
    I took a picture of a table lamp 10 times, 3 pictures are for validation and I recorded a video for 10 seconds, with an iPhone 13 Pro. I didn't succeed in processing the video, the pictures are trained... I don't know if it's because I converted MOV to MP4...or if there's something else at play.

  • @varaungandhi1953
    @varaungandhi1953 Před rokem +1

    i am getting an error. can you please help me with it? 'IndexError: boolean index did not match indexed array along dimension 0; dimension is 0 but corresponding boolean dimension is 4'

  • @SohailKhan-tt5eh
    @SohailKhan-tt5eh Před 2 lety

    Thank you for this amazing tutorial....................

  • @Rahul-kc4gf
    @Rahul-kc4gf Před 2 lety +2

    I need guidance for Final year project how I detect and recognize multiple faces from single image. thank you in advance

    • @SoftwaresAI
      @SoftwaresAI  Před 2 lety

      hi, i can help you in this. Contact me on google chat / google hangout , at biplob00110011@gmail.com

  • @quangnhatnguyen4508
    @quangnhatnguyen4508 Před 10 měsíci +1

    how to unzip train data, sir? i can't do it in step .

  • @leandroleandro6844
    @leandroleandro6844 Před 3 lety

    Very useful, tks for sharing!

  • @tirthrajgandhakwala6201
    @tirthrajgandhakwala6201 Před rokem +2

    Hello. I am trying to follow your video but some things have changed on colab
    This is my yaml file.
    train: ../train_data/images/train # train images (relative to 'path') 128 images
    val: ../train_data/images/val # val images (relative to 'path') 128 images
    test: # test images (optional)
    # Classes
    names:
    0: pothole
    This is the error I get in training part.
    Transferred 739/745 items from yolov5x.pt
    AMP: checks passed ✅
    optimizer: SGD(lr=0.01) with parameter groups 123 weight(decay=0.0), 126 weight(decay=0.0005), 126 bias
    albumentations: Blur(p=0.01, blur_limit=(3, 7)), MedianBlur(p=0.01, blur_limit=(3, 7)), ToGray(p=0.01), CLAHE(p=0.01, clip_limit=(1, 4.0), tile_grid_size=(8, 8))
    train: Scanning '/content/train_data/labels/train' images and labels...0 found, 500 missing, 0 empty, 0 corrupt: 100% 500/500 [00:00 0 or not augment, f'{prefix}No labels found in {cache_path}, can not start training. {HELP_URL}'
    AssertionError: train: No labels found in /content/train_data/labels/train.cache, can not start training. See github.com/ultralytics/yolov5/wiki/Train-Custom-Data
    Please help me out. I really want to get this done for course project. Thank you

    • @WisdomWhispers807
      @WisdomWhispers807 Před rokem

      Did you find any solution for this. I'm also getting this error.

  • @candysugarsosweet
    @candysugarsosweet Před 11 měsíci

    That's the great one. Thanks!!!

  • @emilefourie8544
    @emilefourie8544 Před 11 měsíci

    Great video, thanks man!

  • @amirkarim9932
    @amirkarim9932 Před rokem

    It was great👍 thank you , keep it up

  • @nikhildesai2460
    @nikhildesai2460 Před 3 lety +1

    Excellent Work Brother..!!

    • @SoftwaresAI
      @SoftwaresAI  Před 3 lety

      Thanks ✌️

    • @SoftwaresAI
      @SoftwaresAI  Před 3 lety

      Please support my channel here www.buymeacoffee.com/biplob004

  • @hrishikeshss7950
    @hrishikeshss7950 Před 2 lety

    Brilliant Video, how to fine tune the model for face recognition?
    1. I'm getting 2 boxes on the same face for face recognition, for classes where the data was not sufficient
    2. Some faces are just labelled wrong

  • @user-tp9cl1jf5y
    @user-tp9cl1jf5y Před 5 měsíci

    Thank you very much for the video it really helps me,
    I have a small question: if my computer does not support cuda how can I solve the errors due to the layers: dnn and fft?
    I would really appreciate it if you could help me, I really need it

  • @adithyavarma758
    @adithyavarma758 Před 6 měsíci

    Thank you so much

  • @NamLe-fl4sz
    @NamLe-fl4sz Před 7 měsíci

    From VietNam. Thanks

  • @abdvi4423
    @abdvi4423 Před 4 měsíci

    you saved me bro, thanks!

  • @arnolddumba7949
    @arnolddumba7949 Před 2 lety

    very helpful... thank you sir

  • @hellosushant9471
    @hellosushant9471 Před 2 lety

    Great video. Subscribed. I have 2 questions: 1. All images in train val dataset should be of same size. if it is not what to do? also, testing image size should be same or not?

  • @user-vo8nv8kd4o
    @user-vo8nv8kd4o Před 4 měsíci

    You are amazing thank u so much ❤❤❤❤❤❤❤

  • @ovejeromd
    @ovejeromd Před 2 měsíci

    great video thank you

  • @marthagichuki9539
    @marthagichuki9539 Před 2 lety

    This is wonderful easy to follow tutorial. How can we tell the validation loss please

  • @samdb8393
    @samdb8393 Před 2 lety +2

    Hi every one. Thanks a lot for this short and sweet Tutorial .
    I have a question and it is about image size in YOLOv5. is it in 640 *640 ? and can we use another size? if so , HOW?
    Thank you in advance

    • @SoftwaresAI
      @SoftwaresAI  Před 2 lety

      Yes, you can use any size you want
      do you want to take live tuition from me? If interested then reply to this comment.

  • @epuchumoses321
    @epuchumoses321 Před 3 lety +3

    thank you very much for the tutorial it was very beneficial. though i have a question @DeepLearning. how can i extract the custom_weights and custom_config files for deployment in object detection on a raspberry pi.

    • @marcelofsouza1
      @marcelofsouza1 Před 3 lety

      You can use your weight file (last.pt or best.pt) and load this trained models using pytorch. After loading you can use it combined with opencv.

    • @tributemaker
      @tributemaker Před 2 lety

      @@marcelofsouza1 how can I get best.pt file. I cannot find it..

  • @dogukanklc6645
    @dogukanklc6645 Před rokem

    Bro you are the best . You are the damnnn best

  • @namangoyal8477
    @namangoyal8477 Před 2 lety

    Excellent tutorial.

  • @javokhirmusaev721
    @javokhirmusaev721 Před 3 lety +1

    Thanks man, really good example! Can you make video or give source that can be trained on local computer with gpu on custom dataset?

    • @SoftwaresAI
      @SoftwaresAI  Před 3 lety

      If you have installed PyTorch on your local computer and have a GPU, you can train model exact same way as i did in here. If you need any help contact me, i can help you on this project.

    • @alpertemizel9892
      @alpertemizel9892 Před 3 lety +1

      @@SoftwaresAI how can i contact with you

    • @Grayando1
      @Grayando1 Před 2 lety

      @@SoftwaresAI need help with this too

  • @C.N.F_19
    @C.N.F_19 Před 2 lety

    Thank you very much !!!

  • @jiangliubin3543
    @jiangliubin3543 Před 3 lety +3

    Thanks for your video, really helpful! I am doing multiple objects detection, and want to show the result pictures without any object name and object probability on the bounding box, how shall I change for this? Appreciate if you can share.

  • @tutsy98
    @tutsy98 Před rokem

    thank you for this!

  • @JeanPierre-bi5lz
    @JeanPierre-bi5lz Před 2 lety

    Bro, u saved me. Thx you so much!!!!

  • @levaivanov1876
    @levaivanov1876 Před 3 lety

    Thank you, it's ery helpful

  • @AjarnPedNoi
    @AjarnPedNoi Před rokem

    Thanks, a lot.

  • @deepak161091
    @deepak161091 Před 3 lety +1

    Very helpful

  • @vonderasche2963
    @vonderasche2963 Před 3 lety

    Excellent tutorial,

  • @souadelh8123
    @souadelh8123 Před rokem

    Hi thank you for this video. I have a question , it just first time I will learn about this . after detection is that number showed with detection is it a feature of chicken? Is it its length?

  • @pavankumarnayakaa8505
    @pavankumarnayakaa8505 Před 9 měsíci

    Thank you

  • @tereshkova6075
    @tereshkova6075 Před rokem

    Thank you so much!

  • @harisrafiq1717
    @harisrafiq1717 Před rokem

    Traceback (most recent call last):
    File "segment/train.py", line 658, in
    main(opt)
    File "segment/train.py", line 554, in main
    train(opt.hyp, opt, device, callbacks)
    File "segment/train.py", line 283, in train
    for i, (imgs, targets, paths, _, masks) in pbar: # batch ------------------------------------------------------
    File "/usr/local/lib/python3.8/dist-packages/tqdm/std.py", line 1195, in __iter__
    for obj in iterable:
    File "/content/yolov5/utils/dataloaders.py", line 172, in __iter__
    yield next(self.iterator)
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 628, in __next__
    data = self._next_data()
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1333, in _next_data
    return self._process_data(data)
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1359, in _process_data
    data.reraise()
    File "/usr/local/lib/python3.8/dist-packages/torch/_utils.py", line 543, in reraise
    raise exception
    IndexError: Caught IndexError in DataLoader worker process 0.
    Original Traceback (most recent call last):
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
    data = fetcher.fetch(index)
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
    File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in
    data = [self.dataset[idx] for idx in possibly_batched_index]
    File "/content/yolov5/utils/segment/dataloaders.py", line 115, in __getitem__
    img, labels, segments = self.load_mosaic(index)
    File "/content/yolov5/utils/segment/dataloaders.py", line 255, in load_mosaic
    img4, labels4, segments4 = random_perspective(img4,
    File "/content/yolov5/utils/segment/augmentations.py", line 102, in random_perspective
    new_segments = np.array(new_segments)[i]
    IndexError: boolean index did not match indexed array along dimension 0; dimension is 0 but corresponding boolean dimension is 15

  • @pranavkushare6788
    @pranavkushare6788 Před 3 lety +1

    Thank you Very Much . You are a Life Saver

  • @sharankalyan7
    @sharankalyan7 Před 3 lety +1

    Great work bro!

    • @SoftwaresAI
      @SoftwaresAI  Před 3 lety

      Thanks, Please support my channel www.buymeacoffee.com/biplob004

  • @faceprofesor
    @faceprofesor Před 3 lety +1

    Thanks for the video. Is it possible to annotate semantically or with polygons? Thanks

  • @Techiefer
    @Techiefer Před rokem

    great video i clear all my douts 😊😊