Incorrect Data Path in YOLOv8 Dataset Configuration
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- computer-vision, machine-learning
Direzione di ricerca
Riproduci il download utilizzando il client Python di Roboflow e l'esempio YOLOv8 fornito, quindi esamina il TennisBallTracker-9/data.yaml generato e i relativi percorsi di train, validation e test. Confronta questi percorsi con la struttura delle directory scaricata e con il percorso delle impostazioni di Ultralytics indicato; il lavoro è completato quando un dataset appena scaricato viene addestrato senza modificare manualmente data.yaml.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Report: Incorrect Data Path in YOLOv8 Dataset Configuration
Description
While using the Roboflow Python client to download a YOLOv8 dataset for a tennis ball tracking project, I encountered an issue with the generated data.yaml file. The file's paths were incorrectly set, leading to a RuntimeError when attempting to train the YOLO model.
Steps to Reproduce
Download the dataset using the Roboflow Python client:
from roboflow import Roboflow
rf = Roboflow(api_key="YOUR_API_KEY")
project = rf.workspace("denica-tran").project("tennisballtracker")
version = project.version(9)
dataset = version.download("yolov8")
from ultralytics import YOLO
model = YOLO('yolov8n.pt')
dataset_path ="TennisBallTracker-9/data.yaml"
model.train(data=dataset_path, epochs=5)
Observe the downloaded TennisBallTracker-9 folder with the standard YOLOv8 dataset structure.
Check the data.yaml file, which incorrectly references paths for training, validation, and test images.
Expected Behavior
The data.yaml file should correctly point to the respective image directories within the dataset folder.
Actual Behavior
The data.yaml file contains incorrect paths, leading to a RuntimeError when the YOLO model attempts to access the image directories:
RuntimeError: Dataset 'TennisBallTracker-9/data.yaml' error ❌
Dataset 'TennisBallTracker-9/data.yaml' images not found ⚠️, missing path '/.../android_figurine/datasets/TennisBallTracker-9/TennisBallTracker-9/valid/images'
Note dataset download directory is '/..../android_figurine/datasets'. You can update this in '/..../Ultralytics/settings.yaml'
TL;DR
The issue might be related to residual settings from a previous project (android_figurine) that seems to interfere with the current dataset configuration. It's unclear why the old dataset path is being referenced.
Temporary Solution
I modified the data.yaml file manually to correct the paths, which allowed the training to proceed successfully:
names:
ankle
court
elbow
eye
hand
head
hip
knee
net
nose
person
player
shoulder
tennis ball
tennis racket
nc: 15
path: /..../TennisBallTracker-9/
test: test/images
train: train/images
val: valid/images
Environment
Python version: 3.12
- Lingua principale
- Python
- Stelle
- 629
- Fork
- 140
- Merge medio
- 2g 2h
- PR unite (30g)
- 5
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di roboflow/roboflow-python
-
RLE segmentation mask visible in dataset thumbnail, but invisible in annotation preview/editor Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
roboflow/roboflow-python#505 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
roboflow/roboflow-python#433 ·
-
Dataset Download Stuck Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
roboflow/roboflow-python#429 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
roboflow/roboflow-python#427 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
roboflow/roboflow-python#426 ·
Tutte le issue di roboflow/roboflow-python
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·