Object Tracking Using YOLOv4, Deep SORT, and TensorFlow

  Рет қаралды 74,641

The AI Guy

The AI Guy

Күн бұрын

Learn how to Build an Object Tracker using YOLOv4, Deep SORT, and Tensorflow! Run the real-time object tracker on both webcam and video. This video will show you how to get the necessary code, setup required dependencies and run the tracker. It can be run using YOLOv4, YOLOv4-tiny or YOLOv3 object detection models.
#objecttracking #yolov4 #deepsort
YOLOv4 is a state of the art algorithm that uses deep convolutional neural networks to perform object detections. We can take the output of YOLOv4 feed these object detections into Deep SORT (Simple Online and Realtime Tracking with a Deep Association Metric) in order to create a highly accurate object tracker. Run Deep SORT with YOLOv4-tiny model and obtain even higher speed and FPS, perfect for mobile apps or edge devices such as Raspberry Pi or Jetson Nano.
GET THE CODE HERE: github.com/the...
In this video I cover:
1. Cloning the code and installing dependencies.
2. Converting YOLOv4 pre-trained model into TensorFlow model.
3. Running Object Tracker on video.
4. Filtering allowed classes to track.
5. Running Object Tracker with YOLOv4-tiny for high FPS.
6. Adding info flag to see detailed information on tracks.
------------------------------Resources------------------------------
Learn to Convert to TFLite and TensorRT: • YOLOv4 Object Detectio...
Configure to Run with Custom YOLOv4 Detector: • How to Build a Custom ...
Train Custom YOLOv4 Detector in Cloud: • YOLOv4 in the CLOUD: B...
The Official YOLOv4 paper: arxiv.org/abs/...
If you enjoyed the video, toss it a like! 👍
To Subscribe: / @theaiguy
Thanks so much for watching!
The AI Guy

