roboflow / roboflow/roboflow-python
Wrong number of classes in data.yaml
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 629
- Forks
- 140
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
Description
After labelling all the images in the dataset, when generating a new dataset version and downloading it, the data.yaml created additional non-existing classes.
Steps to reproduce
- Label your data
- Create a new dataset version
- Check the Modify Classses pre-processing step to make sure you have the right classes
- Generate the dataset version
- Download the dataset
- Check the classes in data.yaml
Expected result
You should only get the classes that you labeled
Actual result
The roboflow creates additional non-existing classes (this also alters the class_id of the real classes)
Note: While labeling, there were some classes that were created by mistake, but they were deleted afterwards since they were never used. This somehow was still picked up by the roboflow.
Evidence
You can clearly see I had 2 classes:

When downloading the dataset, its data.yaml config file looked like this:

This remapped my original class_id's of course.
This was my original data.yaml:

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Bericht nennt keine Implementierungsdateien oder Tests; beginne damit, die Schritte zur Beschriftung, Datensatzversionierung, Generierung und zum Download zu reproduzieren, und prüfe anschließend die generierte data.yaml anhand der beschrifteten Klassen und der ursprünglichen Klassen-IDs. Erledigt ist es, wenn die Datei nur beschriftete Klassen enthält und die erwarteten Klassen-IDs beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- computer-vision, machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 32/100