Object Tracking using YOLOv8 on Custom Dataset

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2023
  • Learn to track custom objects using YoloV8 and different Object Trackers.
    The detections generated by YOLOv8, a family of object detection architectures and models pretrained on the Boat dataset, are passed to the tracker of your choice. Supported ones at the moment are: StrongSORT OSNet, OCSORT and ByteTrack. They can track any object that your Yolov8 model was trained to detect.
    #####################################################################
    For queries: Comment in comment section or you can mail me at aarohisingla1987@gmail.com
    #####################################################################
    #objectdetection #objecttracking #pytorch #python
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @user-maomao-tsai
    @user-maomao-tsai ปีที่แล้ว

    Thank you for your great video @ AArohi

  • @Sunil-ez1hx
    @Sunil-ez1hx ปีที่แล้ว

    What an amazing video.. Worth watching. It again & again

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

    Best video of VOLOv8

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

    Thank you so much for sharing this video. It helped me a Lot. Kindly keep sharing ma`am

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

    Thank you so much mam! i have been waiting for this video for a long time

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

      I will upload the colab video tomorrow :)

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

      @@CodeWithAarohi okay thank you mam

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

    Is the data annotated seperately using annotation tools since it seems boat_yacht_dataset folder and dataset folder with train and valid(with labels and images) and simply train and val folders respectively.

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

    thank you so much

  • @MIGUEL-bv1qh
    @MIGUEL-bv1qh ปีที่แล้ว

    Well done!!. It’d be nice to incorporate counting for one class and multiple ones and saving results in csv, this is one of the challenge thing in CV

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

      Thankyou for the suggestion. Will try to cover the suggestion in upcoming videos 🙂

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

    Well done

  • @SP-db6sh
    @SP-db6sh ปีที่แล้ว

    Eagerly waiting for your video on using this yolov8 micel in drone to detect object real-time & send notification to db or other Kafka consumer !

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

    VEry nicely explained

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

      Thank you so much 🙂

  • @Anupkumar-cd6gv
    @Anupkumar-cd6gv ปีที่แล้ว

    Hello arohi, how we can use custom model.weight in production as i am working with yolov5 do we need clone whole official repo ?

  • @vipulupadhyay8726
    @vipulupadhyay8726 3 หลายเดือนก่อน +1

    I am using yolo v8 , with bytetrck , some time track Id change,could you please share configuration of bytetrack

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

    terima kasih ilmunya

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

    Thank you for this great video on how to prepare a dataset for feature extractor model! Is this the same way for ReID?

  • @SaimKhalid-wx2zv
    @SaimKhalid-wx2zv ปีที่แล้ว

    Thank You for sharing this, can we draw tracks too using this code?

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

    Thank you so much mam

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

    How can we use the yolo in the extremly large dataset i.e (like having 1 lakh images with more objects) ? Wouldnt it will be difficult to manually anotate the larger set..?

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

      Yes, It will be a time consuming process but you have to annotate the whole dataset. There are organizations who provide paid annotation services.

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

    I am getting unknown model error it mentions the model must be from resnet18,resnet34,resnet50…etc I have built my own weights for yolo weights and Reid weights kindly help me to solve this

  • @FREEFIREGAMER-iv8dx
    @FREEFIREGAMER-iv8dx 10 หลายเดือนก่อน

    Madam pls explain semi supervised learning techniques on yolov8

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

    Madam how to do the feature extraction of a dataset which has multiple classes.(Like Cats & Dogs). Here only having a single class which is boat class.

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

      Hello, did you have an answer to your question?

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

    Hello Maam, I am trying to use Yolo V8 for object detection through camera and along with that i want coordinates of the bounding boxes. Can you please guide me how can i do that?

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

      You can extract the coordinates of the bounding boxes by parsing the output of the YOLOv8 model.

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

    Thank you very much for these explanations, How can we organize our dataset for feature extration models if we have two classes for example?

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

    I am training object tracking model on visdrone dataset. I followed exactly same approach as mentioned in video. But while performing visualization in "visualize_model" function, it is giving error: `Invalid shape (3, 224, 224) for image data` in line: `plt.imshow(inputs.cpu().data[j])`. also the model so trained is getting rejected while performing the actual tracking..(saying it is not of resnet18 type).. Please let me know where I may be wrong..Thank you mam for providing a good resource in domain of object tracking.

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

      @CodeWithAarohi I think you need to use plt.imshow instead of only imshow since it will give error. Kindly do correct me if I'm wrong.

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

      If plt.imshow is working then use it. Otherwise as per your error: the error message indicates that the shape of the input tensor is (3, 224, 224). The first dimension (3) likely corresponds to the number of color channels in the image (e.g., red, green, blue), while the next two dimensions (224, 224) correspond to the height and width of the image.
      To fix this error, you may need to reshape your input data to match the expected shape of the plt.imshow() function. One way to do this is to use the transpose() function in PyTorch to change the order of the dimensions in your tensor: # Assume that "inputs" is your input tensor with shape (3, 224, 224)
      inputs = inputs.transpose(0, 2).transpose(0, 1) # Transpose the dimensions to (224, 224, 3)
      plt.imshow(inputs.cpu().data[j]) # Display the image

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

      @@CodeWithAarohi I use plt.imshow(inputs.cpu().data[j].T) # Display the image
      to make dimensions as (224, 224, 3) but now in the output the images are like film negatives which are not relevant to val dataset

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

      @Code With Aarohi, please share link of this notebook. I will cross check the code. Maybe I am wrong somewhere. Thank you!!

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

    Can you please tell me how to calculate the overall accuracy(SHOWING mAP score) of the particular trained yolov7 model in Google colab?

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

      from utils.metrics import ap_per_class
      # define the confidence threshold and IoU threshold for non-maximum suppression
      conf_thres = 0.25
      iou_thres = 0.45
      # define the test set of images
      test_images = ['path/to/your/test/images']
      # define the number of classes in your dataset
      num_classes = 1
      # generate predictions on the test set
      prediction = []
      targets = []
      for path, img, im0s, _ in LoadImages(test_images, img_size=640):
      img = torch.from_numpy(img).to(model.device).float()
      img /= 255.0
      if img.ndimension() == 3:
      img = img.unsqueeze(0)
      with torch.no_grad():
      prediction += model(img)[0]
      targets += LoadImages.detect(exists=True)[0][1]
      # calculate the AP per class
      metrics_output = ap_per_class(prediction, targets, plot=False, fname="precision-recall_curve.png", imgsz=imgsz)
      mAP = metrics_output['mAP'][0]

  • @waseemhaider5295
    @waseemhaider5295 5 หลายเดือนก่อน

    mam can you apply this code on person detection and tracking

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

    can i use json file as input?

  • @SimranSingh-cp2el
    @SimranSingh-cp2el ปีที่แล้ว

    hi! is your jupyter notebook available somewhere?

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

    can we also use that feature extractor to recognize humans individually?

    • @CodeWithAarohi
      @CodeWithAarohi  2 หลายเดือนก่อน +1

      Yes, feature extractors can indeed be used for recognizing humans individually

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

      @@CodeWithAarohi is this folders and code available in github by chance. bc its very important for my FYP research.🙂😊

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

      @@CodeWithAarohi is that code and folders available on GitHub by chance ?this project is very important for my FYP researches. thank you very much

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

    mam did you upload it to your github repo

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

    I have a doubt I trained my model but how to count number of object of that label

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

      Will try to cover in upcoming videos

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

      @@CodeWithAarohi please just try to explain or make as soon as possible it's urgent project 😅

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

    what is difference obect detection and object tracking

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

      Detection involves placing a bounding box around an object and tracking means determining whether that object appears in next frames and for how long, by assigning a unique ID to each object.

  • @user-kk9pp3cj6h
    @user-kk9pp3cj6h 5 หลายเดือนก่อน

    best_model_wts = copy.deepcopy(model.state_dict())---- this line takes infinite time to execute, pl help to reduce the time. Is it because of HD quality of images?

    • @CodeWithAarohi
      @CodeWithAarohi  5 หลายเดือนก่อน +1

      Reduce image size and batch size

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

    I have a problem where it says graph execution error..could you make a video on this?

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

      Pleas explain the error in more detailed way. I will try to help

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

      @@CodeWithAarohi mam I have a football dataset and I'm predicting the winner for a betting bot,I'm using the LSTM model ...on the first epoch it gives the error says "graph execution error"

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

    How to use custom dataset on real-time project? Can anyone guide me

    • @CodeWithAarohi
      @CodeWithAarohi  5 หลายเดือนก่อน

      The process I have explained in this video is for custom dataset.

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

    Please share the link of this feature extractor on pytorch official website

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

      pytorch.org/vision/stable/feature_extraction.html

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

    Hi Ma'am, Can you please share the code

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

    i couldn't find the guide in pytorch docs. can you share the code?

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

      pytorch.org/tutorials/beginner/introyt/modelsyt_tutorial.html

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

    Thanks!

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

    How predict movement of object

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

      Please elaborate your question

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

      @@CodeWithAarohi i want to identify object for example man then i want to predict that man go to right or left

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

    Can you please provide collab liink?

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

    can you please share the code

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

    Mam i need the dataset from this video can i get it from u please ..please reply mam

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

    Where is the Source Code or Git Repo Link Ma'am ?

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

      This code is not posted on Github.

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

    Dataset kahan hai ma'am. plz provide.

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

      You have to prepare dataset yourself.

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

    Can you share your folder link please🥹🥹

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

      This code is available for channel members (Contribution level 2)