Incorrect Data Path in YOLOv8 Dataset Configuration
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
Línea de trabajo
Reproduce la descarga utilizando el cliente Python de Roboflow y el ejemplo de YOLOv8 proporcionado; después, inspecciona el TennisBallTracker-9/data.yaml generado y sus rutas de train, validación y test. Compara esas rutas con la estructura de directorios descargada y con la ruta de configuración de Ultralytics indicada; se considera terminado cuando un dataset recién descargado se puede entrenar sin editar manualmente data.yaml.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 629
- Forks
- 140
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 5
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de roboflow/roboflow-python
-
RLE segmentation mask visible in dataset thumbnail, but invisible in annotation preview/editor Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
roboflow/roboflow-python#505 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
roboflow/roboflow-python#433 ·
-
Dataset Download Stuck Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
roboflow/roboflow-python#429 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
roboflow/roboflow-python#427 · 1 comentario ·
-
Inability to upload raw bytes Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
roboflow/roboflow-python#426 ·
Todos los issues de roboflow/roboflow-python
Issues similares
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Abiertoarea: harness bug status: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Human-Agent-Society/reef#625 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
learningequality/kolibri#15351 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Name consistency Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eellak/triplestore#65 · 1 comentario ·