Skip to content

Where to place the downloaded dataset, and how should I reference it without getting FileNotFoundError? #1085

Answered by weeix
weeix asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to solve the issue by converting the relative path into an absolute path:

from ultralytics import YOLO

model = YOLO("yolov8n.yaml")
model.train(data="/fullpath/to/my/datasets/mydataset/data.yaml", epochs=5)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@glenn-jocher
Comment options

Answer selected by weeix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants