# Label assistant also display polygonal boxes

**URL:** <https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820>\
**Category:** 🤝  Community Help\
**Created:** [November 25, 2023, 7:33am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820 "2023-11-25T07:33:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [November 25, 2023, 7:33am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/1 "2023-11-25T07:33:01Z")

</div>

Hi,

I’m in the process of converting my dataset with polygons boxes.

Is there a way to support annotation with Roboflow model?

So far the lable assistant only delivers rectangular boxes.

Or do I have to adjust something during training so that the polygon boxes are also displayed?

---

<div class="post-metadata">

**Author:** ![Lenny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lenny/32/2383_2.png) [@Lenny](https://discuss.roboflow.com/u/Lenny)\
**Post date:** [November 25, 2023, 7:34am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/2 "2023-11-25T07:34:55Z")

</div>

Yes, Roboflow does support polygon annotations. Polygon annotations provide more specific information about the data you’re using to train a model, which can lead to increased training performance and results, and also improve data augmentation [[source]](https://blog.roboflow.com/polygon-annotation-labeling/#why-should-you-use-polygon-annotations).

To annotate images with polygons in Roboflow, you can use the Polygon Tool by clicking to add an initial starting point, then continue clicking to add more stationary points around the object, and double clicking or clicking the original vertex to close the polygon. The shortcut key for the Polygon Tool is “p” [[source]](https://blog.roboflow.com/polygon-annotation-labeling/#how-to-annotate-images-using-polygons-with-roboflow).

Roboflow also offers a feature called Smart Polygon, which can generate annotations by clicking an object of interest. There are two versions of Smart Polygon: Standard, which is ideal for small items, and Enhanced, which is ideal for most use cases [[source]](https://roboflow.com/how-to-label/yolox).

However, it’s important to note that annotating with polygons takes more time and bounding boxes are usually sufficient to build an initial prototype or model for assisted labeling. Once you have an initial model working, you can go back and improve performance later with polygons, by relabeling your images, if necessary [[source]](https://blog.roboflow.com/polygon-annotation-labeling/#why-should-you-use-polygon-annotations).

* * *

> Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [November 25, 2023, 7:41am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/3 "2023-11-25T07:41:49Z")

</div>

Does this mean that if I have labeled all images with polygonal boxes and then do a training, the label assistant will label new images with polygonal boxes?

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [November 25, 2023, 9:18am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/4 "2023-11-25T09:18:06Z")

</div>

I have now done a test. I created a new project and labeled the images with polygonal boxes.  
Then I created a Roboflow model and uploaded new images.  
However, the label assistant only labels with rectangular boxes and not with polygonal boxes.  
Why is that?

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [November 27, 2023, 11:01pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/5 "2023-11-27T23:01:29Z")

</div>

Hi @staebchen0

I want to clarify some things to get us on the same page so I can help you better. You are looking to train an instance segmentation model (which produces polygon predictions) on your dataset, right?

If you have an object detection model, (which produces bounding box predictions) there isn’t a way to force it to produce polygon annotations, since they are different model types.

In an object detection project, training a version will result in you getting an object detection model, regardless of the polygon annotations you make (they will be converted into bounding boxes).  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/f/f3319a81dc135d47e543ce34669759eb9c7d6891.png)

If you’d like to train an instance segmentation model, you should create an instance segmentation project.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/0/052c6ebeb859cd5f03a0c22cc6584795f5552604.jpeg)

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 8, 2023, 3:37pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/6 "2023-12-08T15:37:44Z")

</div>

Hi stellasphere,

Thanks for the info.  
At the moment I have an object model and use polygonal boxes for the label marking.  
Could I put my dataset, which is already labeled, Converter into a segmentation Model?

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 8, 2023, 4:18pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/7 "2023-12-08T16:18:00Z")

</div>

I have created a new project and selected Segementation, unfortunately the labeled images from the other project cannot be transferred. Although I only used Polygonal label

 ![robof](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/c1c26174c8d18006d435d082499949d42a803d5b.png)

it would be very tedious to relabel all the pictures again

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [December 10, 2023, 6:53am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/8 "2023-12-10T06:53:17Z")

</div>

Hi @staebchen0

Polygonal boxes usually refer to a 3D object, so I want to clarify, by polygonal boxes, you do mean polygon shapes, correct? If that is the case, you can indeed create a new segmentation project and transfer your images into that project.

I can see your attempt was through Roboflow Universe’s clone feature, which doesn’t work, but you can do this by creating a new version of your datasets (make sure to disable and remove any/all preprocessing and augmentation) and exporting it, then importing it into your new project.

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 10, 2023, 9:14am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/9 "2023-12-10T09:14:53Z")

</div>

> [@leo](#):
>
> polygon shapes

Hi stellasphere,

yes, I meant polygon shapes.

Which export format should I choose? Or does that not matter for the import?

and how should I then upload the dataset with the labels? Do you have an example?

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 10, 2023, 10:32am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/10 "2023-12-10T10:32:43Z")

</div>

I think I found a way.

[https://docs.roboflow.com/api-reference/images/upload-an-annotation](https://docs.roboflow.com/api-reference/images/upload-an-annotation)

Thank you for your support 😊

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 10, 2023, 11:29am UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/11 "2023-12-10T11:29:20Z")

</div>

Hi @leo  
I have another question

why are the images all saved with **image\_jpg** when uploading? In the Coco dataset they are stored with **Image.jpg**

 ![roboflow Upload an annoation](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/6/65060f05d70761f0cbf71118c5c0fa0faaead74e.jpeg)

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 10, 2023, 5:32pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/12 "2023-12-10T17:32:01Z")

