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
I have searched the Roboflow Notebooks issues and found no similar bug report.
Notebook name
Yolov8 custom dataset, but using the python api. Dataset path is apparently incorrect. I know I've had this issue in the past
Bug
I download the dataset
rf=Roboflow(api_key="xx")
project=rf.workspace("org").project("simulated-data")
version=project.version(1)
dataset=version.download("yolov8")
# validate locationdataset.location=='/teamspace/studios/this_studio/simulated-data'# Now I should be able to train with # Loading a pretrained modelmodel=YOLO('yolov8l.pt')
# Training the modelmodel.train(
data=f'{dataset.location}/data.yaml', # this is correct
...
)
But I get an error:
RuntimeError: Dataset '/teamspace/studios/this_studio/simulated-data/data.yaml' error ❌
Dataset '/teamspace/studios/this_studio/simulated-data/data.yaml' images not found ⚠️,
missing path '/teamspace/studios/this_studio/simulated-data/simulated-data/valid/images'
Why is it looking in a nested directory?
Environment
Lightning studio
Minimal Reproducible Example
See above
Additional
No response
Are you willing to submit a PR?
Yes I'd like to help by submitting a PR!
The text was updated successfully, but these errors were encountered:
optional step : validate that data is downloaded under datasets directory
!ls -ltr $HOME/datasets
dataset.location will point to a directory like simulated-data-1 under $HOME/datasets
Run Training
# Loading a pretrained model
model = YOLO('yolov8l.pt')
# Training the model
model.train(
data = f'{dataset.location}/data.yaml', # this is correct
...
)
Search before asking
Notebook name
Yolov8 custom dataset, but using the python api. Dataset path is apparently incorrect. I know I've had this issue in the past
Bug
I download the dataset
But I get an error:
Why is it looking in a nested directory?
Environment
Lightning studio
Minimal Reproducible Example
See above
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: