# 测试安装是否正确 from ultralytics import YOLO # You only look once if __name__ == "__main__": # 不加这个语句,运行会出错 # 加载别人训练好的模型 model = YOLO("yolov8n.pt")