pixano.app.cli.data
¶
import_data(data_dir=typer.Argument(..., exists=True, dir_okay=True, help='Path to data directory.'), source_dir=typer.Argument(..., exists=True, file_okay=False, dir_okay=True, help='Path to source dataset directory containing split folders.'), name=typer.Option(None, help='Dataset name. Defaults to source directory name.'), description=typer.Option('', help='Dataset description.'), type=typer.Option(DatasetType.image, help='Dataset type: image, video, or vqa.'), schema=typer.Option(None, help="Custom schema in 'path/to/file.py:ClassName' format. Uses the default schema for the type if omitted."), mode=typer.Option(ImportMode.create, help='Import mode: create, overwrite, or add.'), use_image_name_as_id=typer.Option(False, help='Use image file name as item ID.'))
¶
Import a dataset from an external source directory.
Copies media from SOURCE_DIR into data_dir/media/