本文介绍如何使用平台预置的YOLO模型
step 1:找到YOLO模型
选择GPU配置后,下拉页面至底部,在选择镜像–预置模型镜像,点击选择YOLO全系模型;

step 2:在快捷工具中打开
点开容器实例页面,在开机实例的快捷工具中,点击【Jupyter】

step 3:进入开发环境运行
进入Notebook开发环境,点击左下角的终端,进入实例的开发环境。

测试程序
from ultralytics import YOLO
# Load a model
model = YOLO("/weights/yolov8n.pt") # pretrained YOLO11n model
# Run batched inference on a list of images
results = model(["/sample/cat.jpg"]) # return a list of Results objects
# Process results list
for result in results:
boxes = result.boxes # Boxes object for bounding box outputs
masks = result.masks # Masks object for segmentation masks outputs
keypoints = result.keypoints # Keypoints object for pose outputs
probs = result.probs # Probs object for classification outputs
obb = result.obb # Oriented boxes object for OBB outputs
result.show() # display to screen
result.save(filename="result.jpg") # save to disk
复制以上测试程序的代码,如果正常运行,说明没问题。
模型地址:
平台模型路径是 /weights
推荐使用标注工具:
labelstudio、LabeLLmg或labelme
平台自带了labelstudio,在快捷工具中打开,登陆后就可以使用了(labelstudio官网地址:https://labelstud.io/guide/quick_start)


小贴士: