# New roboflow project upload gives me "object" instead of class type

**URL:** <https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [August 14, 2022, 3:59pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792 "2022-08-14T15:59:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vshesh](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vshesh/32/332_2.png) [@vshesh](https://discuss.roboflow.com/u/vshesh)\
**Post date:** [August 14, 2022, 3:59pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/1 "2022-08-14T15:59:57Z")

</div>

This category is for question related to accounts on [https://app.roboflow.com/](https://app.roboflow.com/)

Please share the following so we may better assist you:

1. Project type (Object detection)
2. firefox/macos

\*\* Reproduce steps \*\*

1. Create new roboflow object detection project
2. Upload files from [this](https://send.vis.ee/download/8f1796a58b14dc73/#ruS7xYK36JQgEtCDkJQFuw) zip file
3. You will see the bbox classes are read just fine, but the classes for the polygons are all read as “object”. I used to use the exact same script to generate data and upload it for the other projects I’ve done and it worked fine, so not sure what happened now.

It looks like roboflow is reading the shapes, but missing out on the class names.

You can see the problem here: [Sign in to Roboflow](https://app.roboflow.com/public-b19mc/regions-keypoints/images/uUAdbL98shZxiFNEo0pW?browseQuery=true). there are ~60 “objects” in one picture with the right shape, but no class.

---

<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:** [August 15, 2022, 4:38pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/2 "2022-08-15T16:38:29Z")

</div>

Hi @vshesh, what annotation format is the JSON file supposed to be?

This is the sample COCO JSON format: [COCO JSON Annotation Format](https://roboflow.com/formats/coco-json)

Select “Example” on that page to view the full example file

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/055dc43f4ca4c9d78b1e79ccf377123078e448da.jpeg)

---

<div class="post-metadata">

**Author:** ![vshesh](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vshesh/32/332_2.png) [@vshesh](https://discuss.roboflow.com/u/vshesh)\
**Post date:** [August 15, 2022, 6:06pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/3 "2022-08-15T18:06:54Z")

</div>

Hey @Mohamed ,

It’s in VGG format, this one: [VGG Image Annotator JSON Annotation Format](https://roboflow.com/formats/via-json)

---

<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:** [August 15, 2022, 6:19pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/4 "2022-08-15T18:19:09Z")

</div>

Ok @vshesh I’m taking a look now. Additionally, I saw you said “I ran this script before…” - is there a reason you’re still annotating elsewhere rather than on Roboflow?

---

<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:** [August 15, 2022, 6:21pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/5 "2022-08-15T18:21:14Z")

</div>

You have _negative_ values for `size` on all of the images. The `size` cannot be negative.

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

---

<div class="post-metadata">

**Author:** ![vshesh](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vshesh/32/332_2.png) [@vshesh](https://discuss.roboflow.com/u/vshesh)\
**Post date:** [August 15, 2022, 7:28pm UTC](https://discuss.roboflow.com/t/new-roboflow-project-upload-gives-me-object-instead-of-class-type/792/6 "2022-08-15T19:28:41Z")

</div>

annotations - This is synthetic data, so it’s easy for me to generate annotations programmatically rather than doing it by hand online!

size - in the past -1 size has not been an issue for these files when uploading to roboflow, but I can try to replace with zero or height \* width. Also the data did upload, and some of the data (the rects) were processed correctly, so how would changing this solve that issue?  
edit: I tried with `size: 1` for the same file and got the same issue when uploading. I didn’t upload but when I clicked on the image it showed the `object` class instead of the class listed in the json file.

The part of the upload that didn’t seem to work is that the `type` in the `region_attributes` wasn’t detected for polygons. Everything else seems to have worked correctly.  
In the console I can see this log entry:

 ![Screen Shot 2022-08-15 at 12.27.55 PM](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/5d9e08473f1bc7951106929ce4424b669adc1d00.png)
