YOLOv8 in python environment for object detection | VSCode | OpenCV implementation of YOLO

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • The most recent and cutting-edge #YOLO model, #YoloV8, can be utilized for applications including object identification, image categorization, and instance segmentation. Ultralytics, who also produced the influential YOLOv5 model that defined the industry, developed YOLOv8. Compared to YOLOv5, YOLOv8 has a number of architectural updates and enhancements.
    #computervision
    #objectdetection
    #ai
    GitHub
    github.com/DAV...

КОМЕНТАРІ • 97

  • @RG_RTS
    @RG_RTS Рік тому +9

    Man, THANK YOU SO MUCH! I was looking for this material for more than a week, and I found it from a blogger with 10 subscribers) it's just incredible!

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

      You welcome 🙏

    • @22prajwalgaikwad61
      @22prajwalgaikwad61 Місяць тому

      @@davidnyarko7300 hey..like i have train a seg model on my custom data this model is giving pretty good output on colab but when i am trying to test the same model VS code it is giving me problem...can you help me here ?

  • @jordiwang
    @jordiwang Рік тому +5

    so far im in the minute 11 and it looks like the thing i am truly looking for. Thanks a lot man, love you so much, you're the only who teaches how to use the yolo model in python . PLease, let me spread your genes :D thanks

  • @shwetabhat9981
    @shwetabhat9981 Рік тому +5

    Great content sir . Thank you for the efforts . As a request please continue making such informative and interesting content . 🙂

  • @powerless8770
    @powerless8770 Рік тому +3

    Explained really well. you have earned my subscription.

  • @roibulm57
    @roibulm57 Рік тому +4

    THANK YOU VERY MUCH THIS VIDEO IS VERY HELPFUL

  • @somyadeepshrivastava1447
    @somyadeepshrivastava1447 5 місяців тому +1

    A great tutorial to get you started

  • @shanestevens516
    @shanestevens516 Рік тому +3

    Thank you so much! I've been looking for weeks for more information on how to do this. everyone is using CLI instead

  • @benjaminhall6635
    @benjaminhall6635 Рік тому +2

    Nice Koby!!!!!

  • @irfanhakim4369
    @irfanhakim4369 3 місяці тому

    thank you so much, man. you helped me a lot :)

  • @AishaHabib-ru5wx
    @AishaHabib-ru5wx Рік тому +2

    Amazing Koby! :)
    can you please upload videos related to Object detection in REAL-TIME ASAP?

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

      The Github page is updated with that, and you can use a WebCam as your input

  • @YigalBZ
    @YigalBZ Рік тому +2

    Great video. You mentioned you will release similar video with training for custom class. Are you going to release it? I am waiting for it.

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

      Sure, I am constantly going to be releasing from this week

  • @sakshigopaladas7026
    @sakshigopaladas7026 Рік тому +2

    Thanks!

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

    Please comes out more videos like this!

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

    good stufff mate thx

  • @Tuxtontech
    @Tuxtontech Місяць тому

    @Koby_n_Code make some more videos bro, your content is exceptional! Can you make a video on implementing yolo into an arduino/raspberry pi?

  • @carlosfernandez5237
    @carlosfernandez5237 Місяць тому +1

    Hi there. It shows the error called "TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first."

    • @AlexRobinson-x6p
      @AlexRobinson-x6p 14 днів тому

      I had this too i fied it if you still care

    • @AlexRobinson-x6p
      @AlexRobinson-x6p 14 днів тому

      you have to add .cpu() to the line
      print(detection_output[0].numpy())

    • @AlexRobinson-x6p
      @AlexRobinson-x6p 14 днів тому

      like print(detection_output[0].cpu().numpy())

  • @ranimaloui5931
    @ranimaloui5931 Рік тому +3

    Very good Video. Is it possible to train this Yolov8 with my custom dataset i created? I already have the images and the texfiles that contain the informations about the bounding boxes?

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

      It is possible, I will be posting a video on that

    • @ranimaloui5931
      @ranimaloui5931 Рік тому +2

      @@davidnyarko7300 that would be great. Could you also explain how to use the gpu while training yolov8. I only manage to train on cpu which makes it almost impossible.

    • @davidnyarko7300
      @davidnyarko7300  Рік тому +3

      @@ranimaloui5931 Well noted

  • @aurainaejaz2080
    @aurainaejaz2080 Місяць тому

    How did you set up the google collab storage session? I have been trying but I cant link my folders. I tried but I was unable to access the sub folders inside the folders. Each train, valid, and test folder contains two more folders called images and labels.

  • @luizconrado
    @luizconrado Рік тому +2

    I believe the APIs have already changed since you made this video.
    Could you share what version of YOLOv8 you are using?

  • @22prajwalgaikwad61
    @22prajwalgaikwad61 Місяць тому

    i have trained a yolov8-seg model on a custom dataset...but when i downloaded the model in my local system and tried it on vs code it is giving me unexpected output

  • @archana0342
    @archana0342 11 місяців тому +1

    thank you brooo

  • @gtxplosion
    @gtxplosion Рік тому +2

    how can i make it so there is no output on the console whenever it detects the frames

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

      You can comment out the print statement: If its coming from the the YOLO, you could try `contextmanager`

  • @mayakrishna2955
    @mayakrishna2955 9 місяців тому

    Hi there, thanks much. This is very useful. When is the next video coming up?

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому

      Thank you. I am starting a playlist for Object Detection and Segmentation this weekend.

  • @george_krav
    @george_krav 2 місяці тому

    very nice video but it will be better if you had a little better quality !!!

  • @أمانيرشوانعبدالجواد

    I found error when trying to make a rectangle with the same code , int() argument must be a string, a bytes-like object or a number, not 'Results'
    Sentry is attempting to send 2 pending error messages
    How can i solve it

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

      I got the same error, have you solved it?

    • @davidnyarko7300
      @davidnyarko7300  Рік тому +2

      TypeError: int() argument must be a string, a bytes-like object or a number, not 'Results'
      This issue has been solved as issue #2 on the Github page
      It was associated with the new release of ultralytics and how they want to simplify the use of YOLO in a python environment.
      get link bellow
      github.com/DAVIDNYARKO123/yolov8-silva/issues/2

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

      @@davidnyarko7300 @thank you very much!

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

      @@andywong5193 You welcome

    • @이윤상-h3l
      @이윤상-h3l 2 місяці тому

      @@andywong5193 How did you modify the code to make it work?

  • @music_love21
    @music_love21 4 місяці тому +1

    Hi! We are creating a system that classifies tomato ripeness levels using image processing in CNN architecture with the YOLOv8 model. We are using Raspberry Pi 4 OS with 4GB RAM and we have encountered a problem - the system has 2-3 minute delay/lag in classifying the ripeness level. Would you happen to have any recommendation/suggestion sir on this problem?

    • @davidnyarko7300
      @davidnyarko7300  4 місяці тому

      Sure, my first recommendation to you is this video, you could get the Edge Tpu USB accelerator to help you speed up the process.

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

    Very helpful video, great work. Is there any way I could do this with a url to a video stream?

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

      Sure, just provide a UA-cam video link and it will work with it.

  • @AlexRobinson-x6p
    @AlexRobinson-x6p 14 днів тому

    Hello good sir I know this is an old video but it is the one that has worked for me. Though I get an error: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first. DO you know of this if so thank you for any help you can give.

  • @alexanderdong9959
    @alexanderdong9959 Рік тому +2

    How do I make it so it does live image detection with my webcam?

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

      Just replace the video link with `0` or any webcam index you have

  • @user-if6sn3qv4j
    @user-if6sn3qv4j 3 місяці тому

    Hye sir, i have run the yolo basic.py to test the image tensor, however the terminal shows None on dir. How to fix this? thankyou

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

    What if we JUST want it to detect PERSON? And no other object?

  • @pragya4677
    @pragya4677 5 днів тому

    Will detection work in grayscale images or videos?

  • @blackmythtaufel
    @blackmythtaufel 8 місяців тому +1

    hey brother no matter what i do its howing no module named 'torch' even though i am trying to install that it says no matching dist found for torch what should i do somebody help me

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

    Hello, do u happen to know how to perform transfer learning and freezing?

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

      Sure, but with which architecture are you looking at.

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

      @@davidnyarko7300 like with the yolov8, is there like a certain command i just type into the command line so it executes freezing and like i can improve to my custom trained model?

  • @anupamsingh2943
    @anupamsingh2943 11 місяців тому +1

    What should I do if I want to create an output video at the end?

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

      You will need to set “save” to True

  • @werangalakshitha9800
    @werangalakshitha9800 5 місяців тому +1

    github link is not working can u reply with the link ? thank you...!

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому

      Sure…
      github.com/DAVIDNYARKO123/yolov8-silva

  • @yoshimochii
    @yoshimochii 5 місяців тому

    tysm for this tutorial! I just have a question, if I add a valid object that's not in the coco.txt file say "paper", can the model now detect paper?

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому

      No. you will need to train a new model on your custom dataset

  • @PoojaKumari-ey9wg
    @PoojaKumari-ey9wg 5 місяців тому

    Hey
    I would like to know how we get the output on another terminal as you get as when I'm running the code it only giving the index and array as the output

  • @xinloongfoo2951
    @xinloongfoo2951 3 місяці тому

    is it possible if i use ESP32-cam as the live camera?

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

    if i have a video that shows only a hand moving, how can i set a class hand to te model? The hand is classificated as 'person'

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому

      Currently, you can try the YOLO world model, you can set hand as a class.

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

    how to count total object on 1 image detect?

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

      You can get that from the length of the detections on each frame.

  • @elasriabdelfettah815
    @elasriabdelfettah815 5 місяців тому

    i have intel i5 and ram =8 G. but the video running slowly . and i have raspberry pi 3 cant running this program because the yolo algorithm need a more performance the CPU and RAM. Is my analysis correct?
    Thank you very much for your excellent explanation.

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому +1

      Sure, other factors might cause your model to be slow. You can check my new video on how to get realtime speed on Raspberry Pi.

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

    By the way, I live the way you teach, are you interested for particular classes? We can talk about the price

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

      Sure! you can contact me at nyarkprince6@gmail.com

  • @sherazshakar8925
    @sherazshakar8925 2 місяці тому

    colab notebook mil sakti ha?
    i need colab nootebook

  • @maxamed19ib
    @maxamed19ib 4 місяці тому +1

    What name command you write

    • @davidnyarko7300
      @davidnyarko7300  4 місяці тому +1

      Could you please let me know which specific command you are referring to? I'll be happy to help you with it.

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

    Dear Koby, How could I use the GPU instead of the CPU?

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

      Set device = [0], or device = “gpu”. Be sure you have GPU capacity on your system.

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

    can you help me in detection with voicefeedback how i can do this? thanks waiting

    • @davidnyarko7300
      @davidnyarko7300  5 місяців тому

      Sure, but can you explain a bit further.

  • @JenniJenni-t9i
    @JenniJenni-t9i 10 днів тому

    Source code!

  • @EliEpic-gh5qs
    @EliEpic-gh5qs Рік тому +3

    Nice Tutorial. Can i get your email or linkedin account?

    • @davidnyarko7300
      @davidnyarko7300  Рік тому +2

      Prince David Nyarko is my LinkedIn name, it has same profile picture