Это видео недоступно.
Сожалеем об этом.

YOLOv5 object detection on Raspberry pi 4

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

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

  • @wajadadkarim1708
    @wajadadkarim1708 2 года назад +1

    Thanks, dude it's working. 5x slower than the MobileNet algorithm that I used. Needs some improvements.
    Raspberrypi 4B
    2GB RAM
    Pi camera
    armv7l

  • @ameer-alahmadi
    @ameer-alahmadi 8 месяцев назад +2

    Hi, first thank a lot fore your explanation. I just want to know for the raspberry pi does it make a difference in performance if I use 2, 4, or 8 GB RAM?

  • @nasimreza9492
    @nasimreza9492 2 года назад +2

    hi, How can we do it with custom data set? It is already a pre-trained, model. Is it possible to use our own dataset?

  • @himomhey3437
    @himomhey3437 2 года назад +1

    How many Gb for a raspberry pi to run YOLOv5 like in this video?

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

    nice video BTW can we also use a raspberry pi 3 model B+ for the custom object detection ? and can you also record a video for this as well by using the raspberri pi?
    Thanks

  • @narpat007
    @narpat007 2 года назад +4

    Excellent ! I have just three questions;
    1. can it handle realtime 1080p h264 video stream or atleast 720 h264 video stream ?
    2. What is the maximum frame rate achievable with Pi4B 4GB as it is ?
    3. what is the cheapest solution to get framerate atleast 25pfs ?

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

      Same Questions, did you get your answers?

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

      Cùng câu hỏi. Mình đang chạy yolo v4 trên pi 4 4gb sử dụng cam 1080p đang fps có 0,6. Bạn thực nghiệm 360 chưa chạy ok ko

  • @zubaidahsabah7948
    @zubaidahsabah7948 3 года назад +2

    great work! how can we implement this using tiny version, i suppose it would be faster

  • @gbox3d
    @gbox3d 3 года назад +2

    great work!!

  • @f_bian
    @f_bian 3 года назад +1

    We can't install torch, it gives the following error.. Do you have any idea on how to solve this? Thanks!
    Could not find a version that satisfies the requirement torch>=1.0.0 (from thop) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)

    • @SoftwaresAI
      @SoftwaresAI  3 года назад +1

      I already have a tutorial about it here, ruclips.net/video/weHvI6j4OT8/видео.html
      pytorch installation tutorial for raspberry pi.
      Please subscribe the channel :)

  • @user-sd9ex3ni5m
    @user-sd9ex3ni5m 2 года назад

    I am facing problem with installing opencv-python , it sys that object is not iterable , how can i fix it , if would you please

  • @betulsahin5419
    @betulsahin5419 2 года назад

    How can i download yolov5 to raspberry pi 3b+ I couldn't find anywhere. Can you help me about this?

  • @jarbozhang3682
    @jarbozhang3682 3 года назад

    thx for the video, can you use the sci camera with this 64bit version system? i have found many solutions, but no one is useful. I guess that's the reason why you use the usb web camera?

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

    I get a "Segmentation Fault" error when I run the inference. Any help?

  • @faceprofesor
    @faceprofesor 2 года назад

    Thank you for the video. How do you pass the RUclips image through the yolo?

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

    i got this error : No module name Ultralytics
    but in your video, you not install Ultralytics Module. How your code still works properly

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

      late reply but just pip3 install ultralytics

  • @singgihbekti969
    @singgihbekti969 2 года назад

    can we deploy in raspberry pi 3? does it support with pytorch? or any pytorch version? thank you

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

    Is it the same way for the yolov3-tiny?

  • @viktorrrrrr
    @viktorrrrrr 2 года назад

    Hey guys, I get a silly question. How can I know the IP of raspberry pi on my laptop?

  • @asdftw6146
    @asdftw6146 3 года назад

    i need help! i keep getting this even running on python 3.7.3 on my rpi.
    File "detect.py", line 73
    stride, names = 64, [f'class{i}' for i in range(1000)] # assign defaults
    ^
    SyntaxError: invalid syntax

    • @user-xo9qr4mw5w
      @user-xo9qr4mw5w 2 года назад

      I think you should check on detect.py line 73 and see if there is invalid syntax literally... cause I think there should not be a comma, there should be a ; or a newline...
      like "stride, names = 64; [f'class{i}' for i in range(1000)] # assign defaults"

  • @user-ox7nc8jv8q
    @user-ox7nc8jv8q 3 года назад

    Did you install the 2.2 version of tension flow?

  • @kashishnaqvi4708
    @kashishnaqvi4708 3 года назад

    Hey amazing tutorial, can you help me out on how to provide audio output for the detected objects? which code to edit and how to edit? Thanks in advance!

    • @danani3199
      @danani3199 2 года назад

      Did you ever figure it out for the audio output?

    • @chandanan953
      @chandanan953 2 года назад

      Did you figure out the solution for audio output?

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

    Bro its asking username, password why its asking in terminal

  • @smitpanchal9866
    @smitpanchal9866 2 года назад

    I can't install pytorch on raspberry pi 3 B+ ...!

  • @kaveeshamadhubhashana3094
    @kaveeshamadhubhashana3094 2 года назад

    bro please can you tell me how can i attach custom trained dataset inside to the this projects

    • @jervx829
      @jervx829 2 года назад +1

      train on colab, then download the weights best.pt. also download yolov5 repo. then use this to load the yolov5 repo locally and the weights
      torch.hub.load(
      YOLO_DIR,
      'custom',
      path=WEIGHTS_DIR,
      source='local',
      device = 'cpu',
      force_reload=True
      )

  • @konkoboaxel8887
    @konkoboaxel8887 3 года назад +2

    hi, I tried to install the yolov5 but at the step "python3 detect.py --source data / images --weights yolov5s.pt --conf 0.25" my ssh disconnects at fusing layers ...
    how to solve this please

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      When you connect raspberry pi using ssh, it doesn't have a display, so, it crash when you run the program. Try to connect to your pi device using remote desktop, and then run the program from remote desktop then it should work. I have a tutorial for that here: ruclips.net/video/RvPNc_3abYs/видео.html

    • @konkoboaxel8887
      @konkoboaxel8887 3 года назад

      @@SoftwaresAI I use vncviewer, but it disconncects

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      Is there any error message?
      Is raspberry pi reboots, or just vnc disconnects?

    • @konkoboaxel8887
      @konkoboaxel8887 3 года назад

      @@SoftwaresAI I think the raspberry is restarting because everything disconnects the ssh, the remote desktop(vncviewver), without error. But I am testing xrdp and it gives me errors "...... magic_number = pickle_module.load (f, * * pickle_load_args)
      EOFError: Ran out of input "

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      @@konkoboaxel8887 Is raspberry pi connected to internet? when you run the code?

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

    Hey in mine, it says no command pip3
    pls help

  • @megauti
    @megauti Месяц назад

    It is too (extremely) slow on R-pi 4.

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

    Does it run in 32 bit bulleyes os??

  • @thanhan4046
    @thanhan4046 2 года назад

    Can you give me link your raspberry OS you using???

  • @merondesta3895
    @merondesta3895 2 года назад

    can i do that using raspberry pi 3?

  • @kashishnaqvi4708
    @kashishnaqvi4708 2 года назад +1

    I want to do this on my raspberry pi 3b and give an audio output for objects for blind people. Can you help me?

    • @SoftwaresAI
      @SoftwaresAI  2 года назад

      i will make a tutorial video about how to get audio output from yolov5 object detection in few days. Please support my channel at www.buymeacoffee.com/biplob004

    • @kashishnaqvi4708
      @kashishnaqvi4708 2 года назад +1

      @@SoftwaresAI That's great. Can you check if I'm added to your supporter list?
      I don't want to sound impolite however I need to learn it for my school work and present it really soon. How long would it take for the video? and can you tell me how can we add our own dataset to the existing coco classes? like if i want to add classes for currency as well?

    • @SoftwaresAI
      @SoftwaresAI  2 года назад

      @@kashishnaqvi4708 Hello, here is code that output audio : drive.google.com/file/d/1p2Hrs7tEOBZG2n-uQ8LuaY4lZc3fJX-w/view?usp=sharing

    • @SoftwaresAI
      @SoftwaresAI  2 года назад

      Just run the run.py file and it will start working if all required python libraries are installed. Else see error message and download required python module/library.

    • @SoftwaresAI
      @SoftwaresAI  2 года назад

      I have code update, with little more code, let me know, if you need it.

  • @rielt12
    @rielt12 3 года назад

    did you use a movidius stick?

  • @MrDUMBINATOR
    @MrDUMBINATOR 2 года назад

    Hi, im stuck in the installation process for pandas, this happened with opencv as well. Can you help?
    Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7.3->pandas) (1.12.0)
    Building wheels for collected packages: numpy
    Building wheel for numpy (pyproject.toml) ... -

  • @ilhancakmak79
    @ilhancakmak79 2 года назад

    How can i use it by webcam? Thanks sir

  • @user-xp2fo8ft2u
    @user-xp2fo8ft2u 3 года назад

    Everything's going well, but when you predict it with a webcam, Raspberry Pie doesn't show the video in real time and just finishes detecting it. Is there a solution?

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      instead of doing --source data/images
      do it like --source 0

    • @user-xp2fo8ft2u
      @user-xp2fo8ft2u 3 года назад

      @@SoftwaresAI Thank you for your prompt reply!!!
      I know as you replied, but only this result comes out.

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      @@user-xp2fo8ft2u Is it fixed the problem?

    • @user-xp2fo8ft2u
      @user-xp2fo8ft2u 3 года назад

      @@SoftwaresAI drive.google.com/file/d/12K38FEvhnE5FnUYfKlG0aTWKNldRfmNe/view?usp=sharing

    • @user-xp2fo8ft2u
      @user-xp2fo8ft2u 3 года назад

      @@SoftwaresAI It's the same situation as the picture.

  • @kashishnaqvi4708
    @kashishnaqvi4708 2 года назад

    Can I use this on raspberri pi 3 b ?

  • @itcctvshop
    @itcctvshop 2 года назад

    Nice Video , How to use edgeTPU USB from google product? sir

  • @abdurrazzak1612
    @abdurrazzak1612 3 года назад +1

    cool and greate

  • @aysebeyzaunal3472
    @aysebeyzaunal3472 3 года назад

    are you using a virtual space to do the arguiments? like in ubuntu with virtual box

    • @SoftwaresAI
      @SoftwaresAI  3 года назад +1

      no

    • @aysebeyzaunal3472
      @aysebeyzaunal3472 3 года назад +1

      can i do it in windows?

    • @SoftwaresAI
      @SoftwaresAI  3 года назад

      @@aysebeyzaunal3472 yes you can, you need to install pytorch

    • @aysebeyzaunal3472
      @aysebeyzaunal3472 3 года назад +1

      @@SoftwaresAI ok thanks

    • @aysebeyzaunal3472
      @aysebeyzaunal3472 3 года назад

      @@SoftwaresAI sir, can i use an arduino leonardo with tensorflow lite? Because in fonction of the object , I have to light the leds.

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

    sir why do i get "Illegal instruction" when i run the file??

    • @heiko287
      @heiko287 2 дня назад

      probably pytorch not compatible to your raspi achitecture. Thats what happens to me. You should uninstall it and find a comptible version of pytorch, if it is still showing "illegal instruction". You should accept and use other libraries for object detection such as tensorflow or openCV, etcc

  • @kotraner
    @kotraner 3 года назад

    any suggestion to increase fps...? its too slow even with tiny weight

    • @AshokKumar_2216
      @AshokKumar_2216 3 года назад +2

      model quantization

    • @AshokKumar_2216
      @AshokKumar_2216 3 года назад +1

      Dynamic range quantization 4x smaller, 2x-3x speedup CPU
      Full integer quantization 4x smaller, 3x+ speedup CPU, Edge TPU, Microcontrollers
      Float16 quantization 2x smaller, GPU acceleration CPU, GPU

  • @yilberrojas8306
    @yilberrojas8306 3 года назад +1

    Good.

  • @ayamejri5183
    @ayamejri5183 2 года назад

    raspberry pi 4 4 gb ram or 8 gb ?

  • @luizcarlosmarquesjunior.9468
    @luizcarlosmarquesjunior.9468 3 года назад

    Great video! What was the FPS for real time detection on the Raspberry Pi?

    • @SoftwaresAI
      @SoftwaresAI  3 года назад +1

      FPS changes with image size, and model you choose to predict. i guess using 360p resolution, it was taking 1.2 sec to process one image on yolov5s.pt model

    • @vishalsinha8614
      @vishalsinha8614 3 года назад

      Were you able to try peripherals to improve the FPS by any chance? Something like Coral accelerator?

    • @ngocluu8366
      @ngocluu8366 3 года назад

      @@vishalsinha8614 try to overclock your rasp4, you will need a fan for the cpu and make it detect every 3 frames instead of every frame like the default way. by this, i have archived 5fps on rasp4

    • @minhhuy499
      @minhhuy499 3 года назад

      @@ngocluu8366 so what is your over_voltage and arm_freq in config file?

  • @mertenesyurtseven4823
    @mertenesyurtseven4823 2 года назад

    Greetings from Turkey! I am a member and mentor of my FRC team "Conquera". We are using yolov5n on rasbery pi 4 8gb with 208 img size which provide 7 fps. But we need more. Can you help?

    • @SoftwaresAI
      @SoftwaresAI  2 года назад +1

      u can use jetson nano to speed up.

    • @sshubam
      @sshubam 2 года назад +1

      main reason would be because the webcam you are using does not have h.264 encoding so its computationally heavy on the pi. You should use the official raspberry pi 4 camera which uses h.264 encoding and will probably give you a much higher frame rate.

    • @sshubam
      @sshubam 2 года назад +1

      else use tensorflow lite

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

    why is so slow??

  • @huyvanba2943
    @huyvanba2943 3 года назад

    I can detect with image, video smoothly but when use the camera ( source 0), it have a error like this img drive.google.com/file/d/1mSL7vomkHu60cgqiNOU4YAiQp4r0a06U/view?usp=sharing