class documentation
class SOLOParser(BaseParser):
Constructor: SOLOParser(dataset, dataset_type, task_name, full_warnings)
Parse a directory with SOLO annotations into LDF.
Expected format:
dataset_dir/ ├── train/ │ ├── metadata.json │ ├── sensor_definitions.json │ ├── annotation_definitions.json │ ├── metric_definitions.json │ └── sequence.<SequenceNUM>/ │ ├── step<StepNUM>.camera.jpg │ ├── step<StepNUM>.frame_data.json │ └── (OPTIONAL: step<StepNUM>.camera.semantic segmentation.jpg) ├── valid/ └── test/
This is the default format returned by Unity simulation engine.
| Static Method | validate |
Validate whether a split directory has the expected SOLO format. |
| Method | from |
Parse all SOLO data in a source dataset directory. |
| Method | from |
Parse one SOLO split into LDF records. |
| Method | _get |
List all annotation types present in the dataset. |
| Method | _get |
List class names for BoundingBox2DAnnotation type. |
| Method | _get |
List keypoint labels for all classes. |
Inherited from BaseParser:
| Class Method | discover |
Return present and valid split directories keyed by their canonical split names. |
| Class Method | validate |
Validate whether the dataset directory has the expected format. |
| Method | __init__ |
Create a parser for a target dataset. |
| Method | get |
Return parser issue messages collected during the last parse. |
| Method | parse |
Parse an entire dataset directory into the target dataset. |
| Method | parse |
Parse one split subdirectory into the target dataset. |
| Method | reset |
Clear collected parser issue messages. |
| Static Method | _apply |
Distribute images across splits based on requested counts. |
| Static Method | _apply |
Apply count-based split requests to existing splits. |
| Static Method | _canonicalize |
All current parsers use train and test split names whereas validation splits can vary in name between val valid and validation. |
| Static Method | _compare |
Compare sets of files by stem. |
| Static Method | _get |
Return unique images yielded by a dataset generator. |
| Static Method | _list |
List OpenCV-supported images in a directory. |
| Static Method | _sample |
Sample from each original split independently. |
| Method | _get |
Return parser issue messages collected during the last parse. |
| Method | _log |
Undocumented |
| Method | _parse |
Undocumented |
| Method | _parse |
Parse data in one split subdirectory. |
| Method | _remove |
Remove records that are not assigned to any split. |
| Method | _reset |
Clear collected parser issue messages and warning counters. |
| Method | _warn |
Undocumented |
| Method | _wrap |
Add configured task names to generated records. |
| Constant | _CANONICAL |
Undocumented |
| Constant | _SKIPPED |
Undocumented |
| Constant | _SPLIT |
Undocumented |
| Instance Variable | _dataset |
Undocumented |
| Instance Variable | _dataset |
Undocumented |
| Instance Variable | _full |
Undocumented |
| Instance Variable | _logged |
Undocumented |
| Instance Variable | _parser |
Undocumented |
| Instance Variable | _seen |
Undocumented |
| Instance Variable | _skipped |
Undocumented |
| Instance Variable | _suppressed |
Undocumented |
| Instance Variable | _task |
Undocumented |
Validate whether a split directory has the expected SOLO format.
| Parameters | |
splitPath | Path to a split directory. |
| Returns | |
dict[ | Keyword arguments for from_split, or None if the split is not in the expected format. |
Parse all SOLO data in a source dataset directory.
| Parameters | |
datasetPath | Source dataset directory. |
| Returns | |
tuple[ | Added images for the train, validation, and test splits. |
Parse one SOLO split into LDF records.
| Parameters | |
splitPath | Directory with SOLO sequences and annotations. |
| Returns | |
ParserOutput | Parser output containing annotation records, skeleton metadata, and added images. |
| Raises | |
FileNotFoundError | If the split directory, annotation definitions file, referenced image, or referenced mask does not exist. |
ValueError | If no bounding-box class names can be identified from annotation_definitions.json. |
List all annotation types present in the dataset.
| Parameters | |
annotationdict[ | Parsed annotation_definitions.json. |
| Returns | |
list[ | Annotation type names. |
List class names for BoundingBox2DAnnotation type.
| Parameters | |
annotationdict[ | Parsed annotation_definitions.json. |
| Returns | |
list[ | Bounding box class names. |