Real-time Yolov3 Object Detection for Webcam and Video (using Tensorflow)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 209

  • @TheAIGuy
    @TheAIGuy  4 ปีที่แล้ว +14

    Hi everyone! Let me know if you have issues here in the comments as well as what is your favourite class to detect!

    • @tomboa
      @tomboa 4 ปีที่แล้ว +1

      I don't see your object_tracker.py in your repo. Am I missing something?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      @@tomboa Its not finished yet, will be out soon!

    • @MohamedAmine-lv2qi
      @MohamedAmine-lv2qi 4 ปีที่แล้ว

      The AI Guy Why does the video work so slowly in the detection process?

    • @ibrahimaa9
      @ibrahimaa9 4 ปีที่แล้ว

      i am having issue
      (yolov3-gpu) D:\Object-Detection-API-master>python load_weights.py
      2020-04-10 12:54:26.289940: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
      Traceback (most recent call last):
      File "load_weights.py", line 4, in
      from yolov3_tf2.models import YoloV3, YoloV3Tiny
      File "D:\Object-Detection-API-master\yolov3_tf2\models.py", line 23, in
      from .utils import broadcast_iou
      File "D:\Object-Detection-API-master\yolov3_tf2\utils.py", line 5, in
      from seaborn import color_palette
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\seaborn\__init__.py", line 6, in
      from .rcmod import *
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\seaborn
      cmod.py", line 6, in
      from . import palettes, _orig_rc_params
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\seaborn\palettes.py", line 10, in
      from .utils import desaturate, set_hls_values, get_color_cycle
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\seaborn\utils.py", line 7, in
      from scipy import stats
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\scipy\stats\__init__.py", line 384, in
      from .stats import *
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\scipy\stats\stats.py", line 179, in
      from scipy.spatial.distance import cdist
      File "C:\Users\ibrah\anaconda3\envs\yolov3-gpu\lib\site-packages\scipy\spatial\__init__.py", line 99, in
      from .qhull import *
      ImportError: DLL load failed: The file cannot be accessed by the system.
      why 😫, and how to solve it,

    • @fabioinspires
      @fabioinspires 4 ปีที่แล้ว +1

      This is really amazing work. Thank you so much. Could you send the tracker information to a note pad so that I can take that information and use it after effects for example?

  • @MohamedIsmail-h5i
    @MohamedIsmail-h5i 3 ปีที่แล้ว

    hey. even thought this video is a year old it's still one of the best resources I've found. great work and thank you so much

  • @spfcchoir
    @spfcchoir 4 ปีที่แล้ว +3

    Object tracking looks awesome! Thanks for the yolov3 videos, they are life-saviors! Love to see a video about training custom model directly on TF 2.0 instead of converting one from darknet. Much appreciated!

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Appreciate it! I will try and get this done!

  • @donaldkimpoua2853
    @donaldkimpoua2853 4 ปีที่แล้ว +3

    i just wake up and booom another good video come out ahhh thank bro you dont know how i feel learning from you my best youtube chanel

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Appreciate it my man! Thanks a lot.

  • @tomboa
    @tomboa 4 ปีที่แล้ว +2

    Hey before anything!!!! Thanks for your videos! I have learned a LOT. I really appreciated it. The object tracking is an amazing feature and seeing this evolving to memorizing an object based on a feature would be super cool! Best Francisco

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Appreciate it! The object tracking video should be out pretty soon. Stay tuned!

  • @kentsang9376
    @kentsang9376 ปีที่แล้ว

    Great video for beginners, clear explanation. Thank you

  • @rohithkhambhammettu2742
    @rohithkhambhammettu2742 3 ปีที่แล้ว

    Wow man, thanks!! youre work really made it a whole lot easier to work with object detection and yolo

  • @007jsteeve1
    @007jsteeve1 4 ปีที่แล้ว +5

    great tuitorial ,after 3 weeks of trying finally something worked on my system,thanks a lot ,
    and would love to see a vedio in which it can generate any kind of alarm after detection from web cam

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Thanks. That is a cool idea!

  • @rohitjg
    @rohitjg 4 ปีที่แล้ว +2

    Fix for ValueError: cannot reshape array of size 281082 into shape (256,128,3,3)
    Just chack your number of classed in obj.names and yolov3-custom if they both match that error should not come and make sure you point out to the yolov3-custom file

  • @klausrichter778
    @klausrichter778 4 ปีที่แล้ว +1

    Muchas gracias ! El tutorial más empático, paso a paso y que funciona que he visto de yolo

  • @algerr3952
    @algerr3952 4 ปีที่แล้ว +1

    Thank you for the great video, it helped me alot in optimizing the live object detection. Before the video I always used my CPU and not my GPU but now it's not 1 fps anymore ^^ Thank You

  • @LazyTech825
    @LazyTech825 4 ปีที่แล้ว +1

    This tutorial is super helpful, thanks!

  • @Sullixio
    @Sullixio 4 ปีที่แล้ว +2

    Any reason why it works with pics, but when i try the video it says "detect_video.py:63] Empty Frame" and gives an empty video as output?

    • @Sullixio
      @Sullixio 4 ปีที่แล้ว +1

      I'd like to post the solution to my prob as The AI Guy replied to some one else: " try running the flags without quotes around them like and maybe add a ./with the first folder -video ./data/video/video.mp4, try that out"

  • @wss_108
    @wss_108 3 ปีที่แล้ว

    Hi Thanks to you, I learned how to use yolov3. cheers mate :)

  • @vigneshsharma4627
    @vigneshsharma4627 4 ปีที่แล้ว

    Hi The AI Guy, thanks for the video! But I have got a problem while loading my custom weights. When I added my obj.names file into the labels folder and converted my weights file into tensorflow file, the detection is working, but the video is detecting from the coco.names classes. So, I moved coco.names to another location and kept only my obj.names file in the labels folder, and I got the following error after I ran the detection. Please help !
    python detect_video.py --weights 'weights/yolov3-custom.tf' --output 'data/video/maskoutput.avi' --video 'data/video/mask-video.avi' -num_classes '2' data/labels/obj.names
    2020-06-15 20:43:43.381309: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
    I0615 20:43:51.600792 14012 detect_video.py:36] weights loaded
    Traceback (most recent call last):
    File "detect_video.py", line 94, in
    app.run(main)
    File "C:\Users\lenovo\Anaconda3\envs\yolov3-cpu\lib\site-packages\absl\app.py", line 299, in run
    _run_main(main, args)
    File "C:\Users\lenovo\Anaconda3\envs\yolov3-cpu\lib\site-packages\absl\app.py", line 250, in _run_main
    sys.exit(main(argv))
    File "detect_video.py", line 38, in main
    class_names = [c.strip() for c in open(FLAGS.classes).readlines()]
    FileNotFoundError: [Errno 2] No such file or directory: './data/labels/coco.names'
    (yolov3-cpu)

  • @farjadhaider4401
    @farjadhaider4401 4 ปีที่แล้ว

    Great Video. Really a nice explanation and I got a very clear picture of whole scenario. Keep it up! 5 stars!..

  • @akhil4441
    @akhil4441 4 ปีที่แล้ว +1

    HI AI Guy,
    After converting weights into TF models,
    I have ensured that all required packages are been installed by running:
    pip install -r requirements.txt
    I tried running the model to detect video by the code which you have provided in MY 'CPU'-
    python detect_video.py --video 'data/video/video.mp4' --output 'data/video/output.avi'
    Upon running the code, i got the below error :
    [ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (392) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
    OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): 'data/video/output.avi' in function 'cv::icvExtractPattern'
    W0325 20:00:54.601627 14240 detect_video.py:63] Empty Frame
    W0325 20:00:54.704001 14240 detect_video.py:63] Empty Frame
    W0325 20:00:54.806705 14240 detect_video.py:63] Empty Frame
    Please help.

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Akhil G try running the flags without quotes around them like and maybe add a ./with the first folder -video ./data/video/video.mp4, try that out

    • @akhil4441
      @akhil4441 4 ปีที่แล้ว

      @@TheAIGuy You are awesome man!!! it worked!!!

    • @akhil4441
      @akhil4441 4 ปีที่แล้ว +1

      ​@@TheAIGuy It worked AI Guy...
      However, the model detects at 0.5 fps!!!...
      any remedies for it? else is it because i am using CPU, the fps goes down to this range?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      @@akhil4441 Yes due to using CPU the detection on video can be very slow. If you have a GPU i recommend running the model with GPU.

  • @hakantunca80
    @hakantunca80 4 ปีที่แล้ว +2

    awesome video tutorial, one of the best, thanks for sharing !!

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Thanks for the kind words, glad you enjoyed!

  • @akhilgkrishnan4469
    @akhilgkrishnan4469 4 ปีที่แล้ว +4

    How to connect darknet with python...
    Actually I am doing a project .. which is basically identifying the censorable contents like smoking detection, driver wearning seatbelt , motorcyclist wear helmet and alcohol detection in movies.. and automatically show the statutory warning on the corresponding frames... I use yolov3 for detection.. and used darknet framework... I need to add an overlay image in corresponding frames..how to implement this..

    • @naveen5428
      @naveen5428 4 ปีที่แล้ว +4

      I too need it

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      so when it detects certain classes it outputs text on screen?

    • @akhilgkrishnan4469
      @akhilgkrishnan4469 4 ปีที่แล้ว +2

      @@TheAIGuy I need to add small statutory image on certain screen..

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      Akhil G Krishnan okay i will try and have this in my next video

  • @naveen5428
    @naveen5428 4 ปีที่แล้ว +8

    *Sir your videos are super helpful 😁, could you provide a code to extract a particular class image after yolov3 detects it, suppose I have custom dataset yolo model that detects a particular animal ,can I just extract it's pic every time yolo detects it!*

    • @perfectokay4103
      @perfectokay4103 4 ปีที่แล้ว +3

      Ya dude , I too needs it!😩

    • @arunmathew6382
      @arunmathew6382 4 ปีที่แล้ว +3

      Same request here

    • @sanjaykshaji3095
      @sanjaykshaji3095 4 ปีที่แล้ว +3

      Need the samething

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +3

      okay I will add this to my next video! Thanks everyone for feedback. I will add that you can select classes and take a screen capture when these classes(s) are detected.

    • @naveen5428
      @naveen5428 4 ปีที่แล้ว +1

      @@TheAIGuy I need the bounding box from video ,I need to process what's inside it
      Please help 😊

  • @SirUGG
    @SirUGG 4 ปีที่แล้ว +3

    Man you are AMAZING! You just saved me and my project, because I was started to giving up but when I see objects are recognized on the webcam I took a deep breath, really thank you very much! I just wonder if I can see the output of the detected objects, ie: if camera detects a cellphone at x=20,y=50, it should print like: "at blabla frame cellphone at x=20,y=50" Is something like this achivable? if yes where should i edit the code, thanks again. You just earned a new subscriber

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Yes this do-able for sure1 You will want to edit detect_video.py after line 76. Line 76 is where you get all the box coordinates, confidence values and class names. You can easily write a print statement to print what you are looking for with this information!

    • @SirUGG
      @SirUGG 4 ปีที่แล้ว

      @@TheAIGuy Thx! I will definitely try it

    • @MrApplePieDude
      @MrApplePieDude 4 ปีที่แล้ว

      @@TheAIGuy How exactly would you change the code, so if object "Dog' detected, then do the following code? Thanks

  • @narawitzearth
    @narawitzearth 4 ปีที่แล้ว +1

    Another amazing guide.

  • @snehitvaddi
    @snehitvaddi 4 ปีที่แล้ว +2

    Hey, please do a tutorial on pose detection using PoseNet and comparison of posses.

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      I have been meaning to do this. I'll start working on it.

  • @khawarshehzad487
    @khawarshehzad487 4 ปีที่แล้ว +1

    hi great stuff man helped a lot! tho would love to see tutorials on code explanations like internal workings of yolo (in terms of code) some explanations of files in the folder and detections

  • @Your_Guuurl_Lene
    @Your_Guuurl_Lene 4 ปีที่แล้ว

    Hey great video! I had an issue with doing the initial detecting. The error that came up was this
    2020-04-22 12:49:41.025973: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
    2020-04-22 12:49:41.033458: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
    not quite sure how to fix it :\

  • @孔德宇-l8s
    @孔德宇-l8s 4 ปีที่แล้ว +2

    why i can not install absl? it is not included in requirements.txt

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      you can install absl, i think it gets pre-downloaded as a requirement for one of the other dependencies.

    • @孔德宇-l8s
      @孔德宇-l8s 4 ปีที่แล้ว

      The AI Guy whatever I use conda install absl or pip install absl,it all doesn’t work.

  • @esraaassad8264
    @esraaassad8264 4 ปีที่แล้ว +1

    Hello , is there away to know the bounding box coordinates and crop it ?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Yes there is. You can edit the code in detect_video.py in order to perform this. look for the variable "boxes" as they are the bounding box coordinates. Then just opencv to crop!

    • @esraaassad8264
      @esraaassad8264 4 ปีที่แล้ว

      The AI Guy it didn’t work with me, do you have the code for it ? Please

  • @aidenfrost9997
    @aidenfrost9997 4 ปีที่แล้ว +2

    Amazing video mate .. Is it possible for you to do image segmentation as well ? Love your videos ...

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      For sure will try and do this. Thanks!

  • @ApnaPakistan199
    @ApnaPakistan199 4 ปีที่แล้ว +1

    Amazing video. Thank you

  • @footballonfire2704
    @footballonfire2704 4 ปีที่แล้ว

    Have you put Non Max Supression in your Github tutorial syntax?

  • @ayoubselmi925
    @ayoubselmi925 4 ปีที่แล้ว +2

    Hello, I really like your in depth tutorials, they are very helpful.
    I successfully followed your tutorial about training YOLOv3 custom model on Cloud, I downloaded the .weights file and convert it to .tf model following this tutorial but when I use it for on-video object detection I get this error:
    raise ValueError("Shapes %s and %s are incompatible" % (self, other))
    ValueError: Shapes (255,) and (42,) are incompatible
    any ideas how to solve this issue ?

    • @ayoubselmi925
      @ayoubselmi925 4 ปีที่แล้ว +1

      I think this has to do with the number of filters edited in the cfg file ( before training i changed the default value of filters (which is 255) to 42 as i am training the model on 9 classes of objects)

    • @qianyisun9475
      @qianyisun9475 3 ปีที่แล้ว

      Same problem. Have you resolved it?

  • @rithwicksethi8609
    @rithwicksethi8609 2 ปีที่แล้ว

    Hi saw your video and liked it a lot. I have a doubt:
    How can I add the path of a video that I am getting in real time from ROS - its the real time camera feed of a drone in gazebo. How do I add its path?

  • @hanzt468
    @hanzt468 4 ปีที่แล้ว

    great tutorial, just wondering, if i have to add multiple cameras inside the detection_video.py, what should i change in order for it to work? i know i can add cv2.Videocapture(0) and cv2.Videocapture(1). but im not too sure about everything else.

  • @zekicnar7151
    @zekicnar7151 4 ปีที่แล้ว +1

    thanks for this very clear video :)
    but i have 2 questions. 1.)how can we adjust position of output frame, half of it out of screen.
    and 2.) i have this error : warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:856) and also i can't write output video
    please help me...

    • @zekicnar7151
      @zekicnar7151 4 ปีที่แล้ว

      i am sorry i recognized that i don't have opencv-python. but after i did ' pip install', i have this error :
      [ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (392) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
      OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): 'C:/Users/User/Desktop/AIGUY_videos/Object_Detection_API_master/data/video/output.avi' in function 'cv::icvExtractPattern'
      can you help me??

  • @johnrobertcool
    @johnrobertcool 4 ปีที่แล้ว +2

    Can you create custom object detection using yolo V3 and open CV Step by Step

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      Yes I will try and make a video on this. I like it a lot.

  • @ameyk1998
    @ameyk1998 4 ปีที่แล้ว

    I am also working on the same kind of the project I want to know how to create an alert wherever a certain object is detected?

  • @yashrajhawle4
    @yashrajhawle4 4 ปีที่แล้ว

    Thanks a lot man. This was quite helpful.😁

  • @anish_k
    @anish_k 4 ปีที่แล้ว

    thanks a lot buddy.. was very insightful.

  • @GruberAG
    @GruberAG 4 ปีที่แล้ว

    Great video man!

  • @perfectokay4103
    @perfectokay4103 4 ปีที่แล้ว +4

    Sir I have tried out a one line code similar to that could detect object on images ,on a video and saved it in similar way you did now but the problem was that I wasn't able to use that code for my custom yolo v3 detector, is there something I need to do?
    I have made the custom yolo detector using your previous video❤️ in colab ,can you suggest any solution?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      I show how to use custom weights file in this video, have you tried that way?

  • @minhdungdo4541
    @minhdungdo4541 3 ปีที่แล้ว

    Hi, Thank you very much for an awesome video. Liked and Subscribed. There is a question I would like to ask. I saw in the label folder there is a coco text file with all the labels of the coco dataset. I try to reduce it to only certain items but it doesn't work. Could you suggest to me a way to do so?

  • @dandanny7402
    @dandanny7402 4 ปีที่แล้ว +1

    Thanks for this video! Do you have any plans for object detection on a live rtsp stream from an IP cam?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      Dan Danny i will definitely be looking to do a video on yolo for livestream video.

    • @dandanny7402
      @dandanny7402 4 ปีที่แล้ว

      @@TheAIGuy Awesome! Thank you!

    • @NeuralxAi
      @NeuralxAi 4 ปีที่แล้ว

      @@TheAIGuy when ?

  • @aaravpatel4478
    @aaravpatel4478 4 ปีที่แล้ว

    How can I pause training, change the batch size, and resume training using the same loss curve?

  • @tejassawant2957
    @tejassawant2957 4 ปีที่แล้ว +1

    how can we convert the detected object text into speech ?

    • @aishwaryakanchan4673
      @aishwaryakanchan4673 3 ปีที่แล้ว

      Do let me know if you get how to convert into speech. Thanks

  • @BiplovBhandari
    @BiplovBhandari 4 ปีที่แล้ว

    Can you share the paper/material on yolov3 tiny architecture? All I find is the standard yolov3 architecture only.

  • @hrithikguntuka4300
    @hrithikguntuka4300 4 ปีที่แล้ว +1

    Hi when my trying to convert my custom weights(with classes 2) to tensorflow m getting this following error, can you please tell me the solution
    File "C:\Users\hp\Desktop\Object-Detection-API-master\yolov3_tf2\utils.py", line 68, in load_darknet_weights
    conv_shape).transpose([2, 3, 1, 0])
    ValueError: cannot reshape array of size 75571 into shape (256,512,1,1)

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      I'm looking into this as someone else has just raised the same issue. Thank you and hopefully will be fixed soon!

    • @hrithikguntuka4300
      @hrithikguntuka4300 4 ปีที่แล้ว

      @@TheAIGuy thank you as soon as you fix the issue or find any solution please post it

    • @kodnatthaphatuthai3273
      @kodnatthaphatuthai3273 4 ปีที่แล้ว

      @@hrithikguntuka4300 Change the class in python script to your num of class

  • @shadreese4892
    @shadreese4892 4 ปีที่แล้ว

    TAG, Another great video! I'm a big fan!
    Questions on the '--video' webcam flag, if the '0' is replaced with and IP address ( to an IP camera) would the code still work? Thanks and looking forward to your next video.

  • @hans317
    @hans317 4 ปีที่แล้ว +2

    Hey! I'm appreciate for your another great video. and Im having an error in the process of loading my custom weight file. Error message it "ValueError: cannot reshape array of size 73122 into shape (256,128,3,3) (yolov3-cpu)". I have set the command like
    python load_weights.py --weights './weights/yolov3_custom_last.weights' --output './weights/yolov3-custom.tf' --num_classes 1. But getting this error. How should I fix this?

    • @Ouassimael97
      @Ouassimael97 4 ปีที่แล้ว +1

      i'm facing the same issue..did you get a way to solve it ?

    • @uktech5121
      @uktech5121 4 ปีที่แล้ว +2

      Try this command: python load_weights.py --weights ./weights/yolov3_custom_last.weights --output ./weights/yolov3-custom.tf --num_classes 1 --tiny; Also becase you did custom weight file, you need search num_classes in visual studio code and replace all num_classes = 1.

  • @srinidhiganta5937
    @srinidhiganta5937 3 ปีที่แล้ว

    Can u please tell me how can I use a wireless camera to give an input.............please help

  • @shinmccold
    @shinmccold 4 ปีที่แล้ว +1

    Can we add more custom objects detection to earlier yolov3 weights?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      No unfortunately you need to retrain model with new classes from scratch. :(

    • @shinmccold
      @shinmccold 4 ปีที่แล้ว

      @@TheAIGuy Ohh ok i thought so, thanks for the help.

  • @akhilgkrishnan4469
    @akhilgkrishnan4469 4 ปีที่แล้ว

    When I give a video.mp4 (with audio) file for detection. The output file doesn't contain the audio..how to solve this issue..

  • @akhilgkrishnan4469
    @akhilgkrishnan4469 4 ปีที่แล้ว +1

    Any possibility to train with more dataset on a custom trained model.

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Yes you can train a custom yolov3 model and it will work just the same.

  • @safayildirim54
    @safayildirim54 4 ปีที่แล้ว

    Can I implement it to mobile phone to detect pedestirans from phone's camera?

  • @ahmedkhalid3078
    @ahmedkhalid3078 4 ปีที่แล้ว +1

    Is it possible to remove classes from the already pre-trained yolov3 model?? For example i want to only detect persons but not the other classes without retraining the model, is this possible?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      It is not possible to remove classes from the train model, however you could add logic in the code to only show the detections for persons. This is the easiest way. You would just create an if statement and have it make sure the class is person before drawing detections.

  • @snehavardhankandregula5926
    @snehavardhankandregula5926 3 ปีที่แล้ว

    tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
    I'm getting this error

  • @hebanajem7185
    @hebanajem7185 4 ปีที่แล้ว +1

    can i do that without Gpu ? i was train my model in cloud and i dont have GPU

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Yes you can perform this video without GPU! Just run "pip install -r requirements.txt" instead of doing the conda commands.

  • @krystianbanach8566
    @krystianbanach8566 4 ปีที่แล้ว

    Hi! How to run video from webcam on tiny-yolo? Couse when I run just yolo I get only 3-4FPS per second on GPU and that is not smooth.

  • @D2artu
    @D2artu 4 ปีที่แล้ว

    Hello! Is there a way to insert the program into a raspberry Pi 3 Model B?

  • @FirstNameLastName-fv4eu
    @FirstNameLastName-fv4eu 4 ปีที่แล้ว

    Brother thanks, how can I get the output (detected objects with time) in a table format. You are doing amazing.

  • @klydesuuu
    @klydesuuu 3 ปีที่แล้ว

    how to set that it can only detect 1 object only like human or car only?

  • @alaapbharadwaj3534
    @alaapbharadwaj3534 4 ปีที่แล้ว

    is it the same steps on a macbook too?

  • @ibrahimaa9
    @ibrahimaa9 4 ปีที่แล้ว +1

    Why when I activate the CPU or GPU code
    The program give me error : DLL load failed : the file cannot be accessed by the system
    But when I do not activate any of those
    The program run just fine with the GPU
    ????

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      What DLL is it missing?

    • @himanshuchauhan5563
      @himanshuchauhan5563 4 ปีที่แล้ว

      @ابراهيم عبد الرزاق عبد الحسين hey, i'm also getting the same error. But can you please tell me how did you run it without activating cpu or gpu.

  • @shohanur_rahman_
    @shohanur_rahman_ 4 ปีที่แล้ว

    when i read image from webcam..it seems very slow..is there any way to solve this ???

  • @shibamrocks
    @shibamrocks 4 ปีที่แล้ว +1

    Can you make a same tutorial using YOLO in Colab?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      Can find yolov3 in the cloud videos already on my channel! But I will look at making Tensorflow YOLOv3 videos in Colab soon.

  • @adityasinha4158
    @adityasinha4158 3 ปีที่แล้ว

    Hey, I wanted to deploy this model on a react website, like how can i do that? I was planning to deploy the website on AWS cloud.

  • @fitraelbi8718
    @fitraelbi8718 3 ปีที่แล้ว

    could i run it in tensorflow-gpu==2.2.0 ?

  • @Kishi1969
    @Kishi1969 3 ปีที่แล้ว

    Good lecture

  • @jesilk.b8920
    @jesilk.b8920 3 ปีที่แล้ว

    hey .. great video .. is that possible to do this on google collab?

  • @VijayThakur-uy4zc
    @VijayThakur-uy4zc 2 ปีที่แล้ว

    Hey
    I am unable to find Custom_last_weights file
    Can anyone help me in this especially @The AI Guy

  • @yaraganivenkatavineeth6347
    @yaraganivenkatavineeth6347 2 ปีที่แล้ว

    License Plate recognition using YOLO ,please!

  • @yourxylitol
    @yourxylitol 4 ปีที่แล้ว

    is cuda and cudnn free? even if you want to use that in a company?

  • @AdamFilbert
    @AdamFilbert 4 ปีที่แล้ว +1

    Can it detect staircase?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +2

      No I don't think staircase is in the coco pretrained model unfortunately.

    • @AdamFilbert
      @AdamFilbert 4 ปีที่แล้ว

      @@TheAIGuy Thanks for letting me know.

  • @TK-ke3nv
    @TK-ke3nv 4 ปีที่แล้ว

    Hi The AI Guy, Can I feed in video from local serveraswell ?

  • @jaimitgandhi2436
    @jaimitgandhi2436 4 ปีที่แล้ว

    What should I use for getting 30FPS? Should I use different model or Is there any other way to increase FPS in YOLO-V3?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      If you use the yolov3-tiny model you can get over 30FPS quite easily. Try that and see if it meets your needs.

  • @farjadhaider4401
    @farjadhaider4401 4 ปีที่แล้ว

    I want to say that waiting for your next video on Image Classification Android app using Tensorflow Lite. Please make the video soon. Thanks

  • @abreitinger
    @abreitinger 3 ปีที่แล้ว

    does it work for YOloV4?

  • @creativedev2802
    @creativedev2802 4 ปีที่แล้ว

    Hi, how do we get labels while we are detecting with camera, we are trying to build this app for blind people, it will detect objects and tell what it is so im trying to use your model and stuff now i need to get labels while real time detecting it. any help appriate it . respect

  • @preciouschima9930
    @preciouschima9930 4 ปีที่แล้ว +1

    how can I get the model integrated with a Tello Drone?

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      Ill have to look into this for you!

  • @saifeddinemahmoudi1138
    @saifeddinemahmoudi1138 4 ปีที่แล้ว

    Cool Stuff man !, I just want to ask why my video output saved from the webcam is so fast and too short, can you help me please?

  • @dishankadi1278
    @dishankadi1278 4 ปีที่แล้ว

    Can i get workflow diagram for this project without api its urgent please help

  • @utkarshay
    @utkarshay 4 ปีที่แล้ว

    can we implement this on windows 10 ?

  • @rasheedmalik6594
    @rasheedmalik6594 4 ปีที่แล้ว

    will it work with CPU 2.2GHz and 8GB RAM this real-time webcam detection? I am planning on deploying ur code in a small shop. Also does it only work on ubuntu? can we run python executable from ubuntu in windows?

  • @lyeskaraani8965
    @lyeskaraani8965 4 ปีที่แล้ว

    Is there any solution for gpu compute capability 3.0?

  • @shadenpaez6701
    @shadenpaez6701 4 ปีที่แล้ว +1

    Eres grande, me ayudaste a salvar el semestre!

  • @PhillipMastrup
    @PhillipMastrup 4 ปีที่แล้ว +1

    I have problem running load_weights.py with my custom weights. When I set the number classes which is 1 in my case I get the error: FATAL Flags parsing error: flag --num_classes='1': invalid literal for int() with base 10: "'1'". I tried to use another number I still get the error. Thank you in advance. Great videos!

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      can you reply with the exact command you are running! Once, I see it i'll be able to spot the issue.

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว

      off the top of my head though you probably set --num_classes '1', and for some reason its reading it as a string so try putting no quotes --num_classes 1

    • @PhillipMastrup
      @PhillipMastrup 4 ปีที่แล้ว +1

      @@TheAIGuy You were right by not including the ' ' in the command also for the file path it worked. I'm using the Anaconda prompt not sure if that could be the reason. Thanks for the responds!

  • @donaldkimpoua2853
    @donaldkimpoua2853 4 ปีที่แล้ว

    hi im using ubuntu ,when i run python load_weights.py im getting this error illegal instruction ( core dumped) any one can help me

  • @gio4229
    @gio4229 4 ปีที่แล้ว

    why do i only have 2 fps with the cam ?

  • @pa4761
    @pa4761 4 ปีที่แล้ว

    is it possible to run this on googles GPU?

  • @iai9769
    @iai9769 4 ปีที่แล้ว

    First of all i wanna thank you so much for your great work and effort I really appreciate what you do❤️
    I have a question, is this code work on google colab in the same way ?? And thank you❤️

  • @amarnathg4537
    @amarnathg4537 4 ปีที่แล้ว +1

    when im trying to run this line "!./darknet detector train /content/darknet/data/obj.data /content/darknet/cfg/yolov3-custom2.cfg darknet53.conv.74 -dont_show" in colab it shows like this "/bin/bash: ./darknet: Is a directory". please help me

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      this is because you must be in the wrong directory. The command only works in the darknet directory so just run "%cd darknet" in the line above your training command and it should now work!

    • @amarnathg4537
      @amarnathg4537 4 ปีที่แล้ว +1

      Thank u so much...it's working..! Keep going

  • @장지수-s9k
    @장지수-s9k 3 ปีที่แล้ว

    How can I track people in real-time with web cam?

  • @kavitapandey5517
    @kavitapandey5517 2 ปีที่แล้ว

    Where is Custom_last_weights filee..? My project is stuck now anyone please help me it's my college finall year project

  • @akhil4441
    @akhil4441 4 ปีที่แล้ว

    Hi AI guy,
    After converting yolov3_custom weights to tensorflow model, by running the below code -
    python detect_video.py --weights ./weights/--yolov3-custom.tf-- -- video 0 -num_classes 2 --classes ./data/labels/obj.names
    It shown me the below error at last:
    raise ValueError("Shapes %s and %s are incompatible" % (self, other))
    ValueError: Shapes (255,) and (21,) are incompatible
    Please help.

    • @akhil4441
      @akhil4441 4 ปีที่แล้ว

      Hello AI Guy,
      Please assist me here

  • @thinkplays07
    @thinkplays07 4 ปีที่แล้ว

    It is giving me an dll error plzz help

  • @rob26r
    @rob26r 4 ปีที่แล้ว

    Anyone know how to fix this error: Shapes error.
    File "C:\Users
    ob26\anaconda3\envs\yolov3-gpu\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 1115, in assert_is_compatible_with
    raise ValueError("Shapes %s and %s are incompatible" % (self, other))
    ValueError: Shapes (255,) and (18,) are incompatible

  • @anji.reddy.akkala
    @anji.reddy.akkala 4 ปีที่แล้ว

    how to add one more class on custom trained model?

    • @akhilgkrishnan4469
      @akhilgkrishnan4469 4 ปีที่แล้ว

      Yeah I also want this

    • @akhilgkrishnan4469
      @akhilgkrishnan4469 4 ปีที่แล้ว

      And I. Need to know how train the custom trained model with more dataset..

    • @anji.reddy.akkala
      @anji.reddy.akkala 4 ปีที่แล้ว

      @@akhilgkrishnan4469 it is not possible to add just one class on top of previously trained model.
      You need to retrain all classes again

    • @akhilgkrishnan4469
      @akhilgkrishnan4469 4 ปีที่แล้ว

      Is possible to add more dataset to current trained model...

    • @anji.reddy.akkala
      @anji.reddy.akkala 4 ปีที่แล้ว

      @@akhilgkrishnan4469 retrain your model again with new data ( old + new )

  • @daniyalwaheed640
    @daniyalwaheed640 3 ปีที่แล้ว

    Hi, AI Guy kindly develop a fire detection system by using the yolov3 model with live stream

  • @ravindrakumarambati9194
    @ravindrakumarambati9194 4 ปีที่แล้ว

    thanks Dude

  • @fanelvasile
    @fanelvasile 4 ปีที่แล้ว

    Hello AI Guy. Great work helping everyone to learn AI. How can I connect with you for future, possible collaboration? Thanks, fanel

  • @samflynn6004
    @samflynn6004 4 ปีที่แล้ว +2

    So I have successfully trained my own dataset using the training in the cloud video and have obtained my pretrained weights file. I ran the following command python load_weights.py --weights ./weights/yolov3_custom_last.weights --output ./weights/yolov3-custom.tf -num_classes 9 and recieved the folowing error: Traceback (most recent call last):
    File "load_weights.py", line 34, in
    app.run(main)
    File "C:\Users\tronn\Anaconda3\envs\yolov3-gpu\lib\site-packages\absl\app.py", line 299, in run
    _run_main(main, args)
    File "C:\Users\tronn\Anaconda3\envs\yolov3-gpu\lib\site-packages\absl\app.py", line 250, in _run_main
    sys.exit(main(argv))
    File "load_weights.py", line 21, in main
    load_darknet_weights(yolo, FLAGS.weights, FLAGS.tiny)
    File "C:\Code\Object-Detection-API\yolov3_tf2\utils.py", line 68, in load_darknet_weights
    conv_shape).transpose([2, 3, 1, 0])
    ValueError: cannot reshape array of size 49334 into shape (256,128,3,3)

    • @TheAIGuy
      @TheAIGuy  4 ปีที่แล้ว +1

      Looking into this for you.

    • @sysadmin9396
      @sysadmin9396 4 ปีที่แล้ว

      The AI Guy thank you. I didn’t let the whole training Finnish in the cloud. Stopped it at about 2k something iterations, I did test it on the cloud model and it did work. Used those weights on the conda environment and got that error. Also- I only used 49 images as my original dataset amount. Another thing - could there be some sort of mismatch with the config file and the python script that creates the tensor?

    • @sysadmin9396
      @sysadmin9396 4 ปีที่แล้ว

      The AI Guy and thanks man!

    • @sysadmin9396
      @sysadmin9396 4 ปีที่แล้ว

      The AI Guy hey any chance you found what caused this error? I’m thinking of going the full Linux route to see if I can get this all working.

    • @sysadmin9396
      @sysadmin9396 4 ปีที่แล้ว

      SO I gave in and went the Linux route. I was up until 3:00am in the morning but I have darknet and tensorflow all working perfectly. I am going to try to retrain my custom dataset in this environment now and will let you know how it went. Also, my problem might have been due toi an extra space in my classes.txt file. Going to make sure that is not the case.