Hi there - I’m new to the platform so this question is probably simple to answer. How do I get roboflow to recognize my class names? Right now, I only have numbers as classes because I use a dataset.yaml file to map numbers (open image v7) to names.
I have a dataset on my local machine. Standard folder structure:
/dataset
├── dataset.yaml
├── images
│ ├── train
│ └── val
└── labels
├── train
└── val
I uploaded this using the CLI roboflow import -w myupload -p myproject_id ./dataset
My dataset.yaml contains the mapping of class names, like so
Hi @sp88011!
Welcome to the Roboflow community!! I am sorry you have run into this issue. I am reaching out to the appropriate team and will keep you in the loop.
Hi @sp88011!
Thank you for your patience! In talking with our team, you can upload any format listed on our accepted annotation formats page. Otherwise you can manually convert to an accepted format and then upload images and annotations via the SDK, API, or web app.
You can drag and drop to upload annotations in the Roboflow web app. See the screenshot below:
Based upon this behavior, its important to note that annotations must be uploaded with their corresponding images in the same batch. If you attempt to upload annotations without their associated images, you receive this aforementioned behavior.
We will clarify this in the upload page, thank you for the feedback!!
Hi @sp88011!
I’ve been testing this today and was able to replicate the disparity. Thank you for bringing this to our attention, I will notify the appropriate teams.
In the meantime, I suggest using the drag & drop upload while we address this. Thanks again for bringing this forward!
Hi @sp88011!
Great news! We’ve deployed the fix, please update your library to Roboflow 1.2.1
Roboflow now supports both List and Key-Value pair formatted data.yaml files for upload via the CLI.
nc: 3
names: ['head', 'helmet', 'person']
...
OR
...
# Classes
names:
0: person
11: bicycle
20: car
32: motorcycle
99: airplane
...
Side note for community visibility. When installing the CLI, please install from pypi using pip install roboflow. Installing from npm will install a deprecated version.