diff --git a/docs/source/docs/data-formats/datumaro_format.md b/docs/source/docs/data-formats/datumaro_format.md index abc68d4264..d16282eeab 100644 --- a/docs/source/docs/data-formats/datumaro_format.md +++ b/docs/source/docs/data-formats/datumaro_format.md @@ -8,7 +8,7 @@ with different tasks and formats, we provide a novel Datumaro format with `.json extensions. A variety of metadata can be stored in the datumaro format. First of all, `dm_format_version` field -is provided for backward compatibility to help with data version tracing.And various metadata can be +is provided for backward compatibility to help with data version tracing and various metadata can be added to the `info` field. For example, you can record task types such as detection and segmentation, or record data creation time. Labels and attributes can be saved in the `categories` field, and mask colormap information can be saved. In addition, in the datumaro format, in order to respond to diff --git a/docs/source/docs/data-formats/media_formats.md b/docs/source/docs/data-formats/media_formats.md index d1aecb937b..c400eecaed 100644 --- a/docs/source/docs/data-formats/media_formats.md +++ b/docs/source/docs/data-formats/media_formats.md @@ -9,8 +9,9 @@ To create an unlabelled dataset from an arbitrary directory with images use `image_dir` and `image_zip` formats: ``` bash -datum create -o -datum import -p -f image_dir +cd +datum project create +datum project import -f image_dir ``` or, if you work with Datumaro API: @@ -20,8 +21,8 @@ or, if you work with Datumaro API: ```python from datumaro.project import Project - project = Project.init() - project.import_source('source1', format='image_dir', url='directory/path/') + project = Project.init('/path/to/project') + project.import_source('source1', format='image_dir', url='/path/to/directory/containing/images') dataset = project.working_tree.make_dataset() ``` @@ -30,7 +31,7 @@ or, if you work with Datumaro API: ```python from datumaro import Dataset - dataset = Dataset.import_from('directory/path/', 'image_dir') + dataset = Dataset.import_from('/path/to/directory/containing/images', 'image_dir') ``` This will search for images in the directory recursively and add @@ -57,14 +58,15 @@ Alternatively, you can use the `video_frames` format directly: > splitting the video into frames by any method. ``` bash -datum create -o -datum import -p -f video_frames