list-formats command displays a comprehensive table of all annotation formats supported by Panlabel, including their read/write capabilities and lossiness characteristics.
Usage
Output
The command displays a formatted table showing:- FORMAT - The canonical format name
- READ - Whether Panlabel can read this format
- WRITE - Whether Panlabel can write this format
- LOSSINESS - How much information is preserved relative to Panlabel’s IR
- DESCRIPTION - Brief description of the format
Example Output
Lossiness Categories
Formats are classified into three lossiness categories:Lossless
Formats that preserve all information from Panlabel’s intermediate representation:- ir-json - Panlabel’s native format (by definition lossless)
- coco - COCO JSON preserves images, annotations, categories, and metadata
- yolo - YOLO with
data.yamlpreserves all required information - voc - Pascal VOC XML preserves bounding boxes and metadata
Conditional
Formats that may lose information depending on dataset content:-
cvat - Conditionally lossy based on:
- Presence of annotation attributes not supported by CVAT
- Dataset-level metadata that CVAT doesn’t represent
- Images without annotations (may be handled differently)
-
label-studio - Conditionally lossy based on:
- Task-level metadata structure
- Annotation attributes specific to Label Studio’s schema
- Image hosting and reference method
Conditional lossiness means the conversion report will indicate exactly what (if anything) is lost for your specific dataset.
Lossy
Formats that always lose some information:- tfod (TensorFlow Object Detection CSV) - Always lossy because:
- No support for dataset-level metadata
- Images without annotations are dropped
- Limited category metadata (only ID and name)
- No support for annotation attributes
- No bounding box attributes beyond coordinates
Format Details
ir-json
Panlabel’s intermediate representation (JSON)- Canonical internal format
- Preserves all information
- Human-readable JSON structure
- Use as a universal interchange format
coco
COCO object detection format (JSON)- Industry-standard format
- Single JSON file with all annotations
- Widely supported by ML frameworks
- Aliases:
coco-json
cvat
CVAT for images XML annotation export- XML-based format from CVAT annotation tool
- Can be single file or directory export
- Supports rich annotation attributes
- Aliases:
cvat-xml
label-studio
Label Studio task export (JSON)- JSON format from Label Studio annotation platform
- Array of task objects
- Includes annotation metadata and provenance
- Aliases:
label-studio-json,ls
tfod
TensorFlow Object Detection format (CSV)- Simple CSV format
- One row per annotation
- Limited metadata support
- Aliases:
tfod-csv
yolo
Ultralytics YOLO .txt (directory-based)- Directory structure with
labels/subdirectory - One
.txtfile per image with normalized coordinates - Requires
classes.txtanddata.yamlfor category info - Aliases:
ultralytics,yolov8,yolov5
voc
Pascal VOC XML (directory-based)- XML format from Pascal VOC challenge
- Directory structure with
Annotations/andJPEGImages/ - One XML file per image
- Aliases:
pascal-voc,voc-xml
Using with Other Commands
The format names displayed bylist-formats can be used directly with other Panlabel commands:
Convert Command
Validate Command
Stats Command
Sample Command
Checking Format Compatibility
Uselist-formats to quickly check:
- Which formats support your use case: All listed formats support both read and write
- Potential information loss: Check the lossiness column before converting
- Available aliases: Use shorter names like
lsinstead oflabel-studio-json
Planning Conversions
Integration Examples
Scripted Format Discovery
CI/CD Format Validation
Tips
See Also
Supported Formats
Detailed format specifications and examples
Convert Command
Convert between formats
CLI Overview
Overview of all CLI commands