Instance segmentation YOLO v8 | Opencv with Python tutorial

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 45

  • @stevenotarealnamematthews140
    @stevenotarealnamematthews140 11 месяцев назад +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 6 месяцев назад

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

    • @DanhTienB
      @DanhTienB 5 месяцев назад

      @@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

  • @joshteixeira6750
    @joshteixeira6750 Год назад +1

    Another great one!

  • @anurag4794
    @anurag4794 Год назад +1

    Amazing!

  • @RoboSidekick
    @RoboSidekick Год назад +1

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

  • @dlep9221
    @dlep9221 Год назад +1

    Nice ! Thanks

  • @JEREMYCLEEMAN
    @JEREMYCLEEMAN 7 месяцев назад +1

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

  • @Gambinaceo
    @Gambinaceo Год назад +1

    Awesome, thanks

  • @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.

  • @emmanuelsheshi961
    @emmanuelsheshi961 Год назад +1

    thank you so much

  • @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!

  • @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?

  • @saqibqamar9270
    @saqibqamar9270 Год назад +1

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

  • @md.sabbirrahmanakash7083
    @md.sabbirrahmanakash7083 11 месяцев назад

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

  • @edgarguzman2709
    @edgarguzman2709 Год назад +1

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

  • @ahmadkhattab4830
    @ahmadkhattab4830 Год назад

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

  • @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!

  • @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.

  • @abdurrahmana.7121
    @abdurrahmana.7121 Год назад

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

  • @Yonglee7015
    @Yonglee7015 Год назад

    Can you crop the ball based on polygon?

  • @sarahnawoya498
    @sarahnawoya498 Год назад

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

  • @sasanmir8122
    @sasanmir8122 11 месяцев назад

    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 5 месяцев назад

    Where can I find the yolo_segmentation.py file?

  • @musthaqahmed4497
    @musthaqahmed4497 Год назад

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

  • @GrigoriKog
    @GrigoriKog Год назад

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

  • @raghavsharma4398
    @raghavsharma4398 Год назад

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

  • @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. :)

  • @russellseangonzalve4566
    @russellseangonzalve4566 Год назад

    Does this work in Yolov5 model?

  • @nhatminhduong1741
    @nhatminhduong1741 Год назад

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

    • @Unkn0wnUs3rname
      @Unkn0wnUs3rname 5 месяцев назад

      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)

  • @mikhaildenisov5307
    @mikhaildenisov5307 Год назад

    If I use YoloV8 do I need to pay money ?

  • @shantilalzanwar8687
    @shantilalzanwar8687 Год назад

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

  • @shantilalzanwar8687
    @shantilalzanwar8687 Год назад +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 Год назад

      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 11 месяцев назад

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

  • @lazerusmfh
    @lazerusmfh Год назад

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