yolo5 执行 train.py 训练出错

yolo5 执行 train.py 训练出错

问题:assert nf > 0 or not augment, f'{prefix}No labels found in {cache_path}, can not start training. {HELP_URL}’AssertionError: train: No labels found in D:\python-project\datasets\xxx\labels\train.cache, can not start training.

解决:将图片的格式从png转为jpg

留下回复


Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/my-wordpress/index.php/2023/10/19/yolo5-%E6%89%A7%E8%A1%8C-train-py-%E5%87%BA%E9%94%99/) is not within the allowed path(s): (/www/wwwroot/my-wordpress/:/tmp/) in /www/wwwroot/my-wordpress/wp-content/plugins/matomo/classes/WpMatomo/AIBotTracking.php on line 175