# Bulk convert boxes to smart Polygons

**URL:** <https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430>\
**Category:** 🤝  Community Help\
**Tags:** segmentation\
**Created:** [October 16, 2023, 1:01pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430 "2023-10-16T13:01:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinKlefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/martinklefas/32/2324_2.png) [@MartinKlefas](https://discuss.roboflow.com/u/MartinKlefas)\
**Post date:** [October 16, 2023, 1:01pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/1 "2023-10-16T13:01:55Z")

</div>

I’ve been using the automated tool to convert boxes to smart polygons, and it’s mostly been working brilliantly. The only problem comes if I don’t notice the “saving” cloud in the bottom left.

I was wondering though if it’s possible to do it in bulk for like 100 images at a time?

---

<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:** [October 16, 2023, 1:03pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/2 "2023-10-16T13:03:25Z")

</div>

Yes, you can speed up the conversion of bounding boxes to polygons by letting SAM (Segment Anything Model) convert all bounding boxes to polygons. This is an option you can use when you know SAM performs well with your custom data. However, the extracts do not provide specific steps on how to do this in bulk for multiple images at a time. For more detailed instructions, you may want to refer to the [Roboflow documentation](https://docs.roboflow.com/annotate/use-roboflow-annotate/enhanced-smart-polygon-with-sam) or reach out to Roboflow’s support team.

Source: [Roboflow Blog](https://blog.roboflow.com/label-data-segment-anything-model-sam/)

* * *

> Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, knowledge base, and previous forum responses. If you find this to be a helpful answer, please mark it as the solution using the checkbox icon below. 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:** ![MartinKlefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/martinklefas/32/2324_2.png) [@MartinKlefas](https://discuss.roboflow.com/u/MartinKlefas)\
**Post date:** [October 16, 2023, 1:05pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/3 "2023-10-16T13:05:23Z")

</div>

Thanks, that’s what I’m doing - running SAM on each image to convert the boxes. Problem is it’s 2 seconds to run + 20 seconds to save per image, and I’d rather it be something I can run in the background then inspect later

---

<div class="post-metadata">

**Author:** ![MartinKlefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/martinklefas/32/2324_2.png) [@MartinKlefas](https://discuss.roboflow.com/u/MartinKlefas)\
**Post date:** [October 16, 2023, 1:28pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/4 "2023-10-16T13:28:30Z")

</div>

Also, the tool keeps forgetting what I have done and I have to redo it!

[![](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/2/2117a57e41248eaeddb8aa2b98d9b9106fdb6ea0.jpeg "RoboFlow Smart Boxes not saving") ](https://www.youtube.com/watch?v=lm_BKLDtORI)

---

<div class="post-metadata">

**Author:** ![vare\_3](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vare_3/32/5996_2.png) [@vare\_3](https://discuss.roboflow.com/u/vare_3)\
**Post date:** [November 20, 2024, 9:18pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/5 "2024-11-20T21:18:53Z")

</div>

@MartinKlefas did you solve problem? Can you send him 100 images to make smart polygon?

---

<div class="post-metadata">

**Author:** ![MartinKlefas](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/martinklefas/32/2324_2.png) [@MartinKlefas](https://discuss.roboflow.com/u/MartinKlefas)\
**Post date:** [November 20, 2024, 10:38pm UTC](https://discuss.roboflow.com/t/bulk-convert-boxes-to-smart-polygons/3430/6 "2024-11-20T22:38:06Z")

</div>

No, I didn’t solve it and moved on to other solutions - I used [DSA](https://github.com/DigitalSlideArchive) for slide annotation and self-hosted CVAT for regular images.
