Official YOLO v7 Object Detection COMPLETE Tutorial for Google Colab

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 85

  • @junaidqadirb
    @junaidqadirb 2 ปีที่แล้ว +6

    You can also double-click a file to edit it within Google colab and save it.

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว +1

      Pinning the comment as it'll be helpful for others.

  • @iamxba3a817
    @iamxba3a817 9 หลายเดือนก่อน +1

    okay so this is literally one tutorial in whole yt that helped me get that video object tracking..
    Im so thankful !!!!!

  • @hugehammer
    @hugehammer 5 หลายเดือนก่อน +2

    Damm man! Nice video, I'm finally starting object detection

  • @martinkwesimawusi8370
    @martinkwesimawusi8370 ปีที่แล้ว

    I have been looking for the best video to properly introduce me to google colab and YOLO and you have just done that to my sactisfaction.
    Thank you very much.

  • @ChigosGames
    @ChigosGames 4 วันที่ผ่านมา

    Really nice and to the point. Great tutorial

  • @zongzong0408
    @zongzong0408 ปีที่แล้ว

    That is useful, thanks! Showing FPS is important for my work.

  • @pvrohanraj
    @pvrohanraj ปีที่แล้ว

    Great Video, Simple explanation. No errors. why did you comment the datasets print? was there a specific reason?

    • @TheCodingBug
      @TheCodingBug  ปีที่แล้ว

      Which print are you referring to? Can you point out the time stamp?

  • @tristanrajendraa
    @tristanrajendraa 6 หลายเดือนก่อน

    can yolo use for image classification and optimezer using adam,sgd,rmsprop?? my dataset is rice so i want yolo to detect it like it's basmathi rice or regular rice

  • @daffarizqyprastowiyono
    @daffarizqyprastowiyono 3 หลายเดือนก่อน

    When I add photos to yolov7, I run the command
    !python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source 2.jpg gives this error
    python3: can't open file '/content/detect.py': [Errno 2] No such file or directory.
    can anyone fix this ?

  • @ikramessafi9560
    @ikramessafi9560 7 หลายเดือนก่อน +1

    Thank you a lot for that video, but i want to know if o have an other object that i wanna detect like fruits how can i use this model to detect it?

    • @TheCodingBug
      @TheCodingBug  7 หลายเดือนก่อน +1

      You'll need to train custom model on custom data: th-cam.com/video/-QWxJ0j9EY8/w-d-xo.html

    • @ikramessafi9560
      @ikramessafi9560 6 หลายเดือนก่อน

      @@TheCodingBug Thank you a lot , i wanna also ask you if you have any idea about counting those objects that are detected .?

  • @sabrimas9718
    @sabrimas9718 ปีที่แล้ว

    can you make a video on how to modify yaml architecture in yolov8? i'm doing research and want to add attention modules like GAM, CBAM and others but don't know where to start and when i change it, the called architecture configuration stays the same, and there is no change.

  • @AmitKumar-hm4gx
    @AmitKumar-hm4gx 2 ปีที่แล้ว +1

    I have a question,
    When we run inference is there any specific reason authors have decided to print YOLOR model ? is Yolo7 same as YOLOR or if there is similarity in terms of certain architectures used ?

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว +1

      Thats because the implementation of YOLOv7 is based on YOLOR and they use many things from that code. Perhaps they missed this print statement and did not change it.

    • @AmitKumar-hm4gx
      @AmitKumar-hm4gx 2 ปีที่แล้ว

      @@TheCodingBug thank you :)

  • @azimbekkhudoyberdiev0817
    @azimbekkhudoyberdiev0817 ปีที่แล้ว

    Thank you for best resources. How we can get mAP results for object detection in videos and collect them as a file?

  • @anaghasm7584
    @anaghasm7584 2 ปีที่แล้ว +1

    It would be really helpful if you could teach how to detect objects on Webcam using google colab.

    • @abrarluvrabit
      @abrarluvrabit ปีที่แล้ว

      hello, did you got any video regarding to your question please share if you got it. thanks

  • @tranquynhat4933
    @tranquynhat4933 ปีที่แล้ว

    When I add photos to yolov7, I run the command
    !python detect.py --weight yolov7.pt --conf 0.5 --img-size 640 --source m_caysi.jpg gives this error
    python3: can't open file '/content/detect.py': [Errno 2] No such file or directory
    . Do you have any way to fix it? Thank you. Fastest response please help me

  • @LimChinHong-ju6fo
    @LimChinHong-ju6fo ปีที่แล้ว

    good video sir, may I know that how to train the model on a batch of images and evaluate them all at once using things like mAP? thank you sir.

  • @182Kandy
    @182Kandy ปีที่แล้ว

    good afternoon! thank you for making this content available, it helped a lot. Do you happen to know if it would be possible to detect tree species in a native forest, with a drone orthomosaic?

  • @abrarluvrabit
    @abrarluvrabit ปีที่แล้ว +1

    if we want to show FPS on yolov5 and yolov6 do we need to follow the same thing as showed for yolov7 or not? if not then please make a video for FPS showing in yolov5 and 6 also it will be very helpfull. thanks

    • @TheCodingBug
      @TheCodingBug  ปีที่แล้ว

      We will do the same thing.

  • @code786yt2
    @code786yt2 ปีที่แล้ว

    Thank you very much Sir. I appericiate you.

  • @jaiborade3421
    @jaiborade3421 2 ปีที่แล้ว

    Hi sir, thanks for the great session. If possible please share custom dataset training

  • @muhammadmudasir1166
    @muhammadmudasir1166 ปีที่แล้ว

    May God bless you sir thank you so much ❤❤

  • @ajayreddykanduru453
    @ajayreddykanduru453 2 ปีที่แล้ว

    Hi, can you please share how to take input from the webcam ?

  • @barbaralau3254
    @barbaralau3254 2 ปีที่แล้ว +1

    Hi, Thank you for your video. I followed the steps. I got the test_batch0_labels.jpg in the last exp folder inside runs/detect folder. I can see the labels and boxes correctly surrounds the object in this image. Does it mean the training is successful or this is not the right place to look into? My question is I ran the detect.py command with the test image and best.pt , I didn't get back any boxes or labels at all. Can you please tell me why does it happen? If the test_batch0_labels.jpg exists, shall I expect this training is completed? or how to fix this problem? Thank you for your help!

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว

      Check precision recall and f1 curves. If those have a very small value, model learned nothing and you need more data to train.

  • @phunghm
    @phunghm ปีที่แล้ว

    You're my best youtube teacher! If possible, tell how to illiterate the output folder (not exp) and this folder is initialized as a variable in run time. It works when I change save_dir to a fix path in detect.py but couldn't do if assign a changeable value to save_dir. Thank you!

  • @MinhazulAbedinMunna
    @MinhazulAbedinMunna ปีที่แล้ว

    Here, Can we count the object from image ? it will be helpful

  • @esooghazy
    @esooghazy 2 ปีที่แล้ว

    Fast and useful! Thanks a lot!

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว

      Thank you for the appreciation.

  • @karlomarkovic2404
    @karlomarkovic2404 2 ปีที่แล้ว +1

    Hi, thanks for the great tutorial. How could you measure the accuracy and get the metrics like mean average precision?
    Could you do a tutorial on that?

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว

      Those would already be present in training folder (where best weights are) along with precision recall etc graphs.

    • @karlomarkovic2404
      @karlomarkovic2404 2 ปีที่แล้ว

      @@TheCodingBug I appreciate the answer, but I am still a newbie to this. I would really appreciate if you could give ma more detailed explanation. I would like to try something like this for my final thesis, but I am not sure how to objectively measure the accuracy. THanks!

    • @vic0th380
      @vic0th380 2 ปีที่แล้ว

      @@karlomarkovic2404 You split the dataset and train on some data (train dataset) and test your model on remaining data. Then you compare the results with test dataset, calculate how accurate your results are. You also need to avoid model overfitting which might result in high accuracy by working quite well on the test dataset but would be problematic with other datasets.

    • @abrarluvrabit
      @abrarluvrabit ปีที่แล้ว

      @@vic0th380 thanks brother

  • @amirtarek7166
    @amirtarek7166 ปีที่แล้ว

    I have a problem while training the model, the epoch suddenly stop while extracting certain batches and take around 25 mins to continue , what could lead to such a problem ? and how can i over come it ?

    • @ChigosGames
      @ChigosGames 4 วันที่ผ่านมา

      Some images can be corrupt or not in the correct format. You should try to remove them

  • @fahmidanial
    @fahmidanial 2 ปีที่แล้ว +1

    Why I got attribute error when running on street2.mp4 "module cv2 has no attribute font_hersyey......"

    • @fahmidanial
      @fahmidanial 2 ปีที่แล้ว

      Please help

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว +1

      Your spelling is wrong.

    • @fahmidanial
      @fahmidanial ปีที่แล้ว

      @@TheCodingBug hahaha thank you so much for your respond

    • @abrarluvrabit
      @abrarluvrabit ปีที่แล้ว

      can you please share this video file street2.mp4 with me.

    • @bcheng32
      @bcheng32 6 หลายเดือนก่อน

      Can you share how to find 2.jpg and street2.mp4? Please help if you see it, thank you sir

  • @Shriram-f5b
    @Shriram-f5b ปีที่แล้ว

    any method to get the coordinates of boxes formed

  • @rizvee3977
    @rizvee3977 ปีที่แล้ว

    'git' is not recognized as an internal or external command,
    operable program or batch file.
    Traceback (most recent call last):
    File "C:\Users\User\yolov7\utils\google_utils.py", line 26, in attempt_download
    assets = [x['name'] for x in response['assets']] # release assets
    KeyError: 'assets
    I am getting this error. How to solve this problem?

    • @TheCodingBug
      @TheCodingBug  ปีที่แล้ว +1

      Download and install git for your operating system.

  • @danialabyazi6697
    @danialabyazi6697 2 ปีที่แล้ว

    Thank you for the great introduction of YOLOV7 code. Do you know how we can access to detected boundary box information from code?

    • @abrarluvrabit
      @abrarluvrabit 2 ปีที่แล้ว

      Hi daniyal did you get the ans of your question? because i also want to know the same thing so if you know then plz share it with me

    • @xniux
      @xniux 2 ปีที่แล้ว +1

      --save_txt
      you will see (I guess) one line for each object in "class, x, y, width, height" in one txt file for a frame if object(s) detected

  • @derwinmahardika3754
    @derwinmahardika3754 2 ปีที่แล้ว +1

    Can we use another version model such as yolov3 etc?

  • @omoklamok
    @omoklamok 2 ปีที่แล้ว +1

    hi there its good to see yolo7 new subscriber here... i tried to follow but somehow i got some error

    • @TheCodingBug
      @TheCodingBug  2 ปีที่แล้ว +1

      Hi. What's the error?

    • @omoklamok
      @omoklamok 2 ปีที่แล้ว

      wow you replied. wait sir i will re run it again

    • @omoklamok
      @omoklamok 2 ปีที่แล้ว

      @@TheCodingBug
      File "D:\YOLOV7\detect.py", line 196, in
      detect()
      File "D:\YOLOV7\detect.py", line 26, in detect
      (save_dir / 'labels' if save_txt else save_dir).mkdir(parents=True, exist_ok=True) # make dir
      File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1327, in mkdir
      self.parent.mkdir(parents=True, exist_ok=True)
      File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1328, in mkdir
      self.mkdir(mode, parents=False, exist_ok=exist_ok)
      File "C:\Users\MSC\.conda\envs\yolov7\lib\pathlib.py", line 1323, in mkdir
      self._accessor.mkdir(self, mode)
      FileNotFoundError: [WinError 2] The system cannot find the file specified: 'runs\\detect'

  • @EdenW0311
    @EdenW0311 9 หลายเดือนก่อน

    Thank you very much

  • @its_mjleo
    @its_mjleo 2 ปีที่แล้ว

    How can we run the v7 detection on webcam in Google Colab?

    • @abrarluvrabit
      @abrarluvrabit ปีที่แล้ว

      did you got any solution? i also need to try that please share if you know.

  • @robertraafat413
    @robertraafat413 ปีที่แล้ว +1

    Bro how can i convert .yaml and .pt to .cfg and .weights?

    • @TheCodingBug
      @TheCodingBug  ปีที่แล้ว

      Right click, rename, change extensions 😁
      Just kidding. I understand that you want to convert it to darknet yolo format. The cfg and weights files for pretrained model is available with the official repository. For custom model, you'll need to build darknet and then train the model from scratch. See if you can get it done with existing yolov4 darknet tutorial.

    • @robertraafat413
      @robertraafat413 ปีที่แล้ว

      @@TheCodingBug hmm so how to build it, can you make a video on that

  • @deepasavant821
    @deepasavant821 2 ปีที่แล้ว

    time taken to detect an object is in seconds?

  • @freescholerships_2.0
    @freescholerships_2.0 2 ปีที่แล้ว

    Hi,
    We need dataset for object Detection using YOLOv7

  • @muhammadmudasir1166
    @muhammadmudasir1166 ปีที่แล้ว +1

    Will it work on any random image

  • @lpmuinsisamarinda
    @lpmuinsisamarinda 11 หลายเดือนก่อน

    thks for tutor

  • @YujiItadori-q8n
    @YujiItadori-q8n 3 หลายเดือนก่อน

    how to get jpg and mp4 in min 6.20

  • @maheshKumar-iw4qb
    @maheshKumar-iw4qb 2 ปีที่แล้ว

    Real time detection how

  • @k.v.srilakshmiasharani1553
    @k.v.srilakshmiasharani1553 2 ปีที่แล้ว +1

    what is 2.jpeg ?