Пікірлер: 237
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Let me know what additions you would like added to the code and if you run into any issues. Cheers :)
@alphalimit8
@alphalimit8 4 жыл бұрын
Nice function, but the deep sort id sometimes changes within the same object, how to tackle this issue?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Farhan Tandia in the track.py file you can make the ‘age’ variable bigger. This variable is how long an ID can be not seen before it forgets it.
@TheCommentYouNeed
@TheCommentYouNeed 4 жыл бұрын
First of all great tutorial :) Keep doing it. Is there any chance that you'll prepare/create a tutorial about gathering some statistics about tracked objects e.g. distance covered in total(let say in meters or km), current speed and so one. That could be really awesome to see content like this :) I hope you enjoy this idea. Best regards
@ImranAli-zo8bi
@ImranAli-zo8bi 4 жыл бұрын
Great video. I have trained my custom yolov4 model according to your previous video. Can I run deepsort tracker on it? will it be enough to replace -- model yolov4 name to my --model yolo-custom_last.weights?. Thankyou
@Gabrielperesspat
@Gabrielperesspat 4 жыл бұрын
I would like to test my pre-trained weights for plate detection, how can I proceed?
@rajathav3159
@rajathav3159 3 жыл бұрын
To the guys for whom no bounding boxes appear in the video : create a new environment as he says in the beginning of the video and use this, rather than using one which you might have created earlier for some other purpose. This worked for me.
@deepanshuvishwakarma316
@deepanshuvishwakarma316 4 жыл бұрын
I came across your channel few days ago and have been following all videos since then, I had the exact same project that you have already executed in this video and I really appreciate your work. Keep doing these videos it's an enormous source for learning practically.
@nojoodothmanal-ghamdi1026
@nojoodothmanal-ghamdi1026 Жыл бұрын
You have no idea how this video saved me, I cannot thank you enough
@plasminds
@plasminds 3 жыл бұрын
while looking for a yolov4 repository I found yours, fully documented and ready to go! What a goldmine! Works so well, many thanks!
@ragavendra6686
@ragavendra6686 4 жыл бұрын
Nice video! I have a question regarding DeepSORT. DeepSORT is trained to extract features only for the person class and not for other object classes. Did you make any changes to the model or do you use the Deepsort's feature extractor trained for people on all object classes? It would be great if you could make a video on multiple object classes tracking using deepsort.
@GauravAsati87
@GauravAsati87 4 жыл бұрын
can you please do a video for custom object training for Deep SORT. like to train deep SORT on your data set
@arnishakhondaker7388
@arnishakhondaker7388 3 жыл бұрын
Hey. Were you able to figure anything out? I'm trying to train deep SORT on custom object tracking, but I'm really confused what to do.
@peglegsqueeks4593
@peglegsqueeks4593 2 жыл бұрын
Thank you for an awesome clear explanation, on object tracking. If I convert the tiny YoloV4 model to tensorflow lite can I use Coral USB accelerator to accelerate the inferencing? I just need a way to make a post process quantized edge tpu .tflite model.
@vipingautam9501
@vipingautam9501 2 жыл бұрын
Hi first of all thank you so much for putting up such a nice video, could you tell if we are interested in tracking only single person instead of all. can we do it?
@guilhermedias9215
@guilhermedias9215 3 жыл бұрын
When I try convert the model: conv_weights = conv_weights.reshape(conv_shape).transpose([2, 3, 1, 0]) ValueError: cannot reshape array of size 4554552 into shape (1024,512,3,3) What should I do?
@saifeddinemahmoudi1138
@saifeddinemahmoudi1138 4 жыл бұрын
Great video, But can someone please explain how the deepsort is working, how it is trained on the 80 classes to track them ?, or is it possible that it can track any type of object? Thanks in advance
@omniopen
@omniopen 3 жыл бұрын
Great video, well documented code and sturdy implementation 10/10
@yosmy5431
@yosmy5431 2 жыл бұрын
hope to see additional feature of counting the number of cars within the video and passing through the lane successfully?
@MiguelJimenez-cu5ft
@MiguelJimenez-cu5ft 4 жыл бұрын
@The AI Guy . Your videos are very useful, thanks. I have one question, instead of using a webcam is it possible to acces via RTSP protocol for security cameras?
@SuperJg007
@SuperJg007 3 жыл бұрын
If we can track objects then we can also measure speed and such right? How would you go about getting the (x,y) coordinates?
@gerhardheinzerling9880
@gerhardheinzerling9880 3 жыл бұрын
You did a very good job here. I downloaded the code, followed your instructions and it worked perfectly well on my Windows 10 machine (with gpu). There is just one strange thing. I followed a ball which is in plain sight all the time. No interruption no obstacles. Still it finds the same ball with three different tags on it (1, 2 and 4). It guess it looses the ball for some millisecs / one or more frames and finds it again in the next frame and starts a new counter. I will find out :-) Thank you very much for the excellent video!
@cheesiangleow4782
@cheesiangleow4782 4 жыл бұрын
One question is about the DeepSORT tracker, i think it is trained with MARS dataset(only person), what i want to confirmed is that , does it track on any objects even though the DeepSORT model is only trained on person?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
CheeSiang Leow the deepSort model is indeed trained on the person class but from my experience it works extremely well on all classes. It will still track all classes, just might not be as accurate at reidentifying previously tracked objects!
@cheesiangleow4782
@cheesiangleow4782 4 жыл бұрын
@@TheAIGuy Thank you for reply! you solved my question keep on my head!
@vahabmspour6336
@vahabmspour6336 Жыл бұрын
Question: When I run your notebook it runs well but boxes cant add to the output video!! I have same input and output (without boxes and labels :/)
@nbourre
@nbourre 2 жыл бұрын
I'm trying to run the object_tracker script, but it get stuck on frame #1 and doesn't move. It seems like a problem with the model conversion to TF. Can someone guide me in the right direction?
@codingriovo631
@codingriovo631 Жыл бұрын
hey, I would like thank you very much for this video. If you see this comment, could you let me know if there is any way to run this directly from a python script on live video?
@ziadel-massik4392
@ziadel-massik4392 3 жыл бұрын
Can you help me with something? At lines 19 and 20, I'm getting Import "tensorflow.compat.v1" could not be resolved Pylance. Please help me with this.
@Andrey_Zakharoff
@Andrey_Zakharoff Жыл бұрын
@The AI Guy Thank you for your work. I followed your instruction, all works like in your video, but I have nor detections neither tracking. Output avi == input avi, and when I add --info in command line, I can see only FPS, no detection&tracking info.🤔
@AtenTetsu
@AtenTetsu 3 жыл бұрын
Thank you so much for this video. Btw, can I apply this code into raspberry pi with camera installation?
@blackhole232323
@blackhole232323 4 жыл бұрын
First of all congratulations on the great Deep-sort tutorial with Tensorflow and YOLOv4. You have explained it perfectly! I have a question: is there any way to be able to display in the demo total objects detected by class as in your yolov4-custom-functions repo? I have copied functions.py and I have imported the library, FLAGS and the script in object_tracker.py but unfortunately I can only display the counted objects in the terminal and not in the demo. I would greatly appreciate if you could help me. Thanks in advance. Regards.
@karthickraja1026
@karthickraja1026 3 жыл бұрын
Hey Jesus, can you please explain how to counting an total object in our frame?
@zunayedmahmud3515
@zunayedmahmud3515 4 жыл бұрын
Great work as always! I have one question. In your earlier videos when you implemented yolov3 in webcam and videos, it had around 9-10 fps, and the tiny version achieved around 30-40 fps. I am wondering why the fps for yolov4 is so low here when the paper says that yolov4 works in real-time?
@belqesgharama347
@belqesgharama347 3 жыл бұрын
I have the same question, but maybe coz i am using CPU not GPU, what are u using?
@zunayedmahmud3515
@zunayedmahmud3515 3 жыл бұрын
I ran it on a GPU and as far as I can recall, I was getting around 30fps (on average) on random videos.
@belqesgharama347
@belqesgharama347 3 жыл бұрын
@@zunayedmahmud3515 I tried using my GPU today it’s around 7 and 9 fbs.
@belqesgharama347
@belqesgharama347 3 жыл бұрын
By the way , did you try to evaluate yolo detector with deepsort using any evaluations codes?
@zunayedmahmud3515
@zunayedmahmud3515 3 жыл бұрын
@@belqesgharama347 I did integrate yolo with deepsort but could not do the evaluation. But I saw on the Github page that they were working on building an object tracker based on yolo. Maybe that's something you can evaluate using object tracking metrics.
@martinschmit8897
@martinschmit8897 4 жыл бұрын
Hi Ai-Guy I have a quick question. I would like to train my own data set. Today I have labeled all the pictures there, there are pictures on which no objects to be trained are visible. Do I also have to create a (picture) .txt for these pictures, which are simply completely empty? Or do Yolo and Tensorflow take it that way, if there is no text file for an image, that there is nothing to be recognized there?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Martin Schmit you have to create a blank txt file i believe. Otherwise you will get an error i think.
@muhammadsaliem8799
@muhammadsaliem8799 2 жыл бұрын
thanks for your extremely helpful content , I have a question is there a way to detect only one class using colab ?
@oskarmarek7124
@oskarmarek7124 2 жыл бұрын
Great video! Do you know if there's a way to get the mAP on this model? I can't find the code to save the detections to the file in order to run any mAP algorithms.
@indraadityanlogamurugan998
@indraadityanlogamurugan998 3 жыл бұрын
I get an error of Illegal Instruction (core dumped) when trying to convert the weights into a tensorflow model using this instruction: python save_model.py --model yolov4. I am using the conda commands and so believe that I have the right version of all the packages installed. Any idea on how I could solve this error? Any help would be appreciated!
@martindemeio
@martindemeio 4 жыл бұрын
Hello! Congrats for the model. It's really accurate and stable. I'd want to ask you if it is normal that the YOLO v4 algorithm takes 2 hours to process a 5 min video. I guess that something's wrong with my configuration. If it was designed to detect objects with the cam, it should be processing videos as fast as in real-time. I installed your "conda" configuration code using the tensorflow-gpu yml, though. Is it possible to speed it up? Thanks!
@palaache
@palaache 4 жыл бұрын
@Martin De Meio Hey! Its usually because you arent processing the video on a GPU. Maybe your system doesn't have a GPU, or if it does, is not compatible.
@ArvindChandel512
@ArvindChandel512 4 жыл бұрын
Hi, In deep sort paper its mentioned that to compute Cost metric C, we combine both metric using weighted sum Lambda. In implementation how we can increase the weightage of Appearance metric to reduce Id switching issue.
@kaliprasana
@kaliprasana 2 жыл бұрын
How to store those bounding box coordinates to use them as trajectory data? Please explain this also.
@sohailawan77
@sohailawan77 4 жыл бұрын
Hi,thanks alot for such an awesome video.i have tried your previous video on tracking with sort and yolov3 but when I filter that for only one class I am geri getting the wrong IDs i-e getting jumps in IDs if our last id is 5 then it may jump from 5 to 13 and assign ID no 13 to the next person from ID 5.can u please suggest weather this will help me in this regard or not?
@tiktokindia6064
@tiktokindia6064 4 жыл бұрын
Nice video!! I wanted to know how can I combine object detection model and Text recognition model and run them simultaneously. Like I want recognize the characters on number plate So what i did was i used YOLOv3 for object detection and Pytesseract for character recognition. But the issue is pytesseract is not working efficiently so i wanted to create my own model for that and combine it with the object detection? Can you please Let me know the proper steps for doing so
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Tiktok India i will be showing this in an upcoming video so stay tuned!!
@tiktokindia6064
@tiktokindia6064 4 жыл бұрын
@@TheAIGuy Thankyou so much. I will be waiting for that video!
@ezzaty53
@ezzaty53 4 жыл бұрын
For tracking tho, how much images for training to give high accuracy? Because I tried using my custom weights, it doesn't give high accuracy compare to just detection system using tensorflow. Does it need to be more than 2000+ images?
@Kishi1969
@Kishi1969 2 жыл бұрын
Dear Sir...Its nice watching your educative lectures in KZbin and i have been learning alot but along the way , i encountered problem after running this python object_tracker.py --video ./data/video/test.mp4 --output ./outputs/demo.avi --model yolov4 and this what ive been getting and i tried installing and added it to my path both 32 and 64 bit but getting same errors "Could not locate zlibwapi.dll. Please make sure it is in your library path!"
@jokosusilo303
@jokosusilo303 4 жыл бұрын
Thanks for uploading this tutorial. I will have many questions to apply this on my custom model. May I know what's the GPU that you are using?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Joko susilo i have a nvidia GTX 1060
@quangtuyennguyen4081
@quangtuyennguyen4081 2 жыл бұрын
i folow to your instruction but the video output has no bouding box. can you tell me why?
@ucanhvu274
@ucanhvu274 3 жыл бұрын
Can you do this for google colab version? EDIT: Guess what, you clearly used AI to predict my question and you answered it, thank you
@TuanNguyen-gf8np
@TuanNguyen-gf8np 3 жыл бұрын
Bạn chạy trên colab đã ra kết quả chưa thế ? mk thử chạy mà nó bị lỗi.
@ucanhvu274
@ucanhvu274 3 жыл бұрын
@@TuanNguyen-gf8np bạn dùng cái của video này hay cái khác vậy? mình chạy code của (kzbin.info/www/bejne/lavVf4iwebhrkMU) mà ko cần modify gì vẫn chạy đc
@thattaguy3791
@thattaguy3791 Жыл бұрын
Hey, the google drive link has expired for the weights. Is there an updated link anywhere?
@shannonbreaux8442
@shannonbreaux8442 4 жыл бұрын
Can this be used with blue iris for monitoring security cameras?
@carvenpoon6396
@carvenpoon6396 3 жыл бұрын
Do you have any tutorial or video on how to train your yolo v4 + deepsort on your custom dataset and labels? Thanks
@sambakolliboina1101
@sambakolliboina1101 4 жыл бұрын
Hi sir I want to do this with my own data set but how to proceed
@martinschmit8897
@martinschmit8897 4 жыл бұрын
Hey AI-Guy, I have a stupid question.(I use Yolov4 and Tensorflow 2.0) I have trained a custom dataset. By me, the directory "yolov4-416" is empty, after training. It created the file "yolov4.data-00000-of-00001", is this the weights-file? And how can i use it?
@AmaliePreecha
@AmaliePreecha 3 жыл бұрын
how would you do all this with opencv? i dont think i quite know what do what yet between opencv, yolo, deep sort and tensorflow, feel like is just terms that gets thrown arround but i have no idea how to isolate their uses and combination posibilities
@PANDURANG99
@PANDURANG99 Жыл бұрын
What about same person or car come again, will count new for it
@fareedkhan67
@fareedkhan67 3 жыл бұрын
Can you tell me, about the CPU usage while using deepsort ? for me it was always close to 100, is there anything that i'm doing wrong ?
@ashreesha5242
@ashreesha5242 4 жыл бұрын
@The AI Guy could you please suggest what can be done to identify facial features of people so that I can detect whether people on the video are wearing mask or not.Please help!!!
@SivaShankarsss
@SivaShankarsss 4 жыл бұрын
This can be done by training custom data set.. kindly refer his previous videos.
@prashantsharmastunning
@prashantsharmastunning 2 жыл бұрын
How do I create my own custom file. I need to do some down stream task with the tracking ID and bounding boxes.
@maryamaghili1148
@maryamaghili1148 3 жыл бұрын
Hi! thanks for the great videos. Do you have any github or toturial showing how to impliment obj tracking with deepsort and pytorch? Or aybe going more in depth how to pass the data back and forth between kalman filter and yolo? I would like to impliment the tracking from scrach with yolo5 and deepsort and I need to understand everything in depth.
@mangkhongsai9029
@mangkhongsai9029 2 жыл бұрын
Can we do this in google colab?, as my computer doesn't support gpu i am facing difficulty.
@ginny_01
@ginny_01 3 жыл бұрын
Hii, very nice tutorial. I was wondering if you could count the vehicles after tracking them.
@tanayonkar
@tanayonkar 2 жыл бұрын
Hey great work with this, can we use this for lidar data aswell?
@THEULTIMATEPRASHANT
@THEULTIMATEPRASHANT 2 жыл бұрын
Not getting any detection bro... i tried latest tensorflow gpu version i.e. 2.7 and also afew others like 2.5 and 2.3 but getting no bounding box... can you guess what's wrong?
@supriamir5251
@supriamir5251 2 жыл бұрын
same here. Did you fix it?
@THEULTIMATEPRASHANT
@THEULTIMATEPRASHANT 2 жыл бұрын
@@supriamir5251 reinstalled tensorflow-cpu environment and then uninstalled tensorflow there to install tensorflow gpu… it worked
@supriamir5251
@supriamir5251 2 жыл бұрын
@@THEULTIMATEPRASHANT i installed env using conda. before its work but too slow because the tenforflow-gpu doesnt compatible so i change the version of the tf-gpu. the fps became faster but no bounding box in the video output.
@THEULTIMATEPRASHANT
@THEULTIMATEPRASHANT 2 жыл бұрын
@@supriamir5251 use the slow version instead bro.. don’t change the versions… it is breaking the program..
@plaban1407
@plaban1407 4 жыл бұрын
Great tutorial! can you please tell which GPU laptop you are using?
@prabhatkumar4211
@prabhatkumar4211 3 жыл бұрын
i'm getting an error: ValueError: Memory growth cannot differ between GPU devices so where i need to do changes in code ,i've tried but every time failed to do. My system having 2 gpu's.
@belqesgharama347
@belqesgharama347 3 жыл бұрын
Can you show us how to evaluate the tracking using py_motmetrics with deepsort?
@paulpolizzi3421
@paulpolizzi3421 Жыл бұрын
Thats very cool, how can i get this to track soccer players on my video? and could it track data? Thx
@seckinoncu3347
@seckinoncu3347 4 жыл бұрын
what is the reason that you use tensorflow but not darknet?
@saifeddinemahmoudi1138
@saifeddinemahmoudi1138 4 жыл бұрын
Yeah, I was wandering too
@GOBish23
@GOBish23 4 жыл бұрын
TensorFlow, tflite, TensorRT are great for edge devices
@saifeddinemahmoudi1138
@saifeddinemahmoudi1138 4 жыл бұрын
@@GOBish23 could you be more specific plz ?
@reefjames6302
@reefjames6302 4 жыл бұрын
@@saifeddinemahmoudi1138 edge devices have limited hardware hence running these less intense framework is more betterer
@craq47
@craq47 4 жыл бұрын
@@reefjames6302 YOLO's C code is pretty heavily optimised, I wouldn't expect tensorflow to be much more efficient, if at all. There might be a difference if you don't have a GPU, but in this video he says he's using a GPU.
@umarmuhammadi429
@umarmuhammadi429 2 жыл бұрын
Nice video I want to add a congestion measurement to this, do you know how please?
@dhruvsheth7260
@dhruvsheth7260 4 жыл бұрын
Is there a method to get an output based on the object detected. If a car is detected, print("car detected") I'm getting some errors doing this so if you can provide me with a simple script part, I'll add it to the main script
@sayyednezhadi6545
@sayyednezhadi6545 3 жыл бұрын
That was very helpful! I know it prints FPS at each frame. Is there an easy way to print the actual frame number from the original video?
@chukypedro818
@chukypedro818 Жыл бұрын
use cv2.putText function
@dieweltentdecker5878
@dieweltentdecker5878 4 жыл бұрын
Good Video! Can you make in the future a stock price prediction model?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Will do for sure!
@rivaldoyosephbuarlele9410
@rivaldoyosephbuarlele9410 3 жыл бұрын
how to use the code without Cuda or does it specifically have to use Cuda to run the code?
@viraldoshi1335
@viraldoshi1335 3 жыл бұрын
How can I do real time object tracking on a CPU. I want to track my hand through my webcam but If I use a tracker only then it gets stuck on the face..... So I need to use detection + tracker but that gets slow..... Plz help me sir 🙏
@patrikpatrik4651
@patrikpatrik4651 4 жыл бұрын
Thanks for a really nice video! IWould it be possible for you to include rtsp streams, and not only video files or webcam?
@armandstrauss1348
@armandstrauss1348 4 жыл бұрын
Agreed would also like to know as my current project requires RTSP stream.
@nept4ne
@nept4ne 4 жыл бұрын
Hi! @The AI Guy Will be a tutorial in order to try this on colab?. Thanks
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Harry yes currently rworking on a video to run this in colab! So dont worry it will be out shortly
@nept4ne
@nept4ne 4 жыл бұрын
@@TheAIGuy thanks man.
@jajagege8267
@jajagege8267 3 жыл бұрын
Thank you for your tutorials!! I have a question how i can import main method in another sript?
@maryamhallal3709
@maryamhallal3709 3 жыл бұрын
Hello I containerized the project, their is one error I created an issue on github
@shahrinnakkhatra2857
@shahrinnakkhatra2857 3 жыл бұрын
Hey, actually I tried this out and it turned out to be too low FPS while renderring, actually I want to implement this in a real-time moving camera where I will be detecting other vehicles on the road. What might be the solution to this very low FPS that I'm getting? (I tried using tiny weights too, which was very inaccurate, yet not giving too much FPS to be real-time)
@theboss73104
@theboss73104 7 ай бұрын
hey can i add a face recognition system which will recognise and name it and track the person
@sampreetsarkar5469
@sampreetsarkar5469 3 жыл бұрын
Hey @TheAIGuy, thanks for such a great video. I wanted your help on using this code for a custom YOLOv3 model(trained on darknet, with 3 custom classes). I cannot get the detections to show up. What do I set to make it work? Thanks!
@louisfain
@louisfain 2 жыл бұрын
I have the same issue. did you figure out?
@Fom3nt
@Fom3nt 3 жыл бұрын
Hi. I'd like to know if there's a way to access the specific id detections and if they can be used for computations (e.g. traffic density)? I'm only using 'car' for my classes. Thanks.
@umarmuhammadi429
@umarmuhammadi429 2 жыл бұрын
Hi, have you gotten solution am interested too
@nageshchippa4588
@nageshchippa4588 4 жыл бұрын
Superb video thank you for video it will help us a lot Sir can you tell me your system configuration
@krishnagupta-ti8ch
@krishnagupta-ti8ch 3 жыл бұрын
Hello all, need help , how may i run this object tracking on webcam in colab. Regards
@rushinbarvadia8961
@rushinbarvadia8961 4 жыл бұрын
How would I select the bounding box of the car than inside that detection select the license plate of different colors?
@amananand1997
@amananand1997 2 жыл бұрын
Can I implement it with YOLOv5 with custom classes?
@Christian-hp3ph
@Christian-hp3ph 4 жыл бұрын
Is there a way for the output video have a normal frame rate? The output video that I always get is at 600fps which is too high.
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Christian try changing the output video type to non avi file.
@Christian-hp3ph
@Christian-hp3ph 4 жыл бұрын
@@TheAIGuy The output is the same even when I set it to mp4. By the way, is there any way to output the results of the --info flag into a text file whenever I run it?
@AddictedToGaming2410
@AddictedToGaming2410 4 жыл бұрын
Is it possible to get the info saved into a txt or json file like the cloud tutorial does? Awesome work, keep it up :)
@janaeshkrish
@janaeshkrish 4 жыл бұрын
The Ai guy i am big fan of your vedio I have a dought how do i calculate the accuracy of detected objects ?can you suggest some ideas
@houston3414
@houston3414 4 жыл бұрын
finaly the video I was waiting for, one more question can this work perfect on google colab?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Niyonsenga Evariste this will work in colab as long as you run the tracker command with the ‘-dont_show’ flag to hide the video output. You can then go to the location of the saved video and watch it.
@houston3414
@houston3414 4 жыл бұрын
@@TheAIGuy Thanks so much, I will work on it
@mohammadmoaddi2268
@mohammadmoaddi2268 4 жыл бұрын
@@houston3414 Have you worked on it? If so I want the notebook :P
@houston3414
@houston3414 4 жыл бұрын
@@mohammadmoaddi2268 not yet Sir, by the way I remember The AI Guy said he will do a video about it soon
@mohammadmoaddi2268
@mohammadmoaddi2268 4 жыл бұрын
is it possible to combine this as a tflite model that takes stream of images and returns boxes coordinates and id (from the tracker)
@gracecocks9159
@gracecocks9159 4 жыл бұрын
Are you planning on training MobileNetv2-SSD anytime?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Grace Cocks not currently planning on training mobilenet. But let me know if you want me to and i can look into it!
@gracecocks9159
@gracecocks9159 4 жыл бұрын
@@TheAIGuy I would be really keen to learn to train a custom MobileNetV2-SSD, however the documentation isn't as clean as Tiny Yolo, so would be very interested in you doing a tutorial :)
@ammartanweer3388
@ammartanweer3388 3 жыл бұрын
how to run this on multiple GPU's as I have two gpu and this code is giving me error kindly help
@hit26_
@hit26_ 4 жыл бұрын
I have a trained weights of YOLOv3 can I use same weight for YOLOv4?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Hitesh Jaware no unfortunately not as the architecture for both models would be different.
@hit26_
@hit26_ 4 жыл бұрын
@@TheAIGuy Okay thanks!
@ahmedzaki2668
@ahmedzaki2668 4 жыл бұрын
is it possible to use with RTSP live stream camera to dedicate the live view in real-time?
@hashir9821
@hashir9821 3 жыл бұрын
I am having 0.2 fps and 2 fps on yolo tiny. Any suggestions to increase the fps?
@VivekSingh-kt8jn
@VivekSingh-kt8jn 3 жыл бұрын
I am getting below error: Frame #: 1 FPS: 0.04 : cannot connect to X server Any idea on how to sole this?
@visheshdargan8945
@visheshdargan8945 3 жыл бұрын
me too ! did you figure out how to solve it
@abrarullsuhel3515
@abrarullsuhel3515 2 жыл бұрын
comment the cv2 imshow and destroy all
@TimUnknown-h5q
@TimUnknown-h5q 3 жыл бұрын
Hey, great content, thx for the repo. Would it be possible to track an object of a class and then count it. Once it's out of the visible frame and a new object of same class is detected add it to the sum of the previous counted ones. Iam looking for smt like this but couldn't find it, except for open data cam, but I can't use that in colab.
@karthickraja1026
@karthickraja1026 3 жыл бұрын
Hey Tim, i have also same question .Have you find it?
@netollams7050
@netollams7050 4 жыл бұрын
Is it possible to use the anaconda route for AMD gpus?
@alifzulkifli9928
@alifzulkifli9928 3 жыл бұрын
Hello Mr AI Guy, how can i intall MINGW64 TO CLONE THE GITHUB??
@TheAIGuy
@TheAIGuy 3 жыл бұрын
You should be able to just google "install mingw64" and look at the top one or two responses.
@umarkhayam3500
@umarkhayam3500 Жыл бұрын
Hey I am unable to download pre-trained yolov4.weights file. Please help me out link is not working.
@umarkhayam3500
@umarkhayam3500 Жыл бұрын
not tiny, the one uploaded on google drive.
@Mr.Dhalet
@Mr.Dhalet 3 жыл бұрын
Can it will run on AMD GPU?
@bachhuynh1562
@bachhuynh1562 4 жыл бұрын
Do I need to put the cfg of yolov4 in data folder? I faced this error when run save_model.py ValueError: Duplicate node name in graph: 'packed'
@wendang8906
@wendang8906 4 жыл бұрын
Hi I faced the same problem, I downgrade my tensorflow to 2.1 and in the save_model.py file, replace " import tensorflow as tf " with " import tensorflow.compat.v1 as tf tf.disable_v2_behavior() " but now I'm facing another problem which OSError: Unable to create file (unable to open file: name = './checkpoints/yolov4-416', errno = 13, error message = 'Permission denied', flags = 13, o_flags = 302) have you solved the problem with another approach?
@Ankarian203_
@Ankarian203_ Жыл бұрын
Hello, the Google drive link doesn't work
@mandarkulkarni823
@mandarkulkarni823 4 жыл бұрын
@The AI Guy can you tell how to add a new class, new object in that 80 classes trained models,our own new type of class..
@palaache
@palaache 4 жыл бұрын
you would need to custom train your data on a separate class, and then the process is the same.
@carvenpoon6396
@carvenpoon6396 3 жыл бұрын
@@palaache do you have any idea on how to train your custom data with yolo v4 deepsort?
@emonemo2704
@emonemo2704 4 жыл бұрын
Hi how do i extract each of the detected ID? Cant seem to figure out
@SaurabhSharma-sn3yi
@SaurabhSharma-sn3yi 4 жыл бұрын
Can I train yolov4 for male and female detection
@patel_kishan
@patel_kishan 4 жыл бұрын
Hello, I am having a question, hope you help with it.🤞 So, if need to detect the logo of the car and detect which company's car it is, what do I have to do for that?
@emmanherrera516
@emmanherrera516 4 жыл бұрын
Maybe you need to train your own model for logo detection. In this video I guess he used the coco pre trained model to detect car so in order for you to detect logo and company's car your need to train your own model. He has a video of it in his channel for custom detection.
@patel_kishan
@patel_kishan 4 жыл бұрын
@@emmanherrera516 okay, thank you
@kirejevas
@kirejevas 3 жыл бұрын
It would be super if you could add the ROI function. I mean that you could count objects just in a selected area.
@karthickraja1026
@karthickraja1026 3 жыл бұрын
Hey viiger, i have same question like that.Are you find it.?
@codingriovo631
@codingriovo631 Жыл бұрын
you could try modifying the object_tracker file I needed the same thing and that worked.
How DeepSORT Works?
16:28
Augmented AI
Рет қаралды 64 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 85 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,1 МЛН
Deep SORT | Object Tracking | Perception for Self Driving Cars
17:34
Robotics with Sakshay
Рет қаралды 15 М.
Object Tracking with Opencv and Python
30:03
Pysource
Рет қаралды 616 М.
Object Tracking using YOLOv8 on Custom Dataset
21:01
Code With Aarohi
Рет қаралды 16 М.
Yolov8 object detection + deep sort object tracking | Computer vision tutorial
34:33
Computer vision engineer
Рет қаралды 97 М.