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

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 96

  • @RG_RTS
    @RG_RTS Год назад +10

    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  Год назад +1

      You welcome 🙏

    • @22prajwalgaikwad61
      @22prajwalgaikwad61 3 месяца назад

      @@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 Год назад +6

    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.

  • @shanestevens516
    @shanestevens516 Год назад +4

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

  • @roibulm57
    @roibulm57 Год назад +4

    THANK YOU VERY MUCH THIS VIDEO IS VERY HELPFUL

  • @timjobs9072
    @timjobs9072 Год назад +1

    Please comes out more videos like this!

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

  • @somyadeepshrivastava1447
    @somyadeepshrivastava1447 7 месяцев назад +1

    A great tutorial to get you started

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

  • @benjaminhall6635
    @benjaminhall6635 Год назад +2

    Nice Koby!!!!!

  • @박형호-n5w
    @박형호-n5w 7 дней назад

    that's cool and if YOLO detect it without me specifying an object?

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

  • @mayakrishna2955
    @mayakrishna2955 11 месяцев назад

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

    • @davidnyarko7300
      @davidnyarko7300  7 месяцев назад

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

  • @sakshigopaladas7026
    @sakshigopaladas7026 Год назад +2

    Thanks!

  • @MichaelChenAdventures
    @MichaelChenAdventures Год назад +1

    good stufff mate thx

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

    • @davidnyarko7300
      @davidnyarko7300  Год назад +1

      The code is updated on the Github page i added

  • @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 RUclips video link and it will work with it.

  • @irfanhakim4369
    @irfanhakim4369 5 месяцев назад

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

  • @Tuxtontech
    @Tuxtontech 3 месяца назад

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

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

  • @george_krav
    @george_krav 4 месяца назад

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

  • @archana0342
    @archana0342 Год назад +1

    thank you brooo

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

  • @carlosfernandez5237
    @carlosfernandez5237 3 месяца назад +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 2 месяца назад

      I had this too i fied it if you still care

    • @AlexRobinson-x6p
      @AlexRobinson-x6p 2 месяца назад

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

    • @AlexRobinson-x6p
      @AlexRobinson-x6p 2 месяца назад

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

  • @blackmythtaufel
    @blackmythtaufel 10 месяцев назад +2

    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

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

    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 4 месяца назад

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

  • @anupamsingh2943
    @anupamsingh2943 Год назад +1

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

  • @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 Год назад +1

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

  • @22prajwalgaikwad61
    @22prajwalgaikwad61 3 месяца назад

    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

  • @music_love21
    @music_love21 7 месяцев назад +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  6 месяцев назад

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

  • @NURAMNIBINTIZULFIKRIUPM
    @NURAMNIBINTIZULFIKRIUPM 5 месяцев назад

    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

  • @pragya4677
    @pragya4677 2 месяца назад

    Will detection work in grayscale images or videos?

  • @PoojaKumari-ey9wg
    @PoojaKumari-ey9wg 7 месяцев назад

    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

  • @aurainaejaz2080
    @aurainaejaz2080 3 месяца назад

    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.

  • @CyberneticEagle
    @CyberneticEagle Год назад

    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  7 месяцев назад

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

  • @xinloongfoo2951
    @xinloongfoo2951 5 месяцев назад

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

  • @elasriabdelfettah815
    @elasriabdelfettah815 8 месяцев назад

    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  7 месяцев назад +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.

  • @sherazshakar8925
    @sherazshakar8925 4 месяца назад

    colab notebook mil sakti ha?
    i need colab nootebook

  • @AlexRobinson-x6p
    @AlexRobinson-x6p 2 месяца назад

    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.

  • @yoshimochii
    @yoshimochii 7 месяцев назад

    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  7 месяцев назад

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

  • @werangalakshitha9800
    @werangalakshitha9800 7 месяцев назад +1

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

    • @davidnyarko7300
      @davidnyarko7300  7 месяцев назад

      Sure…
      github.com/DAVIDNYARKO123/yolov8-silva

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

  • @maxamed19ib
    @maxamed19ib 6 месяцев назад +1

    What name command you write

    • @davidnyarko7300
      @davidnyarko7300  6 месяцев назад +1

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

  • @usamasherazi4598
    @usamasherazi4598 9 месяцев назад

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

    • @davidnyarko7300
      @davidnyarko7300  7 месяцев назад

      Sure, but can you explain a bit further.

  • @germancruzram
    @germancruzram Год назад +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.

  • @JenniJenni-t9i
    @JenniJenni-t9i 2 месяца назад

    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