diff --git a/README.md b/README.md index 751559d..ec93ca3 100644 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ Results

-[![](https://img.shields.io/badge/supervisely-ecosystem-brightgreen)](https://ecosystem.supervise.ly/apps/supervisely-ecosystem/export-to-coco) -[![](https://img.shields.io/badge/slack-chat-green.svg?logo=slack)](https://supervise.ly/slack) +[![](https://img.shields.io/badge/supervisely-ecosystem-brightgreen)](https://ecosystem.supervisely.com/apps/supervisely-ecosystem/export-to-coco) +[![](https://img.shields.io/badge/slack-chat-green.svg?logo=slack)](https://supervisely.com/slack) ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/supervisely-ecosystem/export-to-coco) -[![views](https://app.supervise.ly/img/badges/views/supervisely-ecosystem/export-to-coco.png)](https://supervise.ly) -[![runs](https://app.supervise.ly/img/badges/runs/supervisely-ecosystem/export-to-coco.png)](https://supervise.ly) +[![views](https://app.supervisely.com/img/badges/views/supervisely-ecosystem/export-to-coco.png)](https://supervisely.com) +[![runs](https://app.supervisely.com/img/badges/runs/supervisely-ecosystem/export-to-coco.png)](https://supervisely.com) # Overview -App converts [Supervisely format](https://docs.supervise.ly/data-organization/00_ann_format_navi) project to [COCO format](https://cocodataset.org/#home) as a **downloadable .tar archive** +App converts [Supervisely format](https://docs.supervisely.com/data-organization/00_ann_format_navi) project to [COCO format](https://cocodataset.org/#home) as a **downloadable .tar archive** Application key points: @@ -31,12 +31,12 @@ Application key points: 👉 To exprot captions you need to create `caption` tag to the project (with `any_string` value type) and assign it to images with caption values. - ⚠️ Сonverts annotations without preserving holes. - 👉 To preserve holes in polygons or export polylines it's best to use [Export to COCO mask](https://ecosystem.supervise.ly/apps/export-to-coco-mask) + 👉 To preserve holes in polygons or export polylines it's best to use [Export to COCO mask](https://ecosystem.supervisely.com/apps/export-to-coco-mask) - Backward compatible with [Import COCO](https://github.com/supervisely-ecosystem/import-coco) # How to Use -1. Add [Export to COCO](https://ecosystem.supervise.ly/apps/export-to-coco) to your team from Ecosystem +1. Add [Export to COCO](https://ecosystem.supervisely.com/apps/export-to-coco) to your team from Ecosystem diff --git a/src/functions.py b/src/functions.py index ef9d6cc..c5daf14 100644 --- a/src/functions.py +++ b/src/functions.py @@ -88,6 +88,7 @@ def create_coco_annotation( include_captions, rectangle_mark, ): + global incremental_id for image_info, ann in zip(image_infos, anns): image_coco_ann = dict(