Annotation import and export

Picsellia allows you to create your Annotation by importing your own Annotation file on an existing DatasetVersion.

1. Annotation formats

Picsellia natively handles the following Annotation formats:

  • COCO
  • Pascal VOC
  • YOLO
  • ViaLabel

2. Import Annotation files

From the Assets overview, you can click on Annotations > Import to open the Annotation files import modal.

Access the Import Annotation file modal

Import Annotation file modal

From this modal, you must indicate:

  • The format of the Annotation file
  • The files containing Annotation related to the images composing the current DatasetVersion.
  • The expected behavior for the Asset that already have an Annotation (keep the existing Annotation, replace it with the imported one, or concatenate the two)
  • On a DatasetVersion whose Version Type is not set yet, the Shape to create, Polygon (segmentation) or Rectangle (bbox). The modal warns you that the Version Type of the DatasetVersion will be set accordingly.

If the files contain Annotation of images that are not part of the DatasetVersion, Picsellia ignores them and only imports the Annotation related to images that are part of the current DatasetVersion.

Then click on Import and the Annotation will be created on your DatasetVersion. You can now visualize the Annotation through the Assets overview.

Please note that the import of Annotation in COCO format also supports the Text field related to each box, the Asset Attribute, and the Shape Attribute.

👍

No need to set up the Version Type and Labelmap of the DatasetVersion. As the Version Type and the Labelmap are contained in the Annotation files, they are automatically set up on your Picsellia DatasetVersion during the import. After the import, you can still manually create additional Label.

3. Edit Annotation

Once imported, the Annotation can still be modified directly on Picsellia using Studio.

Edit Annotation in Studio

Studio documentation is available here.

4. Export Annotation

At any moment, you can export the Annotation of all the Asset of an annotated DatasetVersion. You can choose the format of the Annotation you are about to export among COCO, YOLO, Pascal VOC, and Semantic masks (detailed below). ViaLabel is an import format only.

To do so, you can click on Annotations and choose the Annotation format. On a DatasetVersion without any Annotation, the menu only shows Import. Picsellia prepares the file as a Job and downloads it on your machine as soon as it is ready — right away when the same export has already been prepared. The preparation can take several seconds depending on the DatasetVersion size so please be patient, but a DatasetVersion of any size can be exported this way, including one holding more than 100,000 Asset.

Export Annotation

Each Asset has at most one Annotation, and it is the one exported.

On a DatasetVersion whose Version Type is Object Detection or Segmentation, the same menu also offers Export as Semantic masks. Instead of a file describing coordinates, it produces one mask image per annotated Asset, where each Shape is painted according to its Label, and downloads them as a zip archive. This is what most semantic segmentation training pipelines expect as ground truth, so it saves you from converting your polygons or bounding boxes yourself before a training run. It goes through the same Job and download flow as the other formats, and it is an export format only: semantic masks cannot be imported back.

If the export fails, the error is reported to you, instead of leaving you waiting for a file that never arrives.

👍

For more customization in the export of Annotation, you can use the Python SDK.


Did this page help you?