Official YOLO v7 Instance Segmentation COMPLETE TUTORIAL | Windows & Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025

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

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

    I really love the way of your teaching, I will be waiting for your uploads. Please provide the video for how to do object tracking from scratch. It will be helpful for the learners.

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

      It will be uploaded by the end of this month.

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

      @@TheCodingBug Thank you so much 🙂

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

      @@TheCodingBug Really happy to hear that video is coming up. I started to learn about this field and your videos are helping me a lot.

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

    i have been do same thing with ur tutorial but why only image showing, not show bonding box or segmentation over the image

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

    I am getting pred, and pred_masks as None, None. what could be the reasons for this?

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

    Thank you very much for your video. Could you please tell me how to get constant color of the mask of the detected objects in a video?

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

      Instead and of random color generation for each detection in the detect function, define a fixed color for each class and then use that for each class id in detections.

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

      @@TheCodingBug Yeah, but since it is a instance segmentation, we'll have multiple instances belongs to one class. In that case, we need to have four constant colors of four persons without changing.

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

      @@TheCodingBug I tried it. Since, cars are belongs to one class, all cars are appearing in same color. But I need every instance of a object calls have a constant color through out the video. So, could you please help me to get it?

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

    hello, thanks for your video, i have one question here, as detectron2 has already done the segmentation, why we still need yolov7 ? Does yolo v7 do the segmentation individually or it borrows the segmentation part from detectron2 ?

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

    Great video! I am running this on CPU only and it seems to throw an error of incompatible tensors, do you know how i can fix this?
    RuntimeError: Input type (torch.FloatTensor) and weight type (torch.HalfTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
    I need to change the code in the function processFrame(image) ?

    • @mehmethalıcı010
      @mehmethalıcı010 2 ปีที่แล้ว +1

      +1

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

      Hello,
      The issue is that the model must be cast into float type. in __main__ you have the following lines of code:
      if half:
      model = model.half()
      You must add the following lines:
      else:
      model = model.float()
      It should work after that.

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

    Thank for the video.
    May I know is it possible to train custom 'mask.pt' file? I need it for my school work. Thx

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

    u know why i failed isntall detectron2? that error with pycocotools

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

    Thank u very much for the tutorial, but i have a question on if i can deploy this segmentation model on android? Is there a way for that to be done?

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

    Excelent content, please do Tracking / counting with this yolov7, thanks !

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

      Tracking tutorial is already made. I couldn't upload due to some health issues. Will post it by Tuesday.

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

    Thanks for your video, it really help a lot.
    I am wondering what is the function of parameter "recompute_scle_factor...", and if I want to consistent the color for each instance object how can I do ?
    Appreciation for your willingness to share your thoughts.

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

    First of all thank you for such neat teaching... How to do detection for custom objects??

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

      I will make the tutorial in the next month on custom dataset.

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

    Do you offer training hours via Teams against payment?

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

    Thanks for the Video but apart from Webcams, can we also detect from an external camera with an RTSP link? I would like to apply instance segmentation for an external camera (not Webcam) and would be really helpful if it would work!

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

      Yes. Just use rstp url as source for video instead of mp4 file.

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

    Thanks a lot for this, man. ❤

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

    would u help to to draw mask only body outline not fill the body with color

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

    how to training and deploy model

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

    @TheCodingBug
    Thanks for the video! But, in line 34, when you call model on image, the output is a tuple instead of a dictionary and thus it gives error in line 36 when you compute inf_out, train_out, ...
    Can you please help?

    • @巫鎔輿
      @巫鎔輿 2 ปีที่แล้ว

      do you solve the question? I have same error, can tell me ? thank you

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

    Thanks for the video.
    i got error NameError: name 'model' is not defined while make def processFrame(image):
    output = model(image) on line 34. any solution?

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

      Check spellings... It's not "model".

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

      @@TheCodingBug what correct spelling then?

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

      @@TheCodingBug cuz on your video, it said output = model(image)

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

    is the difference much to the yolov7?

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

    Thanks a lot for this. I have a question that how can I get prediction keypoints or coordinates of segmentation from the result ?

  • @vitorvasconcelos.o8343
    @vitorvasconcelos.o8343 2 ปีที่แล้ว

    Hey is it possible to train this implementation in a custom dataset? the same way we train yolov7 for object detection?

  • @seul-kiyeom6222
    @seul-kiyeom6222 2 ปีที่แล้ว +1

    Nice video. Is there any way to do image classification based on yolov7 easily?

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

      Yes. I'll make a video next month.

    • @seul-kiyeom6222
      @seul-kiyeom6222 2 ปีที่แล้ว +1

      @@TheCodingBug thank you very much!

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

    Thanks for the detailed and useful explanation. I am searching for a way to recognize all objects but then apply segmentation to hide persons. Is there a way to apply segmentation selectively using yolov7? Thanks in advance

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

    Hi! How to reparameterize a model and convert to onnx?

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

    Thank you so much. How do I train custom instance segmentation?

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

      As far as I know, the train.py in the mask-branch is still under development due to unresolved detectron2 dependencys. If you want to train on your custom dataset you should use the u7-Seg branch. It has been tested successfully and shows similar results to the mask-branch.

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

    Hi, I am trying to do instance segementation with yolov7 using custom dataset, but I am struggling to convert coco style annotations to yolo style annotations. I know how to convert bounding boxes, but how to convert the segmentation list or RLE?

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

      Hello sir have you already converted coco format annotation to Yolo style annotation? Because it's also my problem now, Thank You sir.

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

    I need to have gpu for instance segmentation ???

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

      If you want a decent FPS, then yes.

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

      but sir detectron will not install in cpu I think??

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

      @@joart333 I recall that it'll throw an error when installing pycocotools.... I will check that on the weekend and let you know.

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

      @@TheCodingBug OK sir

  • @김진수-e6l
    @김진수-e6l 2 ปีที่แล้ว +1

    Hi sir, thankt for uploading great video. I have some errors when I load 'yolov7-mask.pt' I got these errors (torch.load('yolov7-mask.pt') -> AttributeError: Can't get attribute 'Merge' on ). But if I load 'yolo7-tiny.pt' error does not occur and the code runs very well. How can I load 'yolov7-mask.pt' like your videos?

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

      Make sure your version of torch is the same as mine.

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

      @@TheCodingBug I am facing the same error although i installed the same torch and cuda version same like you (torch 1.11 and cuda 11.3), how to solve this ?

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

      have you found a solution to this issue?

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

    We want to collaborate! What is the best email?

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

    0:18

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

    hello sir, while installing the detectron2 I get this error
    5 errors detected in the compilation of "D:/Pothole_detection/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu".
    nms_rotated_cuda.cu
    error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.6\\bin\
    vcc.exe' failed with exit code 1

    • @666zrock
      @666zrock 2 ปีที่แล้ว

      You should install ninja before detectron : conda install -c conda-forge ninja

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

    i want yolov5 deepsparse custom training tutorial using collab. and convert .pt to .onnx and run .onnx for detection. if you do this perfectly i will give DONATE 1000rs. NO CAP!

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

    Great video, but why is it so slow? I thought Yolov7 makes up to 150 fps?

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

      That's on V100 GPU using YOLOV7 tiny.

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

      @@TheCodingBug ok thanks!

  • @jisi.techtooltips
    @jisi.techtooltips 5 หลายเดือนก่อน

    hi. I followed the instruction but why am I getting this error.
    Traceback (most recent call last):
    File "C:\Users\jisi\Desktop\YoloV7_Instance\yolov7-mask\segment.py", line 67, in
    onImage()
    NameError: name 'onImage' is not defined
    tia

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

      The method onImage have wrong spellings or you've missed something there