datumaro.components.exporter#
Classes
|
Method generated by attrs for class ExportContext. |
|
|
|
|
|
Method generated by attrs for class ExportContext. |
- class datumaro.components.exporter.ExportErrorPolicy[source]#
Bases:
object
- report_item_error(error: Exception, *, item_id: Tuple[str, str]) None [source]#
Allows to report a problem with a dataset item. If this function returns, the converter must skip the item.
- class datumaro.components.exporter.FailingExportErrorPolicy[source]#
Bases:
ExportErrorPolicy
- class datumaro.components.exporter.ExportContext(progress_reporter=None, error_policy=None)[source]#
Bases:
object
Method generated by attrs for class ExportContext.
- progress_reporter: ProgressReporter#
- error_policy: ExportErrorPolicy#
- class datumaro.components.exporter.NullExportContext(progress_reporter=None, error_policy=None)[source]#
Bases:
ExportContext
Method generated by attrs for class ExportContext.
- progress_reporter: ProgressReporter#
- error_policy: ExportErrorPolicy#
- class datumaro.components.exporter.Exporter(extractor: IDataset, save_dir: str, *, save_media: bool | None = None, image_ext: str | None = None, default_image_ext: str | None = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: ExportContext | None = None)[source]#
Bases:
CliPlugin
- DEFAULT_IMAGE_EXT = None#
- class datumaro.components.exporter.ExportContextComponent(save_dir: str, save_media: bool, images_dir: str, pcd_dir: str, video_dir: str, crypter: ~datumaro.components.crypter.Crypter = <datumaro.components.crypter.NullCrypter object>, image_ext: str | None = None, default_image_ext: str | None = None, source_path: str | None = None)[source]#
Bases:
object
- find_image_ext(item: DatasetItem | Image)[source]#
- save_image(item: DatasetItem, *, encryption: bool = False, basedir: str | None = None, subdir: str | None = None, fname: str | None = None)[source]#
- save_point_cloud(item: DatasetItem, *, basedir: str | None = None, subdir: str | None = None, fname: str | None = None)[source]#