molmo_spaces¶
molmo_spaces
¶
Modules:
| Name | Description |
|---|---|
configs |
Configuration module for MolmoSpaces experiments. |
controllers |
|
data_generation |
|
env |
|
evaluation |
Evaluation utilities for MolmoSpaces benchmarks. |
grasp_generation |
|
housegen |
|
kinematics |
|
molmo_spaces_constants |
Constants and paths for the MolmoSpaces project. Paths should be provided as Path objects. |
planner |
|
policy |
|
renderer |
|
resources |
|
robots |
|
tasks |
|
utils |
|
Attributes:
| Name | Type | Description |
|---|---|---|
MOLMO_SPACES_BASE_DIR |
|
molmo_spaces_constants
¶
Constants and paths for the MolmoSpaces project. Paths should be provided as Path objects.
Overwrite in the environment with e.g.: MLSPACES_ASSETS_DIR=/Users/username/mlspaces_resources mjpython scripts/...
Functions:
| Name | Description |
|---|---|
single_thread_environment |
|
resource_manager_log_level |
|
register_user_asset_library |
Register a user-provided asset library. The library dir should contain an assets_index.json |
register_user_grasp_library |
Register a user-provided grasp library. The library dir should contain a grasps_index.json |
get_resource_manager |
|
get_scenes_root |
|
get_asset_id_to_object_type |
|
get_object_type_to_asset_ids |
|
get_scenes |
|
check_in_cache |
|
populate_cache |
|
get_ithor_houses |
Return {split: {index: xml_path_or_None}} for iTHOR houses. |
get_procthor_10k_houses |
Return {split: {index: xml_path_or_None}} for ProcTHOR-10k houses. |
get_procthor_objaverse_debug_houses |
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses. |
get_procthor_objaverse_houses |
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses. |
get_holodeck_objaverse_houses |
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses. |
get_robot_paths |
Return {robot_name: Path} for all prepackaged MlSpaces robot files. |
install_missing_source |
|
get_robot_path |
Return the path to the prepackaged MlSpaces robot file for the given robot name. |
print_license_info |
|
Attributes:
| Name | Type | Description |
|---|---|---|
ABS_PATH_OF_TOP_LEVEL_MOLMO_SPACES_DIR |
|
|
DATA_CACHE_DIR |
|
|
ASSETS_DIR |
|
|
ROBOTS_DIR |
|
|
OBJAVERSE_ASSETS_DIR |
|
|
PINNED_ASSETS_FILE |
|
|
USE_HUGGING_FACE |
|
|
DATA_TYPE_TO_SOURCE_TO_VERSION |
|
|
OBJECT_LIBRARY_TO_GRASP_LIBRARIES |
|
|
USER_ASSET_LIBRARIES |
dict[str, Path]
|
|
USER_GRASP_LIBRARIES |
dict[str, Path]
|
|
pinned_assets |
|
ABS_PATH_OF_TOP_LEVEL_MOLMO_SPACES_DIR
module-attribute
¶
DATA_CACHE_DIR
module-attribute
¶
ASSETS_DIR
module-attribute
¶
ASSETS_DIR = Path(get('MLSPACES_ASSETS_DIR', home() / '.cache' / 'molmospaces' / 'assets' / _install_hash))
OBJAVERSE_ASSETS_DIR
module-attribute
¶
OBJAVERSE_ASSETS_DIR = Path(get('MLSPACES_OBJAVERSE_ASSETS_DIR', ASSETS_DIR / 'objects' / 'objaverse'))
PINNED_ASSETS_FILE
module-attribute
¶
PINNED_ASSETS_FILE = Path(environ['MLSPACES_PINNED_ASSETS_FILE']) if 'MLSPACES_PINNED_ASSETS_FILE' in environ else None
DATA_TYPE_TO_SOURCE_TO_VERSION
module-attribute
¶
DATA_TYPE_TO_SOURCE_TO_VERSION = dict(robots={'rby1': '20251224', 'rby1m': '20251224', 'franka_droid': '20260127', 'franka_cap': '20260213', 'floating_rum': '20251110', 'floating_robotiq': '20260208_retry4', 'franka_fr3': '20260303', 'i2rt_yam': '20260223'}, scenes={'ithor': '20251217_with_occupancy', 'refs': '20250923', 'procthor-10k-train': '20251122_with_occupancy', 'procthor-10k-val': '20251217_with_occupancy', 'procthor-10k-test': '20251121_with_occupancy', 'holodeck-objaverse-train': '20251217_with_occupancy', 'holodeck-objaverse-val': '20251217_with_occupancy', 'procthor-objaverse-train': '20251205_with_occupancy', 'procthor-objaverse-val': '20251205_with_occupancy'}, objects={'thor': '20251117', 'objaverse': '20260131', 'objathor_metadata': '20260129'}, grasps={'droid': '20251116', 'droid_objaverse': '20251218'}, test_data={'franka_pick': '20260610', 'franka_pick_and_place': '20260529', 'rby1_door_opening': '20260228', 'rby1_pnp': '20260610', 'rum_open_close': '20260305', 'rum_pick': '20260209', 'test_randomized_data': '20251209', 'thormap': '20251209'}, benchmarks={'molmospaces-bench-v1': '20260408', 'molmospaces-bench-v2': '20260415'})
OBJECT_LIBRARY_TO_GRASP_LIBRARIES
module-attribute
¶
single_thread_environment
¶
Source code in molmo_spaces/molmo_spaces_constants.py
resource_manager_log_level
¶
register_user_asset_library
¶
Register a user-provided asset library. The library dir should contain an assets_index.json which contains a dict[str, UserAssetLibraryIndexEntry].
The library name must not conflict with a built-in object source or any other user-provided library.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the user-provided asset library. |
required |
path
|
Path
|
The path to the user-provided asset library directory. |
required |
Source code in molmo_spaces/molmo_spaces_constants.py
register_user_grasp_library
¶
Register a user-provided grasp library. The library dir should contain a grasps_index.json which contains a UserGraspLibraryIndex.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root_name
|
str
|
The root name of the grasp library, will be used with the robot name to form the grasp library name. |
required |
path
|
Path
|
The path to the user-provided grasp library directory. |
required |
object_library
|
str
|
The object library (user-provided or built-in) which this grasp library is for. It must have already been registered. |
required |
Source code in molmo_spaces/molmo_spaces_constants.py
get_resource_manager
¶
get_resource_manager(force_post_setup: bool = False, data_type_to_source_to_version: dict | None = None)
Source code in molmo_spaces/molmo_spaces_constants.py
get_scenes_root
¶
Source code in molmo_spaces/molmo_spaces_constants.py
get_asset_id_to_object_type
¶
Source code in molmo_spaces/molmo_spaces_constants.py
get_object_type_to_asset_ids
¶
Source code in molmo_spaces/molmo_spaces_constants.py
get_scenes
¶
get_scenes(dataset_name: str, split: str = 'train', return_version: bool = False) -> dict | tuple[dict, str | None]
Source code in molmo_spaces/molmo_spaces_constants.py
check_in_cache
¶
populate_cache
¶
Source code in molmo_spaces/molmo_spaces_constants.py
get_ithor_houses
¶
Return {split: {index: xml_path_or_None}} for iTHOR houses.
Source code in molmo_spaces/molmo_spaces_constants.py
get_procthor_10k_houses
¶
Return {split: {index: xml_path_or_None}} for ProcTHOR-10k houses.
Source code in molmo_spaces/molmo_spaces_constants.py
get_procthor_objaverse_debug_houses
¶
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses.
Source code in molmo_spaces/molmo_spaces_constants.py
get_procthor_objaverse_houses
¶
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses.
Source code in molmo_spaces/molmo_spaces_constants.py
get_holodeck_objaverse_houses
¶
Return {split: {index: xml_path_or_None}} for ProcTHOR Objaverse houses.
Source code in molmo_spaces/molmo_spaces_constants.py
get_robot_paths
¶
Return {robot_name: Path} for all prepackaged MlSpaces robot files.
Source code in molmo_spaces/molmo_spaces_constants.py
install_missing_source
¶
Source code in molmo_spaces/molmo_spaces_constants.py
get_robot_path
¶
Return the path to the prepackaged MlSpaces robot file for the given robot name.