</div>

Hi @leo ,

There still seems to be a problem with the import. There are images with the same name in the original dataset.

This is now causing problems when importing into the new project. The labels are taken from a duplicate. Of course that doesn’t fit.

How come?

 ![error import](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/2/2bb2a8da2ecc3c7ade8a6a9bc73fba821ec67a55.jpeg)

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [December 14, 2023, 11:22pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/13 "2023-12-14T23:22:43Z")

</div>

Hi @staebchen0

> [@staebchen0](#):
>
> Which export format should I choose? Or does that not matter for the import?

For the export format, as long as it’s [a format that we support imports to](https://roboflow.com/formats), it doesn’t matter. I recommend COCO, just because it’s a common format that we support imports from.

> [@staebchen0](#):
>
> [Upload an Annotation - Roboflow Docs](https://docs.roboflow.com/api-reference/images/upload-an-annotation)

That works too, but you can also un-zip the dataset file and drag-and-drop it into the Upload page!

> [@staebchen0](#):
>
> why are the images all saved with **image\_jpg** when uploading? In the Coco dataset they are stored with **Image.jpg**

I’m not sure about that. Is it causing a problem?

> [@staebchen0](#):
>
> This is now causing problems when importing into the new project. The labels are taken from a duplicate. Of course that doesn’t fit.

Could you share your previous project’s Universe link? (or workspace & project ID if it’s private)

---

<div class="post-metadata">

**Author:** ![staebchen0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/staebchen0/32/1017_2.png) [@staebchen0](https://discuss.roboflow.com/u/staebchen0)\
**Post date:** [December 15, 2023, 3:12pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/14 "2023-12-15T15:12:25Z")

</div>

I have now deleted all the images with the same file name. As I said, it should be prevented when uploading that files with the same name can be uploaded. This can happen quickly with large data sets

---

<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:** [December 22, 2023, 3:12pm UTC](https://discuss.roboflow.com/t/label-assistant-also-display-polygonal-boxes/3820/15 "2023-12-22T15:12:41Z")

</div>

Closed on December 22, 2023, 3:12pm UTC

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