Official YOLO v7 Object Detection COMPLETE Tutorial for Google Colab

Поділитися
Вставка
  • Опубліковано 1 гру 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 12 днів тому

    Really nice and to the point. Great tutorial

  • @zongzong0408
    @zongzong0408 Рік тому

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

  • @esooghazy
    @esooghazy 2 роки тому

    Fast and useful! Thanks a lot!

  • @code786yt2
    @code786yt2 Рік тому

    Thank you very much Sir. I appericiate you.

  • @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: ua-cam.com/video/-QWxJ0j9EY8/v-deo.html

    • @ikramessafi9560
      @ikramessafi9560 7 місяців тому

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

  • @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?

  • @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

  • @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 :)

  • @muhammadmudasir1166
    @muhammadmudasir1166 Рік тому

    May God bless you sir thank you so much ❤❤

  • @tristanrajendraa
    @tristanrajendraa 7 місяців тому

    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

  • @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

  • @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.

  • @jaiborade3421
    @jaiborade3421 2 роки тому

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

  • @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?

  • @EdenW0311
    @EdenW0311 10 місяців тому

    Thank you very much

  • @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 2 роки тому

      @@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

  • @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.

  • @ajayreddykanduru453
    @ajayreddykanduru453 2 роки тому

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

  • @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 12 днів тому

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

  • @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

  • @azimbekkhudoyberdiev0817
    @azimbekkhudoyberdiev0817 Рік тому

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

  • @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.

  • @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

  • @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 ?

  • @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!

  • @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

  • @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.

  • @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

  • @MinhazulAbedinMunna
    @MinhazulAbedinMunna Рік тому

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

  • @derwinmahardika3754
    @derwinmahardika3754 2 роки тому +1

    Can we use another version model such as yolov3 etc?

  • @muhammadmudasir1166
    @muhammadmudasir1166 Рік тому +1

    Will it work on any random image

  • @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'

  • @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.

  • @freescholerships_2.0
    @freescholerships_2.0 2 роки тому

    Hi,
    We need dataset for object Detection using YOLOv7

  • @deepasavant821
    @deepasavant821 2 роки тому

    time taken to detect an object is in seconds?

  • @lpmuinsisamarinda
    @lpmuinsisamarinda 11 місяців тому

    thks for tutor

  • @k.v.srilakshmiasharani1553
    @k.v.srilakshmiasharani1553 2 роки тому +1

    what is 2.jpeg ?

  • @YujiItadori-q8n
    @YujiItadori-q8n 3 місяці тому

    how to get jpg and mp4 in min 6.20

  • @maheshKumar-iw4qb
    @maheshKumar-iw4qb 2 роки тому

    Real time detection how