Skip to content

Conversation

@sanjaychelliah
Copy link
Contributor

@sanjaychelliah sanjaychelliah commented Mar 15, 2024

Feature

Export to other formats(COCO,VOC) from Clarifai Platform

#clarifai SDK
#export CLARIFAI_PAT={your personal access token}  # set PAT as env variable
from clarifai.client.dataset import Dataset
dataset = Dataset(user_id="user_id", app_id="app_id", dataset_id="dataset_id",dataset_version_id='version_id')
dataset.export(save_path='output.zip')

#Extract the zip file and pass the folder to ImageAnnotations
from clarifai_datautils import ImageAnnotations
clarifai_dataset = ImageAnnotations.import_from(path='folder_path',format= 'clarifai')

#export to other formats
clarifai_dataset.export_to(path='output_path',format='coco_detection',save_images=True)

Tests

  • Added tests for the clarifai format

@sanjaychelliah sanjaychelliah changed the title [DEVX-371[: Export from Clarifai Platform to other formats [DEVX-371]: Export from Clarifai Platform to other formats Mar 15, 2024
Copy link

@sainivedh sainivedh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some refactor changes

@sanjaychelliah sanjaychelliah merged commit 89fc2f2 into main Mar 18, 2024
@sanjaychelliah sanjaychelliah mentioned this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants