If you want to bootstrap your dataset by importing already existing annotations, first make sure that all the images are already uploaded. Then ensure that the annotations are in one of the following formats [Darwin, PascalVoc, COCO, CSV Tags, CSV Video Tag, Dataloop].
Ensure uploaded images
If you want to bootstrap your dataset by importing already existing annotations, first make sure that all the images are already uploaded.
Verify annotation format
Ensure that the annotations to be imported are in one of the following formats [Darwin, Pascal VOC, COCO, CSV Tags, CSV Video Tag, Dataloop].
The command to import annotations into a remote dataset is `darwin dataset import /path/to/annotation/file(s)
$ darwin dataset import example-team/test pascal_voc sample_voc.xml
Fetching remote file list...
Fetching remote class list...
Retrieving local annotations ...
1 annotation file(s) found.
1 file(s) are missing from the dataset
imports/sample_voc.xml: '12.png'
Do you want to continue? [y/N] y
0 classes are missing remotely.
Matching local annotations with remote files
Darwin CLI tries to match each local file in the import against remote files in the dataset. If this step is unsuccessful, it will print a warning and allow the operation to be cancelled.
Matching annotation classes
Annotation classes are matched by name (case sensitive) and type (e.g. polygon, bounding box, etc). If they are missing remotely, Darwin CLI will prompt asking if it's allowed to create them for you.
Old annotations are deleted
Old annotations are deleted by default before the imports are applied.
The --append
argument can be used to import annotations without overwriting old ones.
$ darwin dataset import example-team/test pascal_voc sample_voc.xml --append
Fetching remote file list...
Fetching remote class list...
Retrieving local annotations ...
1 annotation file(s) found.
1 file(s) are missing from the dataset
imports/sample_voc.xml: '12.png'
Do you want to continue? [y/N] y
0 classes are missing remotely.