mani_skill.utils.assets.data#

Asset sources and tooling for managing the assets

Attributes#

DATA_GROUPS

Data groups map group ids (typically environment IDs) to a list of data source/group IDs for easy group management. data groups can be done hierarchicaly

DATA_SOURCES

Data sources map data source IDs to their respective DataSource objects which contain info on what the data is and where to download it

Classes#

Functions#

expand_data_group_into_individual_data_source_ids(...)

Expand a data group into a list of individual data source IDs

initialize_data_sources()

is_data_source_downloaded(data_source_id)

Module Contents#

class mani_skill.utils.assets.data.DataSource[source]#
checksum: str | None = None[source]#
filename: str | None = None[source]#

name to change the downloaded file to. If None, will not change the name

github_url: str | None = None[source]#
hf_repo_id: str | None = None[source]#
output_dir: str[source]#
source_type: str[source]#

what kind of data is this

target_path: str | None = None[source]#

the folder where the file will be downloaded to

url: str | None = None[source]#
zip_dirname: str | None = None[source]#

what to rename a zip files generated directory to

mani_skill.utils.assets.data.expand_data_group_into_individual_data_source_ids(data_group_id)[source]#

Expand a data group into a list of individual data source IDs

Parameters:

data_group_id (str) –

mani_skill.utils.assets.data.initialize_data_sources()[source]#
mani_skill.utils.assets.data.is_data_source_downloaded(data_source_id)[source]#
Parameters:

data_source_id (str) –

mani_skill.utils.assets.data.DATA_GROUPS: dict[str, list[str]][source]#

Data groups map group ids (typically environment IDs) to a list of data source/group IDs for easy group management. data groups can be done hierarchicaly

mani_skill.utils.assets.data.DATA_SOURCES: dict[str, DataSource][source]#

Data sources map data source IDs to their respective DataSource objects which contain info on what the data is and where to download it