Real-Time Object Tracking using YOLOv8 and DeepSORT | Vehicles Counting (Vehicles Entering& Leaving)

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

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

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

    🧑🏻‍💻 My AI and Computer Vision Courses⭐:
    📙 AI 4 Everyone: Dive into Modern AI with Llama 3.1 and Gemini (13$):
    www.udemy.com/course/ai-4-everyone-dive-into-modern-ai-with-llama-31-and-gemini/?couponCode=FREEOCTOBER
    📙 YOLOv9 & YOLOv10: Learn Object Detection, Tracking & WebApps (13$):
    www.udemy.com/course/yolov9-learn-object-detection-tracking-with-webapps/?couponCode=OCTOBER13
    📕 Learn LangChain: Build #22 LLM Apps using OpenAI & Llama 2 (14$):
    www.udemy.com/course/learn-langchain-build-12-llm-apps-using-openai-llama-2/?couponCode=OCTOBER13
    📚 Computer Vision Web Development: YOLOv8 and TensorFlow.js (13$):
    www.udemy.com/course/computer-vision-web-development/?couponCode=OCTOBER13
    📕 Learn OpenCV: Build # 30 Apps with OpenCV, YOLOv8 & YOLO-NAS (13$):
    www.udemy.com/course/learn-opencv-build-30-apps-with-opencv-yolov8-yolo-nas/?couponCode=OCTOBER13
    📗 YOLO-NAS, OpenAI, SAM with WebApps using Flask and Streamlit (13$): www.udemy.com/course/yolo-nas-object-detection-tracking-web-app-in-python-2023/?couponCode=OCTOBER13
    📘 YOLO-NAS The Ultimate Course for Object Detection & Tracking (13$): www.udemy.com/course/yolo-nas-the-ultimate-course-for-object-detection-tracking/?couponCode=OCTOBER13
    📙 YOLOv8: Object Detection, Tracking & Web Apps in Python 2023 (13$) : www.udemy.com/course/yolov8-the-ultimate-course-for-object-detection-tracking/?couponCode=OCTOBER13
    📚 YOLOv7 YOLOv8 YOLO-NAS: Object Detection, Tracking & Web Apps in Python 2023 (13$): www.udemy.com/course/yolov7-object-detection-tracking-with-web-app-development/?couponCode=OCTOBER13

  • @wositangaiaiai6416
    @wositangaiaiai6416 ปีที่แล้ว +31

    Hello, Muhammad Moin,I am a student of a Chinese university. Your Yolov8+deepsort project has greatly helped me with my graduation thesis. Thank you for your contribution in this field!

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

      Hi @Wositang, very happy to hear, and if you need any further help do let me know
      All the best for your future endeavors
      Thanks

    • @CoderInfo-wh1zq
      @CoderInfo-wh1zq ปีที่แล้ว

      ug or pg in chinese university

    • @CoderInfo-wh1zq
      @CoderInfo-wh1zq ปีที่แล้ว

      dear wositang aiaiai can you talk to me

    • @sahalbelam1134
      @sahalbelam1134 7 หลายเดือนก่อน

      what are y doing right now sir\
      \

    • @elianabboud8721
      @elianabboud8721 7 หลายเดือนก่อน

      Can you send me your thesis or the correct code

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

    thanks for the tutorial, its very helpful, but can you make a tutorial video for training custom dataset for detecting and counting vehicle and than the result is also save in csv file

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

    Hello, Muhammad Moin,the tracking folder inside the link cannot be found, can I ask you to help me?

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

    Great work, thank you so much

  • @AkdenAi
    @AkdenAi 7 วันที่ผ่านมา

    Great, why is the fps so low, how can I speed it up?

  • @曾奕琳
    @曾奕琳 11 หลายเดือนก่อน +1

    Hello, I am a Chinese student doing design. Your work has helped me a lot. I would like to ask if this can run on Mac?

  • @KangReposting
    @KangReposting ปีที่แล้ว +6

    hello sir, how do you get the Vehicle Count results to be output as a csv file?

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

      Got the answer ?

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

      After processing each frame you can update a dictionary or something like that registering unique ids (initializing a set object for example) and make a pandas dataframe to dump the results to a csv

  • @sriram-jp4xj
    @sriram-jp4xj ปีที่แล้ว +1

    the video is really helpful. a tutorial video deep sort would be really helpful.

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

      Hi @sri ram, yes will be uploading in next few days

  • @yolov-ib5te
    @yolov-ib5te ปีที่แล้ว

    Looking forward for more videos on YOLOv8

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

    Really appreciated sir, After using run command I have an issue like "[2023-01-14 22:56:37,481][root.tracker][INFO] - Loading weights from deep_sort_pytorch/deep_sort/deep/checkpoint/ckpt.t7... Done!" Can't see any inference video!

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

      Hi @Nvitus are you facing this issue on Windows or while running Google colab script

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

      @@muhammadmoinfaisal Sir actually I'm using Ubuntu 20.04. I had an issue while running Ubuntu local machine

    • @Nico-hf6hw
      @Nico-hf6hw ปีที่แล้ว

      I got the same issue!

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

      Hi @Nivitus I have updated the github repository please check it now you will not face this issue with you try on windows Linux it will work fine

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

      @@muhammadmoinfaisal Thank you so much! It's working

  • @mishitpatel
    @mishitpatel 8 หลายเดือนก่อน

    Thanks for the video. I have seen this exact example, many places. May I know the original contributors for this codebase? Appreciate your credits.

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

    hi how do we modify the code to only track person in the video file
    is there any option track only person class like yolo v7 had --classes 0 for the person

  • @michelhenrique1560
    @michelhenrique1560 4 หลายเดือนก่อน

    Nice video! It seems a bit slow, how could you improve the speed?

  • @yolov-ib5te
    @yolov-ib5te ปีที่แล้ว

    Great work as always

  • @Nico-hf6hw
    @Nico-hf6hw ปีที่แล้ว +1

    You are an absolute legend! you have a new sub. Can this be done in C++?

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

      Hi @Nico, yes it can be done but you have to make certain changes for this

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

    Such an amazing video! What should I do if I want to track an ID and know how long it has been present?Just like issuing some warnings to the terminal or server after the ID appears for more than 60 seconds.

  • @adampetit7020
    @adampetit7020 3 หลายเดือนก่อน

    Hi, after a few compatibility adjustments, the code works perfectly with the yolov8 model. However, when I want to use my model, I get the following error message: ModuleNotFoundError: No module named ‘ultralytics.nn.modules.conv’; ‘ultralytics.nn.modules’ is not a package.
    After some research, this error message is due to the ultralytics version that I use to train my model. Could you tell me how I can train my model?

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

    How can I count cars with two diagonal lines not horizontal lines?? please teach my how to do this

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

    i have seen a major chnages in the repo and unable to relate to this video, Moin can you specify some?

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

    kindly make a video on how to train multi object tracking model on visdrone dataset.

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

    Superb Sir But audio is only hearable from left side.

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

      Hi @Joart3, i will make sure to improve it in upcoming videos
      Thanks a lot

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

    Really helpful content.
    Can you tell me the best tracking method that I can use in current scenario. I wanted to know if ByteTrack is better than deepsort or vise versa

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

      Hi @Vishnu, from my analysis DeepSORT gives best results, but i am also working on creating a tutorial on ByteTrack Tracking as well and will be published soon

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

    is it possible to use a webcam and have a live feed as the source instead of a video clip?

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

      Yes, just remove the video path and add 0 over there to run it on Live Webcam

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

      @@muhammadmoinfaisal perfect. Also how do I make it run on my GPU? It seems to be running on my CPU. Is that possible?

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

    Hi, thanks for the great video. i have an issue with pytorch. the code only allow using torch 2.0.1 cpu. and if i install torch 2.0.1 cu118 which is cuda version. it encounter error. is the code didnt implement cuda backend?

  • @GangYuan-m1p
    @GangYuan-m1p 11 หลายเดือนก่อน

    my friend ,why is this a problem
    File "predict.py", line 22, in
    import ultralytics.yolo.engine.predictor
    ModuleNotFoundError: No module named 'ultralytics.yolo'
    can't find 'ultralytics.yolo'
    why?

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

    Hi I cloned the repo but i do not see the tracking and tracking_vehicle_count files in the repo even the repo instructions have changed can you please assist

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

      HI @Aleshan, yes the instructions have changed a bit, please review the steps to run code in the github repo to run the tracking and tracking_vehicle_counting

  • @pawansharma-mi6ce
    @pawansharma-mi6ce 8 หลายเดือนก่อน

    make video on vehicle on the basic of direction in unsignalized interasection

  • @ikadekriyanjudwikaputra_2i289
    @ikadekriyanjudwikaputra_2i289 4 หลายเดือนก่อน

    Halo,, can you make vehicle stop detection with Yolo v8 n deepsort?

  • @Zinab8850
    @Zinab8850 8 หลายเดือนก่อน

    Can I count each vehicle time it took to pass the road?

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

    ​@Muhammad Moin how can we evaluate the performance of this model. Can you help with the same?

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

      hi, were you able to figure this out?
      if yes, could you please share?

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

    Thank you very much, it helped me a lot, how can I do so that it does not use the CPU and only the GPU?

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

      Hi Alek, Welcome, If you have GPU in your system then you can simply run the script and it will use GPU, but if you dont have GPU based system, try Google Colab it offers free GPU and colab file for this implementation is uploaded in the github repo. Do check it out and let me know if there is any issue

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

      @@muhammadmoinfaisal I implemented it but one part runs on the GPU and another on the CPU and consumes a lot of CPU

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

      @@muhammadmoinfaisal How do I disable the training function? I don't want the video of the results to be saved

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

    Hello brother! Can I use this for particle tracking by some modification?

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

    I couldn't find Tracking_Vehicle_counting.py, Where it's, Can you please help out this?

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

      Hi @Nvitus, please review the read me file in the github repo the step by step instructions to run the script is provided. In the updated github repo the tracking_vehicle_counting.py file is replaced by predict.py
      Thanks

  • @Simon-tw1vf
    @Simon-tw1vf ปีที่แล้ว

    Hello, I get following error when trying to install ultralytics. Can you help?
    (venv) D:\DeepSORT\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect>pip install ultralytics
    ERROR: Could not find a version that satisfies the requirement ultralytics (from versions: none)
    ERROR: No matching distribution found for ultralytics

    • @Matip2106
      @Matip2106 2 หลายเดือนก่อน

      Usually too old python version in my case

  • @Aima000
    @Aima000 3 หลายเดือนก่อน

    Plz help me because tomorrow is my demo at company because pycharm is not working on my laptop

  • @Apsarajay-d3o
    @Apsarajay-d3o 9 หลายเดือนก่อน

    After cloning the project i there are missing some files like tracking.py. what should i do?

    • @zzzzzyh8794
      @zzzzzyh8794 9 หลายเดือนก่อน

      i have th same question as you

  • @MohamedAdel-ln5lt
    @MohamedAdel-ln5lt ปีที่แล้ว

    i am student and my graduating project is on detection and tracking vehicles the detecting is done but the tracking is my problem can you me on how to just integrate this program into the GUI i have only 5 days

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

      You can check the YOLO-NAS Video Series and check the video tutorials on how to Create a Webapp using Streamlit and Flask by integrating YOLO-NAS with Flask and Streamlit

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

    YOLOv8s summary (fused): 168 layers, 11156544 parameters, 0 gradients, 28.6 GFLOPs
    Error executing job with overrides: ['model=yolov8s.pt', 'source=test3.mp4', 'show=True']
    Traceback (most recent call last):
    File "/Users/Mutsu/Desktop/yolov8/YOLOv8-DeepSORT-Object-Tracking-main/ultralytics/yolo/v8/detect/predict.py", line 315, in predict
    predictor()
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ultralytics/yolo/engine/predictor.py", line 158, in __call__
    return list(self.stream_inference(source, model)) # merge list of Result into one
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ultralytics/yolo/engine/predictor.py", line 199, in stream_inference
    self.results = self.postprocess(preds, im, im0s, self.classes)
    TypeError: postprocess() takes 4 positional arguments but 5 were given
    Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
    i got the error. can you fix it for me, please.
    Thank you, Mohammad.

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

      hi To Tuan did you follow all the steps provided in the github repo I just checked it on my system it's working fine plus you can also check the colab file as well it is a single click solution as well
      Thanks

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

      Hey I have same issue..were you able to resolve it?

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

    There is no tracking file in the yolo folder on your github page, where can I access this file.

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

      Hi @Akif, the file names have been updated can you please check the steps to run code in the github repo, it will help you
      Thanks

    • @-----zg1qc56
      @-----zg1qc56 6 หลายเดือนก่อน

      @@muhammadmoinfaisal could you please say the name because i checked all those folders, you play a game

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

    Hello Sir, while. training the model, the value for validation loss, is showing as 0,infinity and 0 for box, classification and dlf loss, how can I get accurate values as training loss

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

    How can we evaluate this model?

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

    hello sir, what if I want to use the model and class that I created myself?

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

      For this you will have to train the YOLOv8 model on the custom dataset first for a specific class

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

      @@muhammadmoinfaisal I have performed training using two classes (motorcycle and car), which resulted in the best.pt and last.pt models, as well as the argm.yaml file. So, how can I modify the model and classes in the code?
      I'm sorry because I'm a beginner

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

    Thank you verry much. Now, i don't want use: python tracking_vehicle_counting.py model=yolov8n.pt source="test.mp4" show=True. I want use API python , how to use?

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

      Hi @Nguyen, I will be making a separate video on it in next week

  • @elianabboud8721
    @elianabboud8721 7 หลายเดือนก่อน

    I am facing an error while run. Does anyone have the correct code?

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

    Can you show how to predict movement of object

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

    Even after running the final command in your repository I can't get the count of vehicles , I only get the one in the previous step

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

      Hi Aadrika, Please check the colab file, its a single click solution, and did you download the updated predict.py file from the Google drive for vehicle counting?

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

      Hey got it , also How can I modify the command you have given and run it on gpu ?

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

    please how can i use this with yolov7 can you explain please

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

    please is it necessary to import all of the files please

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

    Boa tarde, o meu está dando erro no "hydra" No module named hydra. como faço pra ajustar?

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

      Hi Vitor you are getting this error because you have skipped this step
      pip install -e '. [dev]'
      Please install dependencies

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

      ​@@muhammadmoinfaisal [Errno 2] No such file or directory - Hello Muhammad is giving this error, even though I follow all the step by step of your tutorial, can you help me please

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

    Some fellows have highlighted they are facing issue while running the script I have updated the github repo now it will be working fine either you try in windows, Linux, Mac
    Github Repo:
    github.com/MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking
    Thanks

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

    How can i get txt file of tracked objects

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

    thank you very much !!! can you pleaseee make a video on how to adapt this project to perform custom object tracking? (detect specific objects rather than the 80 objects detected by YOLO for exemple , or detect only people and track them ) ? that would be very helpful as it's the issue i am currently facing!

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

      Hi @Salma, i will be uplaoding a video tutorial on it today please check it

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

      @@muhammadmoinfaisal thank you !

    •  ปีที่แล้ว

      @@muhammadmoinfaisal I can't wait for the video!

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

    Hey there is no track file?

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

      Hi @Nabin Sharma, please check the github repo, and please have a look at the steps to run code, in the steps to run code, the detail instructions have been provided how to implement tracking plus tracking and vehicle counting as well. If you have any issue let me know
      github.com/MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking
      Thanks

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

    How to run this on gpu ?

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

      Hi @Aadrika bhargava, to run on GPU please follow the same steps as you are following for CPU, but please make sure that you have Torch with GPU enabled

  • @bmumut
    @bmumut 8 หลายเดือนก่อน

    The more I solve it, the more errors I encounter. it does not work

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

    Hello @Muhammed Moin,
    How can i place multiple lines if it where for a junction from 4 different direction.
    Thank you in advance, and sir I have sent you an email thank you in advance.

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

      Hi Darn, I might have missed your email, can you please resent it
      and tutorial for 4 different direction is coming by the end of this week or in next week start, if you have any video on which you want me to test, please send me on the email. m.moinfaisal@gmail.com

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

    i tried to use my own trained .pt file to perform tracking. i solved one BUG with pip install ultralytics==8.0.0 but it will cause a new problem which is "ModuleNotFoundError: No module named 'ultralytics.nn.modules.conv'; 'ultralytics.nn.modules' is not a package; Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace."

  • @Nico-hf6hw
    @Nico-hf6hw ปีที่แล้ว +1

    Hello thanks allot for this but im getting an issue while Loading the video:
    This what I wrote on the cmd console: python tracking.py model=yolov8l.pt source="test3.mp4" show=True
    This is what I got: Loading weights from deep_sort_pytorch/deep_sort/deep/checkpoint/ckpt.t7... Done!

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

      Hi @Nico I have updated the github repository please check it now you will not face this issue with you try on windows Linux it will work fine

    • @Nico-hf6hw
      @Nico-hf6hw ปีที่แล้ว

      @@muhammadmoinfaisal Hey I tried to run it. But there are som other issues. PS C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect> python predict.py model=yolov8n.pt source="test3.mp4" show=True
      [2023-01-17 20:33:55,262][root.tracker][INFO] - Loading weights from deep_sort_pytorch/deep_sort/deep/checkpoint/ckpt.t7... Done!
      Ultralytics YOLOv8.0.3 Python-3.9.15 torch-1.13.1+cpu CPU
      Fusing layers...
      YOLOv8n summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs
      Error executing job with overrides: ['model=yolov8n.pt', 'source=test3.mp4', 'show=True']
      Traceback (most recent call last):
      File "C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\predict.py", line 252, in predict
      predictor()
      File "C:\Users
      ico_\anaconda3\envs\SecureVision\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
      return func(*args, **kwargs)
      File "c:\users
      ico_\documents\yolov8-deepsort-object-tracking\ultralytics\yolo\engine\predictor.py", line 189, in __call__
      s += self.write_results(i, preds, (p, im, im0s))
      File "C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\predict.py", line 234, in write_results
      outputs = deepsort.update(xywhs, confss, oids, im0)
      File "C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\deep_sort_pytorch\deep_sort\deep_sort.py", line 31, in update
      detections = [Detection(bbox_tlwh[i], conf, features[i],oid) for i, (conf,oid) in enumerate(zip(confidences,oids)) if conf > self.min_confidence]
      File "C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\deep_sort_pytorch\deep_sort\deep_sort.py", line 31, in
      detections = [Detection(bbox_tlwh[i], conf, features[i],oid) for i, (conf,oid) in enumerate(zip(confidences,oids)) if conf > self.min_confidence]
      File "C:\Users
      ico_\Documents\YOLOv8-DeepSORT-Object-Tracking\ultralytics\yolo\v8\detect\deep_sort_pytorch\deep_sort\sort\detection.py", line 30, in __init__
      self.tlwh = np.asarray(tlwh, dtype=np.float)
      File "C:\Users
      ico_\anaconda3\envs\SecureVision\lib\site-packages
      umpy\__init__.py", line 285, in __getattr__
      raise AttributeError("module {!r} has no attribute "
      AttributeError: module 'numpy' has no attribute 'float'
      Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

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

      ​@@Nico-hf6hw same problem

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

      @@nathapongofficial5837 @Nico, I have just checked it, its working completely fine and didnot face any issue in my Local IDE, plus using the same steps mentioned in the github repo i implemented in Google Colab and it worked completely fine, the Google Colab File is uploaded in the Github repo, you can check and run it on you side, if you face any issue please let me know i am available

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

      HI @Nico @Nathapong Official, we have updated the github repo please check it now you will not face this issue
      Thanks

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

    python predict.py model=yolov8l.pt source="test3.mp4" show=True
    Traceback (most recent call last):
    File "predict.py", line 14, in
    from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, ops
    ImportError: cannot import name 'DEFAULT_CONFIG' from 'ultralytics.yolo.utils' (C:\Users
    aghu.dasigi\anaconda3\envs\YOLOv8-DeepSORT-Object-Tracking\lib\site-packages
    \ultralytics\yolo\utils\__init__.py)
    Sentry is attempting to send 2 pending error messages
    Waiting up to 2 seconds
    unable to find DEFAULT_CONFIG

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

      Hi @Dasgi, I have just run the script i didnot get this issue, can you please rerun or check the colab file again and let me know
      Thanks

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

      @@muhammadmoinfaisal Hi , this error was resolved when i used ultralytics from git hub repo instead of pip..the name was different ....Thank you

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

      @@dasigiraghu640 I also face the same problem how did you solve it can you explain please?

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

      @@oguzcanbekar2536 don't do pip install ultralytics... That's all

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

      @@dasigiraghu640 I'm getting the same error there was no DEFAULT_CONFIG , in the file also there wasnt mentioned any class about DEFAULT CONFIG

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

    Hello, Muhammad Moin,
    My name is Taha, I am a student at Exeter University, UK. I have a question about Yolo 8 can I have your email?