Skip to content

Commit

Permalink
Image meta support
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Oct 9, 2023
2 parents 836f881 + 931ac3c commit a052700
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<a href="#How-To-Use">How To Use</a>
</p>


[![](https://img.shields.io/badge/supervisely-ecosystem-brightgreen)](https://ecosystem.supervise.ly/apps/supervisely-ecosystem/export-to-supervisely-format)
[![](https://img.shields.io/badge/slack-chat-green.svg?logo=slack)](https://supervise.ly/slack)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/supervisely-ecosystem/export-to-supervisely-format)
Expand All @@ -19,13 +18,15 @@

# Overview

Download images project or dataset in [Supervisely JSON format](https://docs.supervise.ly/data-organization/00_ann_format_navi). It is possible to download both images and annotations or only annotations.
ℹ️ Starting from version 2.7.7 the application will save images metadata in JSON format to `meta` directory in each dataset.

Download images project or dataset in [Supervisely JSON format](https://docs.supervise.ly/data-organization/00_ann_format_navi). It is possible to download both images and annotations or only annotations.

# How To Use

**Step 1**: Add app to your team from [Ecosystem](https://ecosystem.supervise.ly/apps/export-to-supervisely-format) if it is not there

**Step 2**: Open context menu of images project (or images dataset) -> `Run App` -> `Download via app` -> `Export to Supervisely format`
**Step 2**: Open context menu of images project (or images dataset) -> `Run App` -> `Download via app` -> `Export to Supervisely format`

<img src="https://i.imgur.com/6JNfu3g.png" width="600px"/>

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"export"
],
"description": "images and JSON annotations",
"docker_image": "supervisely/import-export:6.72.114",
"docker_image": "supervisely/import-export:6.72.149",
"instance_version": "6.5.1",
"main_script": "src/main.py",
"modal_template": "src/modal.html",
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def download_json_plus_images(api, project, dataset_ids):
if os.path.exists(download_dir):
sly.fs.clean_dir(download_dir)
sly.download_project(api, project.id, download_dir, dataset_ids=dataset_ids,
log_progress=True, batch_size=batch_size)
log_progress=True, batch_size=batch_size, save_image_meta=True)
sly.logger.info('Project {!r} has been successfully downloaded.'.format(project.name))


Expand Down

0 comments on commit a052700

Please sign in to comment.