You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I converted coco data to yolov5 data and then tried to train yolov8 on it. However I get the error that "/data.yaml' does not exist". Looking at the stacktrace below I realised yolov8 is looking for a ".yaml" file and sahi is exporting as .yml file.
# Model and Datasetself.model=self.args.modeltry:
ifself.args.task=='classify':
self.data=check_cls_dataset(self.args.data)
elifself.args.data.endswith('.yaml') orself.args.taskin ('detect', 'segment'):
self.data=check_det_dataset(self.args.data)
if'yaml_file'inself.data:
self.args.data=self.data['yaml_file'] # for validating 'yolo train data=url.zip' usageexceptExceptionase:
>raiseRuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) fromeERuntimeError: Dataset'/tmp/pytest-of-jo/pytest-61/local_data0/datasets/200_300_0_1_0_1_0_2/yolov5_files/data.yaml'error ❌ '/tmp/pytest-of-jo/pytest-61/local_data0/datasets/200_300_0_1_0_1_0_2/yolov5_files/data.yaml'doesnotexist/home/jo/.cache/pypoetry/virtualenvs/birdmot-s5Dc3Lay-py3.9/lib/python3.9/site-packages/ultralytics/yolo/engine/trainer.py:126: RuntimeError
Here is the line of code in sahi which exports as .yml file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I converted coco data to yolov5 data and then tried to train yolov8 on it. However I get the error that "/data.yaml' does not exist". Looking at the stacktrace below I realised yolov8 is looking for a ".yaml" file and sahi is exporting as .yml file.
Here is the line of code in sahi which exports as .yml file.
sahi/sahi/utils/coco.py
Line 1381 in 26acb89
Not sure if you are aware of this but probably you want to change the line of code in order to export as .yaml file?
Beta Was this translation helpful? Give feedback.
All reactions