Koby_n_Code
Koby_n_Code
  • Видео 2
  • Просмотров 105 533
Realtime Speed (FPS) for YOLOv8 and YOLOv9 on Raspberry Pi 5/4: Google Coral Edge TPU | Ultralytics
🚀 Dive deeper into the world of edge computing with our demo on 'Edge TPU Silva,' an exceptional framework tailored for the Google Coral Edge TPU, showcasing its integration with the versatile and powerful Raspberry Pi 4 and 5. Discover how these compact yet mighty devices are revolutionizing machine learning at the edge, making AI more accessible and efficient. Explore the project on GitHub: github.com/DAVIDNYARKO123/edge-tpu-silva.
🔍 Enhanced by Raspberry Pi: This guide shines a spotlight on the synergy between Raspberry Pi 4/5 and Google Coral Edge TPU in executing TensorFlow models efficiently. Whether you're utilizing the proven performance of the Raspberry Pi 4 or tapping into the ad...
Просмотров: 10 155

Видео

YOLOv8 in python environment for object detection | VSCode | OpenCV implementation of YOLO
Просмотров 95 тыс.Год назад
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 Gi...

Комментарии

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

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

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

    Will detection work in grayscale images or videos?

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

    Source code!

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

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

    Hi, Can you help me with this error. silvatpu-linux-setup Illegal instruction

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

      pip uninstall torch pip uninstall torchvision pip install torch==2.0.1 pip install torchvision==0.15.2 github.com/ultralytics/hub/issues/787#issuecomment-2263946340

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

    Do you think this would work on the google coral devboard too?

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

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

  • @ThomasChristensen-ut2lm
    @ThomasChristensen-ut2lm 3 месяца назад

    Thanks for the video. Could you link to the man_working.mp4 video? I would like to benchmark up against what you are outputting in terms of fps. Also, did you change the size of the videoframe in that video to be 192/240 in width(and/or height)?

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

    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())

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

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

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

  • @engdhay-r7r
    @engdhay-r7r 4 месяца назад

    The GitHub link in the description is incorrect can you give me your account GitHub , please , I want to see code

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

    colab notebook mil sakti ha? i need colab nootebook

  • @GautamParmar-ug9ld
    @GautamParmar-ug9ld 5 месяцев назад

    can you provide this video github repo..please

  • @AmanChauhan-xu7iw
    @AmanChauhan-xu7iw 5 месяцев назад

    Hello Koby. Many thanks for this tutorial. I was earlier using RPI4 (32 bit legacy os) along with google coral accelerator and using edge tpu i was able to recognize object with my pi camera. I think it was using SSD model. I want to extend by using YOLO model and referring to this project. I am having a short query that this model work on edge tpu correct since we are using coral accelerator

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

    Can i use this set up for Raspberrypi zero 2w

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

    switched to a usb camera, but still struggling with getting it to run the model with a video feed. Is there an example code somewhere that does this using this model? No matter what I try I still get the "ValueError: Failed to load delegate from libedgetpu.so.1" error.

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

      ok so the cord that comes with the coral USB is crap. Replaced it and the TPU is actually recognized. ...facepalm...BUT I'm still struggling to find the right code to detect properly.

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

    one issue I can't seem to get around when going back to Python 3.9 is that I cannot get libcamera to work for the pi camera module 3...either coral doesn't work with 3.11 or libcamera doesn't work with 3.9...driving me crazy!

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

  • @sandrocain-l2v
    @sandrocain-l2v 5 месяцев назад

    nice video~

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

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

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

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

  • @JoeNassar-og3qe
    @JoeNassar-og3qe 6 месяцев назад

    Hello Koby..Thanks for this video...I just bought dual edge coral TPU but in pci case for raspberry pi 5. . Can not this be used with this library?

  • @samoo6931
    @samoo6931 6 месяцев назад

    Please help me in that , i have a rpi 4 with 64 bit os , and i want to use camera module ip , with script ultrlytics

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 6 месяцев назад

    Great video. Thanks!

  • @rekomarie8779
    @rekomarie8779 6 месяцев назад

    Hello Koby, i have a problem when i run the code like you did at 28:41 my RP4 reboot, i do not know why i have tried many time and it reboot again , i need to finish your tutorial so i could use my usb web cam to for live object detection, thank you in advance Edit: the RP does not reboot it closed remotely

  • @maksp6208
    @maksp6208 6 месяцев назад

    Hello Koby. Can you help me pls? I want to run an object detection model on my raspberry pi 4 with a Coral USB accelerator and a model 3 wide camera. But I am having big problems with FPS currently only 3-4fps. Can you recommend me the best approach? I need to detect objects at a long distance but I have only class 1. I have been using mobilenet ssd fpn lite 320 and 640. I need to have minimum 25fps to close my project. I would appreciate any help. Thank you.

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

      Same with steam deck 6fps 9 classes I had to resize to 240x240 2 classes now I get 22fps. I need 45fps min

  • @alimohsen7071
    @alimohsen7071 6 месяцев назад

    Can I create my own model using yolov8? How do I convert it to tflite?

  • @samoo6931
    @samoo6931 6 месяцев назад

    can i get ur number in wasup app please i need ur brain

  • @joshuajohn2220
    @joshuajohn2220 6 месяцев назад

    /.venv/lib/python3.7/site-packages/edge_tpu_silva/silva/silva_detect.py", line 34, in process_detection model=model_path, task="detect", verbose=False TypeError: __init__() got an unexpected keyword argument 'verbose' getting this error when trying to run cli. additionally can you give some definitive example on formatting camera input. specifically using camera 0 on rpi5. thanks

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

      What was the CLI command you executed?

    • @joshuajohn2220
      @joshuajohn2220 6 месяцев назад

      @@davidnyarko7300 silvatpu -p det -m /home/josh/silva/240_yolov8n_full_integer_quant_edgetpu.tflite -i 0 -z 240 -t 0.5 -v true /home/josh/.venv/lib/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") Traceback (most recent call last): File "/home/josh/.venv/bin/silvatpu", line 8, in <module> sys.exit(silvatpu()) File "/home/josh/.venv/lib/python3.7/site-packages/edge_tpu_silva/__main__.py", line 97, in silvatpu for _, _ in outs: File "/home/josh/.venv/lib/python3.7/site-packages/edge_tpu_silva/silva/silva_detect.py", line 34, in process_detection model=model_path, task="detect", verbose=False TypeError: __init__() got an unexpected keyword argument 'verbose'

    • @joshuajohn2220
      @joshuajohn2220 6 месяцев назад

      @@davidnyarko7300 silvatpu -p det -m /home/josh/silva/240_yolov8n_full_integer_quant_edgetpu.tflite -i 0 -z 240 -t 0.5 -v true

    • @joshuajohn2220
      @joshuajohn2220 6 месяцев назад

      /home/josh/.venv/lib/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") Traceback (most recent call last): File "/home/josh/.venv/bin/silvatpu", line 8, in <module> sys.exit(silvatpu())

    • @joshuajohn2220
      @joshuajohn2220 6 месяцев назад

      @@davidnyarko7300 ?

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

    What name command you write

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

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

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

    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.

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

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

      My first recommendation to you is this video, you could get the edge tpu USB accelerator to help you speed up the process.

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

    Thank you for your video. How much FPS did you get for YOLOv8 and YOLOv9 respectively?

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

      We did get several FPS in this video depending on the process type and model size. Some combinations gave the peek 60FPS, and 30FPS for the most part.

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

    ‏‪35:24‬‏ Thank you. The explanation was very good. But I have one problem. At this time 35:24 , I keep getting the same error. I could not solve it.

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

      Thanks for the comment. The mentioned error occurs when the USB accelerator is connected to your Raspberry Pi when the code is executed. If it was connected then there is a loose contact just like in my case while working with pi5. You can change the port/ make sure you have firm USB contact.

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

      Thank you, the problem has been solved❤

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

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

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

      Sure… github.com/DAVIDNYARKO123/yolov8-silva

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

    Thank you so much for this amazing tutorial, it helped a lot with my project! Could you please help me with some informations about how I could use this setup for an USB webcam live inference object detection? Instead of being on .mp4 video files. I tried using the ultralytics script, but it didn’t work. Thanks again!

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

      Hey! For a USB webcam, you can specify 0 or 1 or (your USB camera index) as the input and everything works the same with your camera.

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

      Please provide context for the Ultralytics script and error.

    • @samoo6931
      @samoo6931 6 месяцев назад

      @davidyarko7300 please help me

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

    Thank for your tutorial maybe it's have possible to deploy YOLOv7 model on TPU with RPI4 I will try it when i'm get some time

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

    Thank you for this amazing tutorial

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

    A great tutorial to get you started

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

    Thank you, thank you, thank you! I've been struggling to get my YOLOv8 + RPi 4 + Coral TPU up and running. I'm going to follow your tutorial this weekend and see if I can get everything working. Exciting!!

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

      That sounds great. Post here if you facing any issues.

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

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

      You can set the show param to True.

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

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

      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.

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

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

    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

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

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

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

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