instance-segmentation computer-vision vision yolo yolov5

How to use

pip install -U yolov5
import yolov5

# load model
model = yolov5.load('fcakyon/yolov5n-seg-v7.0')

# set image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'

# perform inference
results = model(img)
yolov5 segment train --img 128 --weights fcakyon/yolov5n-seg-v7.0 --epochs 1 --device cpu