# Annotation classes incremented when exporting dataset

**URL:** https://discuss.roboflow.com/t/annotation-classes-incremented-when-exporting-dataset/5127
**Category:** 🤝  Community Help
**Created:** [April 4, 2024, 3:34am UTC](https://discuss.roboflow.com/t/annotation-classes-incremented-when-exporting-dataset/5127 "2024-04-04T03:34:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Arsalan\_Jibran](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/arsalan_jibran/32/2571_2.png) [@Arsalan\_Jibran](https://discuss.roboflow.com/u/Arsalan_Jibran)
#### Post date: [April 4, 2024, 3:34am UTC](https://discuss.roboflow.com/t/annotation-classes-incremented-when-exporting-dataset/5127/1 "2024-04-04T03:34:55Z")

</div>

Uploading downloaded dataset folder to new project which has Json coco annotations with it.

Dataset images upon uploading with annotations gives issue.

For e.g: my dataset classes are “0,1,2,3,4,5,6,7,8,9,.,kwh”.

when checking the bounding boxes fore.g:  
bounding box over 0 gives 1 class annotation, similarly for 1 gives 2 and for 2 gives 3.

So the issue is class is one step incremented how to fix that.

![Screenshot 2024-04-04 083337](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/2/2cfc9f301425e6b88fc4885f954968f0fc1dcb6d.png)

see in this image 1 is shown over annotation of 0 digit.

---

<div class="post-metadata">

### Author: ![Arsalan\_Jibran](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/arsalan_jibran/32/2571_2.png) [@Arsalan\_Jibran](https://discuss.roboflow.com/u/Arsalan_Jibran)
#### Post date: [April 4, 2024, 5:40pm UTC](https://discuss.roboflow.com/t/annotation-classes-incremented-when-exporting-dataset/5127/2 "2024-04-04T17:40:15Z")

</div>

I solved the issue, the problem was after extracting zip I get 3 folders train,test,valid and 2 extra txt files i.e readme.txt and requirements.txt.  
when uploading whole folder after extracting to my project extra classes were added by txt files.  
I removed them and the classes were accurate but still incremented. i.e on 0 digit like above picture showed 1 for some reason.

I open annotation coco json files of train,test and valid and start changing with classes by moving it one place or adding one new class. After trail and error i fixed it. I had to manually update and check the annotation class to finally see the results.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [April 11, 2024, 5:40pm UTC](https://discuss.roboflow.com/t/annotation-classes-incremented-when-exporting-dataset/5127/3 "2024-04-11T17:40:21Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
