# Labelling classes starting from a specific number

**URL:** <https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581>\
**Category:** 🤝  Community Help\
**Tags:** split-after-upload, bugs, feature-request, formats\
**Created:** [June 21, 2022, 9:33am UTC](https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581 "2022-06-21T09:33:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Symbadian1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/symbadian1/32/435_2.png) [@Symbadian1](https://discuss.roboflow.com/u/Symbadian1)\
**Post date:** [June 21, 2022, 9:33am UTC](https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581/1 "2022-06-21T09:33:45Z")

</div>

Hi all, I’m Sym,

I utilized this platform (Roboflow) to annotate my dataset and now I’m faced with a challenge. The automation of Roboflow started my labeling number sequence at 0.

This became challenging when utilizing the dataset for initialization on coco128 with 80 classes starting from 0-79.

To integrate my effort deployed from Roboflow, I’m now searching for a solution that would convert what was already labeled to commence at 80.

Why? I am adding what was done in Roboflow to the original dataset’s classes so that it can be efficiently trained via yolov5 and for inference after such processes.

ISSUES CAUSED:  
The classes are not being seen in the training initialization process and therefore limits the efficacy of the model dev stages. “Please see image”

 ![Screenshot 2022-06-18 at 18.12.52](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/fbc4679aacdc4a965ff50907357bcab47b1f17f5.jpeg)

Please, can someone guide me here with a suitable approach?

Thank you for acknowledging my digital presence!!

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [June 22, 2022, 7:34pm UTC](https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581/2 "2022-06-22T19:34:43Z")

</div>

Hi @Symbadian1 -

You would need to update your annotation files to ensure the index values for all annotations match the classes.

Or, alternatively, [merge the `coco128` dataset](https://help.roboflow.com/guides/merging-projects-or-datasets) with your custom dataset on Roboflow, and export that way. This will solve the issue of the indexes not showing up when validating your model. However, Roboflow makes the index names alphabetical, so they won’t be in the exact same order as `coco128`, but they will at least show the results for all classes in the dataset.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/8657b7a6d1158fbb905ed12d532ff954ca5e51fc.png)

> [@Is there anyway to see the indexes generated for the class labels](https://discuss.roboflow.com/t/is-there-anyway-to-see-the-indexes-generated-for-the-class-labels/582):
>
> Hi all, is there any way to see the indexes for the classes that were generated within roboflow? I went back to the annotate feature therein and there is nothing that demonstrates this!?!?! what’s there is the number of class labels therein for that specific image. What I am trying to see for example; a class labeled dog attains an index of 0. When adding more classes it should probably be something like this; dog 0, sheep 1, cow 2, goat 3 etc. I peered into the RAW scripting feature but that…

> [@Roboflow needs a feature to modify the class index start sequencing](https://discuss.roboflow.com/t/roboflow-needs-a-feature-to-modify-the-class-index-start-sequencing/585):
>
> Hi all, It would be very helpful to have a feature that lets the user decide where the index of the classes should be started from. This way it would be very easy to implement when converting the index locations of the labels, especially if training on multiple folders of data per class. I am now trying to find a way to convert all of the labels of the data.yaml files that were generated per workspace that is a lot. Maybe I lack the knowledge of the process or am delusional but this would sure…

---

<div class="post-metadata">

**Author:** ![Symbadian1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/symbadian1/32/435_2.png) [@Symbadian1](https://discuss.roboflow.com/u/Symbadian1)\
**Post date:** [June 23, 2022, 10:05am UTC](https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581/3 "2022-06-23T10:05:55Z")

</div>

@Mohamed thanx a mill,

I found the solution by merging the datasets which was the best for me, but I encountered and error that was affecting the annotations. This altered some of their names converting this to numbers, I’m a bit apprehensive to continue the merging of the other classes until I can find a solution. I have a small but significant sample size suitable for testing but would prove tedious to redo the annotations.

Thank you for your response @Mohamed and acknowledging my digital presence! indeed your efforts were helpful.

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [June 23, 2022, 12:35pm UTC](https://discuss.roboflow.com/t/labelling-classes-starting-from-a-specific-number/581/4 "2022-06-23T12:35:03Z")

</div>

Question is answered here (let’s continue on the other thread only to avoid confusion):

> [@Roboflow needs a feature to modify the class index start sequencing](https://discuss.roboflow.com/t/roboflow-needs-a-feature-to-modify-the-class-index-start-sequencing/585/4):
>
> Hi @Symbadian1 - yes, this is what I was referring to here: You can use [Modify Classes](https://help.roboflow.com/guides/modifying-classes) to create “raw image” dataset versions. A raw image dataset version would be one in which you generate a dataset with only [Auto-Orient](https://docs.roboflow.com/image-transformations/image-preprocessing#auto-orient) as a [preprocessing step](https://docs.roboflow.com/image-transformations/image-preprocessing) (and Modify Classes if you wanted new class names), and no [augmentations](https://docs.roboflow.com/image-transformations/image-augmentation). Here’s [how to make the raw image dataset versions](https://www.loom.com/share/6d0ab53f2f284ebe93dd911444a19db1) After generating a raw image dataset for both projects and [exporting them](https://docs.roboflow.com/exporting-data) in COCO JSON or another [format](https://roboflow.com/formats) - with the desired c…

And you’re welcome! Thanks for joining Roboflow!
