roboflow / roboflow/roboflow-python

Wrong number of classes in data.yaml

Offen
#88 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug
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
  1. Label your data
  2. Create a new dataset version
  3. Check the Modify Classses pre-processing step to make sure you have the right classes
  4. Generate the dataset version
  5. Download the dataset
  6. 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:
image

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

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

image

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Ö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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.