YOLOv5 object detection on Raspberry pi 4

  Рет қаралды 77,659

SoftwaresAI

SoftwaresAI

Күн бұрын

Пікірлер: 158
@Waja_Dadkarim
@Waja_Dadkarim 2 жыл бұрын
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 Жыл бұрын
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 жыл бұрын
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 жыл бұрын
How many Gb for a raspberry pi to run YOLOv5 like in this video?
@readystudygo5091
@readystudygo5091 Жыл бұрын
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
@zubaidahsabah7948
@zubaidahsabah7948 3 жыл бұрын
great work! how can we implement this using tiny version, i suppose it would be faster
@f_bian
@f_bian 3 жыл бұрын
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 жыл бұрын
I already have a tutorial about it here, kzbin.info/www/bejne/rZarp3xsn5mCipo pytorch installation tutorial for raspberry pi. Please subscribe the channel :)
@narpat007
@narpat007 2 жыл бұрын
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
@Supik.
@Supik. 10 ай бұрын
Is it the same way for the yolov3-tiny?
@faceprofesor
@faceprofesor 2 жыл бұрын
Thank you for the video. How do you pass the KZbin image through the yolo?
@nanakwamekankam1281
@nanakwamekankam1281 Жыл бұрын
I get a "Segmentation Fault" error when I run the inference. Any help?
@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?
@singgihbekti969
@singgihbekti969 2 жыл бұрын
can we deploy in raspberry pi 3? does it support with pytorch? or any pytorch version? thank you
@عبداللهالحريبي-ص1ن
@عبداللهالحريبي-ص1ن 3 жыл бұрын
I am facing problem with installing opencv-python , it sys that object is not iterable , how can i fix it , if would you please
@나현강-b6r
@나현강-b6r 3 жыл бұрын
Did you install the 2.2 version of tension flow?
@gbox3d
@gbox3d 3 жыл бұрын
great work!!
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
Thanks a lot!
@ajsirhzz75
@ajsirhzz75 11 ай бұрын
Does it run in 32 bit bulleyes os??
@konkoboaxel8887
@konkoboaxel8887 3 жыл бұрын
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: kzbin.info/www/bejne/iKezf5aVaMaVj9U
@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?
@rielt12
@rielt12 3 жыл бұрын
did you use a movidius stick?
@merondesta3895
@merondesta3895 2 жыл бұрын
can i do that using raspberry pi 3?
@kashishnaqvi5639
@kashishnaqvi5639 2 жыл бұрын
Hey in mine, it says no command pip3 pls help
@ilhancakmak79
@ilhancakmak79 2 жыл бұрын
How can i use it by webcam? Thanks sir
@kashishnaqvi4708
@kashishnaqvi4708 3 жыл бұрын
Can I use this on raspberri pi 3 b ?
@smitpanchal9866
@smitpanchal9866 2 жыл бұрын
I can't install pytorch on raspberry pi 3 B+ ...!
@thanhan4046
@thanhan4046 2 жыл бұрын
Can you give me link your raspberry OS you using???
@kashishnaqvi4708
@kashishnaqvi4708 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@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 3 жыл бұрын
@@kashishnaqvi4708 Hello, here is code that output audio : drive.google.com/file/d/1p2Hrs7tEOBZG2n-uQ8LuaY4lZc3fJX-w/view?usp=sharing
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
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 3 жыл бұрын
I have code update, with little more code, let me know, if you need it.
@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?
@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 5 ай бұрын
late reply but just pip3 install ultralytics
@PulseofPassion12
@PulseofPassion12 2 жыл бұрын
bro please can you tell me how can i attach custom trained dataset inside to the this projects
@jervx829
@jervx829 2 жыл бұрын
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 )
@viktorrrrrr
@viktorrrrrr 2 жыл бұрын
Hey guys, I get a silly question. How can I know the IP of raspberry pi on my laptop?
@TechToLife2024
@TechToLife2024 2 жыл бұрын
Nice Video , How to use edgeTPU USB from google product? sir
@nanthini2898
@nanthini2898 Жыл бұрын
Bro its asking username, password why its asking in terminal
@aysebeyzaunal3472
@aysebeyzaunal3472 3 жыл бұрын
are you using a virtual space to do the arguiments? like in ubuntu with virtual box
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
no
@aysebeyzaunal3472
@aysebeyzaunal3472 3 жыл бұрын
can i do it in windows?
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
@@aysebeyzaunal3472 yes you can, you need to install pytorch
@aysebeyzaunal3472
@aysebeyzaunal3472 3 жыл бұрын
@@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.
@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
@이진-r4e
@이진-r4e 3 жыл бұрын
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"
@shahedobaid1885
@shahedobaid1885 Жыл бұрын
sir why do i get "Illegal instruction" when i run the file??
@heiko287
@heiko287 3 ай бұрын
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
@o__bean__o
@o__bean__o 3 жыл бұрын
model quantization
@o__bean__o
@o__bean__o 3 жыл бұрын
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
@장병희-y2p
@장병희-y2p 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
@장병희-y2p
@장병희-y2p 3 жыл бұрын
@@SoftwaresAI Thank you for your prompt reply!!! I know as you replied, but only this result comes out.
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
@@장병희-y2p Is it fixed the problem?
@장병희-y2p
@장병희-y2p 3 жыл бұрын
@@SoftwaresAI drive.google.com/file/d/12K38FEvhnE5FnUYfKlG0aTWKNldRfmNe/view?usp=sharing
@장병희-y2p
@장병희-y2p 3 жыл бұрын
@@SoftwaresAI It's the same situation as the picture.
@ayamejri5183
@ayamejri5183 2 жыл бұрын
raspberry pi 4 4 gb ram or 8 gb ?
@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) ... -
@yilberrojas8306
@yilberrojas8306 3 жыл бұрын
Good.
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
Thanks
@yilberrojas8306
@yilberrojas8306 3 жыл бұрын
@@SoftwaresAI !pip install -U -r requirements.txt
@megauti
@megauti 5 ай бұрын
It is too (extremely) slow on R-pi 4.
@abdurrazzak1612
@abdurrazzak1612 3 жыл бұрын
cool and greate
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
Thanks
@luizcarlosmarquesjunior.9468
@luizcarlosmarquesjunior.9468 3 жыл бұрын
Great video! What was the FPS for real time detection on the Raspberry Pi?
@SoftwaresAI
@SoftwaresAI 3 жыл бұрын
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 жыл бұрын
u can use jetson nano to speed up.
@sshubam
@sshubam 2 жыл бұрын
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 жыл бұрын
else use tensorflow lite
@ElectroCoderEC
@ElectroCoderEC Жыл бұрын
why is so slow??
@MahyaGholami-fb7hh
@MahyaGholami-fb7hh 3 ай бұрын
its better to install the libraries with requirement.text first .😁 "pip install -r requirement.text"
@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
This tiny computer changes EVERYTHING
15:57
Jeff Geerling
Рет қаралды 692 М.
Tensorflow Lite with Object Detection on Raspberry Pi!
11:31
Lazy Tech
Рет қаралды 27 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,1 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 260 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 53 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 42 МЛН
YOLOv5 training with custom data
20:29
SoftwaresAI
Рет қаралды 435 М.
Object Detection in 10 minutes with YOLOv5 & Python!
10:45
Rob Mulla
Рет қаралды 291 М.
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1,2 МЛН
How To Run TensorFlow Lite on Raspberry Pi for Object Detection
10:48
Edje Electronics
Рет қаралды 884 М.
Raspberry Pi Object Detection Tutorial
9:20
Sam Westby Tech
Рет қаралды 84 М.
Raspberry Pi AI Kit - Custom YOLOV8 Object Detection
12:45
Cytron Technologies
Рет қаралды 6 М.
Autonomous Driving Object Detection on the Raspberry Pi 4!
13:26
Ethan's Pi Tips
Рет қаралды 20 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,1 МЛН