Instance segmentation YOLO v8 | Opencv with Python tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Build your own AI vision solutions: pysource.com/c...
    The new version of YOLO v8 by Ultralitycs has recently been released and thanks to its flexibility of use it allows you to classify, detect, and segment objects.
    In today's exercise, I'm going to show you how to do object segmentation the easy way.
    Blog: pysource.com/2...
    ➤ Courses:
    Full Computer Vision course: pysource.com/o...
    Training Mask R-CNN PRO (Notebook + Mini-Course): pysource.com/m...
    Blueprint: pysource.com/b...
    ➤ Follow me on:
    LinkedIn: / pysource
    ➤ For business inquiries:
    pysource.com/c...
    #YOLOv8 #segmentation #deeplearning

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

  • @pysource-com
    @pysource-com  9 วันที่ผ่านมา

    🔥Learn how to build your own AI vision solutions: pysource.com/community

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

    FYI I had to change file yolo_segmentation.py line 18 from "result.masks.segments" to "result.masks.xyn" to make it work. Seems like there are some different names depending on which ultralytics package you have installed. Hope that helps.

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

      You should change "result.masks.segments" to "result.masks.data" to make it correctly work.

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

      @@hoanglong1323 cho em hỏi thây cái đó sao vẫn ko hoạt động vây ạ

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

    Your tutorial are so easy to understand. Thanks for such tutorials. Thank you Sergio Canu🤗

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

      I have few questions, can we create our own class ? and can you upload it for the segmentation in videos also

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

      True

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

    thank you for this video. we are also working on depth mapping with yolo v8 and Open CV.

  • @neverninetofive
    @neverninetofive ปีที่แล้ว +7

    Thank you very much for this video, it’s really helpful! Could you maybe do a tutorial on how to train yolov8 with custom data?

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

      we will have one soon on our channel.

  • @JEREMYCLEEMAN
    @JEREMYCLEEMAN 4 หลายเดือนก่อน +1

    How can you measure the area of the ball based on the segmentation provided?

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

    Another great one!

  • @anurag4794
    @anurag4794 8 หลายเดือนก่อน +1

    Amazing!

  • @dlep9221
    @dlep9221 10 หลายเดือนก่อน +1

    Nice ! Thanks

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

    Hi, thank you for sharing the video! How to put color inside the ball instead of the borderline, as shown in the video? In case I don't want to show people about the type of it. Thanks!

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

    Thank you for your video, it is very helpful. Could you make about how can only get masks in the image?

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

    it is very useful for me. and i also trained yolov8 with my own data, all some round droplets, but after I segment it, its polygon had a lot of very obvious straight lines and not a circle. can yolo fix this problem?

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

    Hi, thank you for taking the time to do this video! I'm constantly amazed at how "simple" things are getting in terms of image processing.
    I was wondering if YOLO* could be used to identify unknown objects. As you well know YOLO has a defined list of objects that the model was trained for. Could YOLO be adapted/trained for non-modeled objects? I'm working on a robot platform with a forward facing cam pointed downward at a 30 degree angle. There's no fixed list of objects the robot will encounter blocking its way, so I can't train for everything... My goal is "simple" I'm going to move the robot forward and try to navigate around objects that are in the robot's path. YOLO may be overkill here, but I'm trying to learn OpenCV it seemed like a good start. Any alternative suggestions/examples would be more than appreciated! Thank you again for making a complex topic easy to understand.

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

    Awesome, thanks

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

    Excellent tutorial. I'm trying to create an automatic detection of several species of fish in a static image (a box with several fish). The final idea is to automatically detect different species, classify them and also do an automatically measure of the fish. What videos do you recommend to try to create something similar? Thanks!

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

    Your tutorials are very nice. Could you make a video for an object tracking with andriod camera if it is possible?

  • @md.sabbirrahmanakash7083
    @md.sabbirrahmanakash7083 8 หลายเดือนก่อน

    What is the best model to identify and find the area of defects of leather?

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

    Awesome work, Thank you.
    I would like to create object masks after the segmentation. Is it possible?

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

    thank you so much

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

    Can you do a tutorial on how to train the YoloV8 algorithm?

  • @abdurrahmana.7121
    @abdurrahmana.7121 ปีที่แล้ว

    How can i train custom dataset based segmentation model on yolov8. Please add a tutorial on colab.

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

    Can you crop the ball based on polygon?

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

    How about an interface so other people can see the results.Is that possible?

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

    can someone help me out i want use yolo v8 seg for lane detection and i don't know how to get the center polyline between the two polylines

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

    Where can I find the yolo_segmentation.py file?

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

    Hi, where is the link to download the yolo_segmentation file?

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

    What version of python are you using? I had trouble with 3.11. I think pytorch doenst work on it

    • @pysource-com
      @pysource-com  ปีที่แล้ว +2

      I used python 3.9

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

      @@pysource-com thank you. I am installing this version to try again. :)

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

    How can i configure my GPU to run this code. I have GTX 1650.

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

    Does this work in Yolov5 model?

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

    If I use YoloV8 do I need to pay money ?

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

    This code gives error and not finding solution. Does anyone faced similar issue before ?

  • @shantilalzanwar8687
    @shantilalzanwar8687 10 หลายเดือนก่อน +1

    This code is giving below error :
    bboxes, classes, segmentations, scores = ys.detect(img)
    ^^^^^^^^^^^^^^
    File "C:\personal\AI ML\ImageSeg001\yolo_segmentation.py", line 18, in detect
    for seg in result.masks.segments:
    ^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'NoneType' object has no attribute 'segments'
    0: 448x640 1 sports ball, 494.7ms
    Speed: 3.0ms preprocess, 494.7ms inference, 1.0ms postprocess per image at shape (1, 3, 448, 640)
    Process finished with exit code 1

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

      Thanks for replying, now error is Error. nthreads cannot be larger than environment variable "NUMEXPR_MAX_THREADS" (8)
      0: 448x640 1 frisbee, 370.0ms
      Speed: 3.0ms preprocess, 370.0ms inference, 3.0ms postprocess per image at shape (1, 3, 448, 640)
      @@Asat48

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

      Try changing "result.masks.segments" to "result.masks.xyn". Does that help?

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

    i got an issue it said bus error(core dumped) after i had run the python file. Can someone help me please.

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

      Start with an easier project, or google the error. It's something basic, read the error, it gives info on whats wrong. Probably something with wrong/missing/wrong version of package (module)

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

    Do you freelance work? Can I talk to you about some work with yolo and image processing? EDIT: I Emailed you.