|
| 1 | +# Annotation conversion |
| 2 | + |
| 3 | +A framework to load, export and analyze different annotated datasets. |
| 4 | + |
| 5 | + |
| 6 | +## Usage |
| 7 | + |
| 8 | +### Features |
| 9 | +```python |
| 10 | +from clarifai_utils import Image_Annotations |
| 11 | +#import from folder |
| 12 | +coco_dataset = Image_Annotations.import_from(path='folder_path',format= 'coco_detection') |
| 13 | + |
| 14 | +#clarifai dataset loader object |
| 15 | +coco_dataset.clarifai_loader() |
| 16 | + |
| 17 | + |
| 18 | +#info about loaded dataset |
| 19 | +coco_dataset.get_info() |
| 20 | + |
| 21 | + |
| 22 | +#exporting to other formats |
| 23 | +coco_dataset.export_to('voc_detection') |
| 24 | +``` |
| 25 | + |
| 26 | + |
| 27 | +### With Clarifai Python SDK |
| 28 | +```python |
| 29 | +from clarifai_utils import Image_Annotations |
| 30 | +coco_dataset = Image_Annotations.import_from(path='folder_path',format= 'coco_detection') |
| 31 | + |
| 32 | +#clarifai SDK |
| 33 | +#export CLARIFAI_PAT={your personal access token} # set PAT as env variable |
| 34 | +from clarifai.client.dataset import Dataset |
| 35 | +dataset = Dataset(user_id="user_id", app_id="app_id", dataset_id="dataset_id") |
| 36 | +dataset.upload_dataset(dataloader=coco_dataset.clarifai_loader()) |
| 37 | + |
| 38 | +``` |
| 39 | + |
| 40 | + |
| 41 | +## Supported Formats |
| 42 | + |
| 43 | +| Annotation format | Format | TASK | |
| 44 | +| ------------------------------------------------------------------------------------------------ | ------- | --------------- | |
| 45 | +| [ImageNet](http://image-net.org/) | imagenet | classification | |
| 46 | +| [CIFAR-10](https://www.cs.toronto.edu/~kriz/cifar.html) | cifar | classification | |
| 47 | +| [MNIST](http://yann.lecun.com/exdb/mnist/) | mnist | classification | |
| 48 | +| [VGGFace2](https://github.com/ox-vgg/vgg_face2) | vgg_face2 | classification | |
| 49 | +| [LFW](http://vis-www.cs.umass.edu/lfw/) | lfw | classification | |
| 50 | +| [PASCAL VOC](http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/index.html) | voc_detection | detection | |
| 51 | +| [YOLO](https://github.com/AlexeyAB/darknet#how-to-train-pascal-voc-data) | yolo | detection | |
| 52 | +| [COCO](http://cocodataset.org/#format-data) | coco_detection | detection | |
| 53 | +| [CVAT](https://opencv.github.io/cvat/docs/manual/advanced/xml_format/) | cvat | detection | |
| 54 | +| [Kitti](http://www.cvlibs.net/datasets/kitti/index.php) | kitti | detection | |
| 55 | +| [LabelMe](http://labelme.csail.mit.edu/Release3.0) | label_me | detection | |
| 56 | +| [Open Images](https://storage.googleapis.com/openimages/web/download.html) | open_images | detection | |
| 57 | +| [COCO(segmentation)](http://cocodataset.org/#format-data) | coco_segmentation | segmentation | |
| 58 | +| [Cityscapes](https://www.cityscapes-dataset.com/) | cityscapes | segmentation | |
| 59 | +| [ADE](https://www.cityscapes-dataset.com/) | ade20k2017 | segmentation | |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +## Resources |
| 64 | +This tool makes use of the [Datumaro Framework](https://github.com/openvinotoolkit/datumaro) |
0 commit comments