We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I saw there's a comment about how to add a custom importer/extractor, but it seems not working.
datumaro/datumaro/cli/contexts/project/__init__.py
Line 116 in d75c234
I tried putting myimporter.py to .datumaro/importers folder
myimporter.py
.datumaro/importers
from datumaro.components.extractor import Importer class MyImporter(Importer): @classmethod def find_sources(cls, path): return []
then run following code in python interactive under project root.
>>> from datumaro.components.environment import Environment >>> env = Environment() >>> print([importer for importer in env.importers]) >>> ['imagenet_txt', 'yolo', 'cityscapes', 'label_me', 'coco_captions', 'coco_image_info', 'coco', 'coco_instances', 'coco_labels', 'coco_panoptic', 'coco_person_keypoints', 'coco_stuff', 'cifar', 'image_dir', 'wider_face', 'lfw', 'sly_pointcloud', 'market1501', 'image_zip', 'mot_seq', 'kitti_ detection', 'kitti', 'kitti_segmentation', 'kitti_raw', 'cvat', 'mots', 'imagenet', 'open_images', 'mnist_csv', 'datumaro', 'vgg_face2', 'mnist', 'voc_action', 'voc_classification', 'voc_detection', 'voc', 'voc_layout', 'voc_segmentation', 'icdar_text_localization', 'icdar_text_segmentatio n', 'icdar_word_recognition', 'camvid']
Then I tried force loading plugin from the specific directory
>>> env.load_plugins('.datumaro/importers') >>> print([importer for importer in env.importers]) ['imagenet_txt', 'yolo', 'cityscapes', 'label_me', 'coco_captions', 'coco_image_info', 'coco', 'coco_instances', 'coco_labels', 'coco_panoptic', 'coco_person_keypoints', 'coco_stuff', 'cifar', 'image_dir', 'wider_face', 'lfw', 'sly_pointcloud', 'market1501', 'image_zip', 'mot_seq', 'kitti_ detection', 'kitti', 'kitti_segmentation', 'kitti_raw', 'cvat', 'mots', 'imagenet', 'open_images', 'mnist_csv', 'datumaro', 'vgg_face2', 'mnist', 'voc_action', 'voc_classification', 'voc_detection', 'voc', 'voc_layout', 'voc_segmentation', 'icdar_text_localization', 'icdar_text_segmentatio n', 'icdar_word_recognition', 'camvid', 'my']
The text was updated successfully, but these errors were encountered:
Hi, it looks like the plugin directory was overlooked in the last implementation update. It should be called here: https://github.com/openvinotoolkit/datumaro/blob/develop/datumaro/components/project.py#L417
<project_dir>/.datumaro/extractors should be <project_dir>/.datumaro/plugins now.
<project_dir>/.datumaro/extractors
<project_dir>/.datumaro/plugins
Thank you for reporting the issue!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
I saw there's a comment about how to add a custom importer/extractor, but it seems not working.
datumaro/datumaro/cli/contexts/project/__init__.py
Line 116 in d75c234
I tried putting
myimporter.py
to.datumaro/importers
folderthen run following code in python interactive under project root.
Then I tried force loading plugin from the specific directory
The text was updated successfully, but these errors were encountered: