https://docs.ultralytics.com/zh/tasks/segment/#models
自动下载模型
from ultralytics import YOLO # Load a model model = YOLO("yolo11n-seg.pt") # load an official model #model = YOLO("path/to/best.pt") # load a custom model # Predict with the model results = model("https://ultralytics.com/images/bus.jpg") # predict on an image # Access the results for result in results: xy = result.masks.xy # mask in polygon format xyn = result.masks.xyn # normalized masks = result.masks.data # mask in matrix format (num_objects x H x W)
yolov11-seg模型训练
https://blog.csdn.net/qq_42589613/article/details/146162941
一、软件核心功能介绍及效果演示
软件主要功能
1. 可进行遥感视角地面房屋建筑检测分割,分割一个类别:建筑;
2. 支持图片、图片批量、视频及摄像头进行检测分割;
3. 可显示总分割面积占比以及单个目标的分割面积占比;
4. 界面可实时显示目标位置、分割结果、分割面积占比、置信度、用时、长宽等信息;
5. 结果保存:支持图片、视频及摄像头的分割结果保存;