Folder

A Folder is a collection of data organized in files and directories. Files in folder, like dateset, could be used in labs for model training and validation.

The project folder page lists all project-scoped folders for the current project. A system folder is not accessible by a project before it is added as a project-scoped folder.

../_images/view_project_datasets.png

A folder could have multiple versions by creating snapshots and could also revert to a previous saved version. (snapshot only support btrfs filesystem)

Create and Manage a Project-Scoped Folder

To create a folder:

  1. Click on the ADD button in the folder page.

  2. Select the folder type and fill in the fields:

    1. Empty Folder (create an empty folder stored in the MLSteam system space):

      • Folder name: folder name

      ../_images/add_dataset_empty.png
    2. Mount NFS (mount an existing folder stored in a remote NFS space):

      • Name: folder name

      • NFS server path: NFS share path. E.g., 192.168.0.1:/nfs/folder-1

      ../_images/add_dataset_nfs.png
    3. Mount CIFS (mount an existing folder stored in a remote CIFS/SMB space):

      • Name: folder name

      • CIFS server path: CIFS share path. E.g., //192.168.0.1/share/folder-x

      • User: CIFS username

      • Password: CIFS password

      ../_images/add_dataset_cifs.png

    Note

    Using a mounted folder is essentially accessing a remote network folder. There are no requirements for the internal folder or file structure of a remote network folder to mount. Changes to such a folder will be written to the remote space.

  3. Click on the CREATE or the IMPORT button.

More operations on a folder are available in the folder page.

../_images/view_dataset.png

To create a folder in a folder:

  1. In the folder page, click on the NEW FOLDER button.

  2. Input the folder name.

  3. Click on the OK button.

To upload files to a folder, drag and drop the files into the files area.

../_images/add_file_1_1.png

Another method for file uploading:

  1. In the folder page, click on the New button, and select File From Disk or File From URL

    ../_images/add_file_from_disk.png
  2. To add files from disk, click on the BROWSE button and select a local file to upload. Repeat this step to add more files.

    ../_images/add_file_2_1a.png
  3. To add files from URL, input the remote link of web source data. Repeat this step to add more URLs.

    ../_images/add_file_2_1b.png

    Note

    Password-protected links are unsupported.

  4. Click on the UPLOAD button.

Note

To upload many files efficiently:

  1. Compress all files in an archive file (.zip, .tar, .tar.gz, or .tgz).

  2. Upload the archive file.

  3. Extract the files from the archive.

To extract the files from an archive:

  1. Select the archive file for extraction (.zip, .tar, .tar.gz, or .tgz).

  2. Click on the EXTRACT button.

  3. Click on the OK button.

To download a file from the folder:

  1. Select the file to download.

  2. Click on the Action button in the top toolbar or simply right-click, then select download in function list.

To delete one or multiple files from the folder:

  1. Select the file(s) to delete.

  2. Click on the Action button in the top toolbar or simply right-click, then select delete in function list.

Create a Project-Scoped Folder by Cloning

In situations where modifications to a read-only folder (such as a built-in folder) is needed, or to leverage a folder that belongs to another project, one could clone the folder of interest and use the clone instead.

To clone a folder:

  1. Click on the ADD button in the folder page.

  2. Select Import folder from the menu.

  3. Select the folder to clone.

    Note

    folder belonging to the current project are not listed here. To modify such a folder and to preserve its current data, snapshot the folder instead.

  4. Click on the IMPORT button.

    ../_images/copy_dataset_1.png

Note

The cloned folder will belong to the current project and be accessible by the labs and pipeline in the same project.

Delete a Folder

To delete a folder:

  1. Clock on the delete button.

    ../_images/del_dataset_1.png
  2. Click on the OK button.

Note

  1. Deleting a mounted folder does not delete the folder contents; it only removes the linkage to the remote space.

  2. Deleting a folder does not affect its cloned folder(s).

Preview Bounding Box Images in a folder

To preview the bounding box images in a labelled folder:

  1. Select the folder that contains the labelled images.

  2. Click on the VISUALIZE button.

  3. Select the label format yolo.

    ../_images/view_labelled_dataset_1.png
  4. Fill in the fields:

    • class_file: file specifying the label index names

    • label_path: directory for label files

    • predict_path: (optional) model prediction results

    ../_images/view_labelled_dataset_2.png

    Note

    A path could be:

    • Relative path: starting from the current displayed directory

    • Absolute path: prefixed by /, starting from the root directory of the dataset

  5. Click on the SUBMIT button.

The related files and directories will then be added the yolo tags. Bounding boxes and the index names are displayed in the preview area.

../_images/view_labelled_dataset_3.png

Yolo tags could also be removed by clicking on the cross button in the end of tag.

../_images/del_dataset_tag.png

Snapshot a Folder (only support btrfs filesystem)

To save the current folder version (snapshot):

  1. In the folder page, click on the VERSIONING button.

    ../_images/btn_versioning.png
  2. Fill in the version name.

  3. Click on the add button.

    ../_images/add_dataset_version_1.png

To restore the folder to a saved version:

  1. In the folder page, click on the VERSIONING button.

  2. Click on the Restore button for the version.

    ../_images/restore_dataset_version_1.png