RuntimeError: Dataset ‘coco128-seg.yaml‘ error ❌ mapping values are not allowed

关于Linux和windows的深度学习训练时,数据加载配置文件yaml的映射格式不同

在服务器Ubuntu中yaml' error ❌ mapping values are not allowed here

还有路径“/”和“\”的区别

windows

train: yolov8\ultralytics-main\mydata\images\train
val:   yolov8\ultralytics-main\mydata\images\val
nc: 2
# Classes
names:train
  0: dog
  1: cat

  

Linux

train: /root/miniconda3/ultralytics/mydata/images/train
val:   /root/miniconda3/ultralytics/mydata/images/val
nc: 2
# Classes
names: ['dog','cat']

你可能感兴趣的:(深度学习,YOLO,深度学习)