Instance Segmentation in 12 minutes with YOLOv8 and Python

preview_player
Показать описание
YOLOv8 is the latest installment of the highly influential YOLO (You Only Look Once) architecture. YOLOv8 was developed by Ultralytics, a team known for its work on YOLOv3 and YOLOv5.

Following the trend set by  YOLOv6 and YOLOv7, we have at our disposal object detection, but also instance segmentation, and image classification. The model itself is created in PyTorch and runs on both the CPU and GPU. As with YOLOv5, we also have a number of various exports such as TF.js or CoreML.

In this video, I'll take you through a step-by-step tutorial on Google Colab, and show you how to train your own YOLOv8 instance segmentation model.

Chapters:

0:00 Introduction
1:03 Setting up the Python environment
3:08 Inference with YOLOv8 model pre-trained on COCO dataset
5:42 Download custom dataset from Roboflow Universe
7:26 Train YOLOv8 model on custom dataset
9:16 YOLOv8 model evaluation
11:05 Custom YOLOv8 model inference
11:43 Conclusion

Resources:

Рекомендации по теме
Комментарии
Автор

Thank you for uplaoding this :). I have started researching on this and this is such a great intro!

Pingu_astrocat
Автор

Very helpful video. Thank you for your works.
I am just wondering after testing and you will have a set of images contain bounding box and instance segmentation.
Can we using those images to turn it into binary mask. From that we can compare those masks from the model versus our ground truth?

baoang
Автор

Thank you, but i would like if there is a method that can help to count objects in images ?

ikramessafi
Автор

Dear Peter,
Could you please share the link of the Coral Segmentation 4 dataset used in this tutorial?

vikashkumar-cree
Автор

Hey! Thats really great, I have a question if I want to extract the segemented masks from the predictions is there any way?

pushpendrakushwaha
Автор

Thank you for the content! I really enjoyed it. Could you please show how to get a mask array of an specific segment (object).

mehrshad
Автор

Great video. Is it possible to determine for two overlapping objects which one is behind the other one ?

dimitrijemitic
Автор

thanks for the video. How to display in the inference only the mask and confidence without bounding box?

ELOUNGOUAmine
Автор

is it possible to use yolov8 seg model only for specific classes? (ex: only segment people in the image)
Thank you for the video!

FatemehZaremehrjardi
Автор

Amazing as always
but can we upload this instance segmentation model to roboflow like with the object detection ?

body
Автор

Nice video, thanks for the content. Would it be possible to get the coordinates of the segmented instance and use them to calculate an area? (assuming I could estimate the length/height of the real object)

mfs
Автор

Tell us what is your name now?😅
Thanks for sharing!!! One thing that I don't like about Roboflow is has too many steps to try out something new. I know in a big project you need a good organisation, but sometimes you just need to try out stuff and then if it works as expected being organised.

titusfx
Автор

How do you integrate this into android project like for example a food object detection + instance segmentation from an image particularly working with an imageview component?

th.convict
Автор

Hey, I wanted to know whether I can use the yolov8 model and list of objects which it can detect stored in a file, say objects.txt and use it for custom instance segmentation instead of fine-tuning the model on a custom dataset?

TY_B__SejalParate
Автор

hi. after following the instance segmentation tutorial with yolov8, I found that the train mode output contained one confusion matrix. My question is, does the CM belong to the box or the mask? Thank You

TitoWPurnomo
Автор

what is the use case of instance segmentation? when does it being used rather than object detection?

gbo
Автор

Can you please explain on how to know the accuracy of my model i trained using yolov8?
Also explain the precision recall curve, f1 score and confusion matrix. I need for my project immediately within 2 days and i can't find any help regarding that.

adnanahmad
Автор

Thank you for the content, but I have a question. Is it possible to combine model Yolo-Nas and the part of segmentation in Yolov8-seg to model YoloNas-seg ?
Thank you.

thanhphatpham
Автор

Good Work By you always. It would be more helpful if you can add also python code as this is only yolov8 cli commands.

ganeshjoshi
Автор

Thank u for the video, but can this yolov8 segmentation be exported into tf lite? And if so how can it be tested or deployed on android?

abangfikri