data_generation¶
data_generation
¶
Modules:
| Name | Description |
|---|---|
config |
Data generation configuration files. |
config_registry |
Configuration registry for data generation experiments. |
main |
|
pipeline |
|
config
¶
Data generation configuration files.
All config classes in this directory will be automatically discovered and registered when the main data generation script runs.
Modules:
| Name | Description |
|---|---|
benchmarks_datagen_configs |
Sepeare file containing imported benchmark tasks. |
door_opening_configs |
|
nav_to_obj_configs |
Data generation configs for RBY1 navigation to object tasks. |
object_manipulation_datagen_configs |
Data generation configs for Franka move-to-pose tasks. |
benchmarks_datagen_configs
¶
Sepeare file containing imported benchmark tasks.
Why: Some old benchmarks ~18 DEC 2025 were generated with these, and because we pickle the tasks they need to be accessible in the same location. When no longer using the old benchmarks this file can be removed.
Moving benchmarks configs to this file caused some complications with imports, so we undid that change.
door_opening_configs
¶
Classes:
| Name | Description |
|---|---|
DoorOpeningDataGenConfig |
All-ProcTHOR variant for RBY1 door opening dataset generation. |
DoorOpeningDebugConfig |
Debug config for door opening dataset generation. |
DoorOpeningDataGenConfig
¶
Bases: MlSpacesExpConfig
All-ProcTHOR variant for RBY1 door opening dataset generation.
Iterates through multiple houses from the ProcTHOR dataset for large-scale data generation. This is the main config - use DoorOpeningDebugConfig for single-scene testing.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize policy config after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
CameraConfig |
type
|
|
PolicyConfig |
type
|
|
RobotConfig |
type
|
|
benchmark_path |
Path | None
|
|
camera_config |
RBY1GoProD455CameraSystem
|
|
collision_free_pose_limit |
int
|
|
config_version |
str
|
|
ctrl_dt_ms |
float
|
|
data_split |
str
|
|
datagen_profiler |
bool
|
|
end_on_success |
bool
|
|
environment_light_intensity |
float
|
|
eval_runtime_params |
Any
|
|
filter_for_successful_trajectories |
bool
|
|
fps |
float
|
|
log_level |
str
|
|
num_envs |
int
|
|
num_workers |
int
|
|
output_dir |
Path
|
|
policy_config |
DoorOpeningPolicyConfig | None
|
|
policy_dt_ms |
float
|
|
profile |
bool
|
|
profiler |
Profiler | None
|
|
robot_config |
RBY1MConfig
|
|
scene_dataset |
str
|
|
seed |
int | None
|
|
sim_dt_ms |
float
|
|
tag |
str
|
A string describing the experiment. |
task_config |
DoorOpeningTaskConfig
|
|
task_config_preset_exp |
AllTaskConfigs | None
|
|
task_config_preset_scn |
AllTaskConfigs | None
|
|
task_horizon |
int
|
|
task_sampler_config |
DoorOpeningTaskSamplerConfig
|
|
task_type |
str
|
|
use_passive_viewer |
bool
|
|
use_wandb |
bool
|
|
viewer_cam_dict |
dict
|
|
wandb_name |
str | None
|
|
wandb_project |
str
|
|
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1GoProD455CameraSystem = RBY1GoProD455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ABS_PATH_OF_TOP_LEVEL_MOLMO_SPACES_DIR / 'experiment_output'
policy_config
class-attribute
instance-attribute
¶
policy_config: DoorOpeningPolicyConfig | None = None
task_config
class-attribute
instance-attribute
¶
task_config: DoorOpeningTaskConfig = DoorOpeningTaskConfig(task_cls=DoorOpeningTask)
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: DoorOpeningTaskSamplerConfig = DoorOpeningTaskSamplerConfig(task_sampler_class=DoorOpeningTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
BaseRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
AllTaskConfigs | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize policy config after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/door_opening_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
DoorOpeningDebugConfig
¶
Bases: DoorOpeningDataGenConfig
Debug config for door opening dataset generation.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize policy config after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
tag |
A string describing the experiment. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
CameraConfig |
type
|
|
PolicyConfig |
type
|
|
RobotConfig |
type
|
|
benchmark_path |
Path | None
|
|
camera_config |
RBY1GoProD455CameraSystem
|
|
collision_free_pose_limit |
int
|
|
config_version |
str
|
|
ctrl_dt_ms |
float
|
|
data_split |
str
|
|
datagen_profiler |
bool
|
|
end_on_success |
bool
|
|
environment_light_intensity |
float
|
|
eval_runtime_params |
Any
|
|
filter_for_successful_trajectories |
bool
|
|
fps |
float
|
|
log_level |
str
|
|
num_envs |
int
|
|
num_workers |
int
|
|
output_dir |
Path
|
|
policy_config |
DoorOpeningPolicyConfig | None
|
|
policy_dt_ms |
float
|
|
profile |
bool
|
|
profiler |
Profiler | None
|
|
robot_config |
RBY1MConfig
|
|
scene_dataset |
str
|
|
seed |
int | None
|
|
sim_dt_ms |
float
|
|
task_config |
DoorOpeningTaskConfig
|
|
task_config_preset_exp |
AllTaskConfigs | None
|
|
task_config_preset_scn |
AllTaskConfigs | None
|
|
task_horizon |
int
|
|
task_sampler_config |
DoorOpeningTaskSamplerConfig
|
|
task_type |
str
|
|
use_passive_viewer |
bool
|
|
use_wandb |
bool
|
|
viewer_cam_dict |
dict
|
|
wandb_name |
str | None
|
|
wandb_project |
str
|
|
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1GoProD455CameraSystem = RBY1GoProD455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ABS_PATH_OF_TOP_LEVEL_MOLMO_SPACES_DIR / 'experiment_output' / 'door_opening_debug'
policy_config
class-attribute
instance-attribute
¶
policy_config: DoorOpeningPolicyConfig | None = None
task_config
class-attribute
instance-attribute
¶
task_config: DoorOpeningTaskConfig = DoorOpeningTaskConfig(task_cls=DoorOpeningTask)
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: DoorOpeningTaskSamplerConfig = DoorOpeningTaskSamplerConfig(task_sampler_class=DoorOpeningTaskSampler, samples_per_house=1, house_inds=[22])
viewer_cam_dict
class-attribute
instance-attribute
¶
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
BaseRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
AllTaskConfigs | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize policy config after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/door_opening_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
tag
¶
to_dict
¶
nav_to_obj_configs
¶
Data generation configs for RBY1 navigation to object tasks.
These configs subclass from NavToObjBaseConfig and are registered for use in the data generation pipeline.
Classes:
| Name | Description |
|---|---|
NavToObjDataGenConfig |
Data generation config for RBY1 navigation to object tasks. |
NavToObjDataGenConfig
¶
Bases: NavToObjBaseConfig
Data generation config for RBY1 navigation to object tasks.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1MjcfCameraSystem = RBY1MjcfCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'nav_to_obj_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = AStarNavToObjPolicyConfig()
task_config
class-attribute
instance-attribute
¶
task_config: NavToObjTaskConfig = NavToObjTaskConfig(task_cls=NavToObjTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: NavToObjTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: NavToObjTaskSamplerConfig = NavToObjTaskSamplerConfig(task_sampler_class=NavToObjTaskSampler, pickup_types=None, robot_safety_radius=0.35, robot_object_z_offset=0.1, base_pose_sampling_radius_range=(4.0, 20.0), face_target=False, max_robot_placement_attempts=10, filter_for_successful_trajectories=True)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': array([0.0, 0.0, 0.5])}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
RBY1MjcfCameraSystem | None
|
|
robot_config |
RBY1Config | None
|
|
task_cls_str |
str | None
|
|
task_config |
NavToObjTaskConfig | None
|
|
camera_config
class-attribute
instance-attribute
¶camera_config: RBY1MjcfCameraSystem | None = None
Config
¶ load_from_json
classmethod
¶load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
save_to_json
¶ to_dict
¶
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/nav_to_obj_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
object_manipulation_datagen_configs
¶
Data generation configs for Franka move-to-pose tasks.
These configs subclass from the base_pick_config and are registered for use in the data generation pipeline.
Classes:
FrankaCloseDataGenConfig
¶
Bases: ClosingBaseConfig
Data generation config for Franka open task.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'close_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = OpenClosePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: OpeningTaskConfig = OpeningTaskConfig(task_cls=OpeningTask, task_success_threshold=0.85, joint_index=0, any_inst_of_category=False)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: OpeningTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: OpenTaskSamplerConfig = OpenTaskSamplerConfig(task_sampler_class=OpenTaskSampler, target_initial_state_open_percentage=0.5)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaCloseHardBench
¶
Bases: ClosingBaseConfig
Data generation config for Franka open task.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'close_bench'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = OpenClosePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: OpeningTaskConfig = OpeningTaskConfig(task_cls=OpeningTask, task_success_threshold=0.85, joint_index=0, any_inst_of_category=False)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: OpeningTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: OpenTaskSamplerConfig = OpenTaskSamplerConfig(task_sampler_class=OpenTaskSampler, target_initial_state_open_percentage=0.5, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaOpenDataGenConfig
¶
Bases: OpeningBaseConfig
Data generation config for Franka open task.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'open_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = OpenClosePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: OpeningTaskConfig = OpeningTaskConfig(task_cls=OpeningTask, task_success_threshold=0.15, joint_index=0, any_inst_of_category=True)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: OpeningTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: OpenTaskSamplerConfig = OpenTaskSamplerConfig(task_sampler_class=OpenTaskSampler, target_initial_state_open_percentage=0)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaOpenHardBench
¶
Bases: OpeningBaseConfig
Data generation config for Franka open task.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'open_bench'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = OpenClosePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: OpeningTaskConfig = OpeningTaskConfig(task_cls=OpeningTask, task_success_threshold=0.15, joint_index=0, any_inst_of_category=True)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: OpeningTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: OpenTaskSamplerConfig = OpenTaskSamplerConfig(task_sampler_class=OpenTaskSampler, target_initial_state_open_percentage=0, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceColorDataGenConfig
¶
Bases: PickAndPlaceColorDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaRandomizedD405D455CameraSystem = FrankaRandomizedD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_colors_randomized_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceColorPlannerPolicyConfig = PickAndPlaceColorPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: FrankaRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceColorTaskConfig = PickAndPlaceColorTaskConfig(task_cls=PickAndPlaceColorTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceColorTaskSamplerConfig = PickAndPlaceColorTaskSamplerConfig(task_sampler_class=PickAndPlaceColorTaskSampler, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceColorDroidDataGenConfig
¶
Bases: PickAndPlaceColorDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_colors_droid_randomized_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceColorPlannerPolicyConfig = PickAndPlaceColorPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: FrankaRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceColorTaskConfig = PickAndPlaceColorTaskConfig(task_cls=PickAndPlaceColorTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceColorTaskSamplerConfig = PickAndPlaceColorTaskSamplerConfig(task_sampler_class=PickAndPlaceColorTaskSampler, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceColorOmniCamConfig
¶
Bases: PickAndPlaceColorDataGenConfig
Data generation config for Franka pick task with Omni-directional cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_color_omni_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceColorPlannerPolicyConfig = PickAndPlaceColorPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceColorTaskConfig = PickAndPlaceColorTaskConfig(task_cls=PickAndPlaceColorTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceColorTaskSamplerConfig = PickAndPlaceColorTaskSamplerConfig(task_sampler_class=PickAndPlaceColorTaskSampler, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceDataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaRandomizedDroidCameraSystem = FrankaRandomizedDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_randomized_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceDroidDataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_droid_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceEasyDataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaEasyRandomizedDroidCameraSystem = FrankaEasyRandomizedDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_randomized_easy_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceGoProD405D455DataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaGoProD405D455CameraSystem = FrankaGoProD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_go_pro_d405_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceGoProD405D455DataGenConfigDebug
¶
Bases: FrankaPickAndPlaceDroidDataGenConfig
Data generation config for Franka pick and place task with GoPro D405 cameras - deterministic version.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaGoProD405D455CameraSystem = FrankaGoProD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_go_pro_d405_v1_debug'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, samples_per_house=10, max_tasks=100, house_inds=[2])
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceNextToDataGenConfig
¶
Bases: PickAndPlaceNextToDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaRandomizedD405D455CameraSystem = FrankaRandomizedD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_next_to_randomized_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceNextToPlannerPolicyConfig = PickAndPlaceNextToPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceNextToTaskConfig = PickAndPlaceNextToTaskConfig(task_cls=PickAndPlaceNextToTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceNextToTaskSamplerConfig = PickAndPlaceNextToTaskSamplerConfig(task_sampler_class=PickAndPlaceNextToTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceNextToDroidDataGenConfig
¶
Bases: PickAndPlaceNextToDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_next_to_droid_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceNextToPlannerPolicyConfig = PickAndPlaceNextToPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceNextToTaskConfig = PickAndPlaceNextToTaskConfig(task_cls=PickAndPlaceNextToTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceNextToTaskSamplerConfig = PickAndPlaceNextToTaskSamplerConfig(task_sampler_class=PickAndPlaceNextToTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceNextToOmniCamConfig
¶
Bases: PickAndPlaceNextToDataGenConfig
Data generation config for Franka pick task with Omni-directional cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_next_to_omni_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceNextToPlannerPolicyConfig = PickAndPlaceNextToPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceNextToTaskConfig = PickAndPlaceNextToTaskConfig(task_cls=PickAndPlaceNextToTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceNextToTaskSamplerConfig = PickAndPlaceNextToTaskSamplerConfig(task_sampler_class=PickAndPlaceNextToTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickAndPlaceOmniCamConfig
¶
Bases: PickAndPlaceDataGenConfig
Data generation config for Franka pick task with Omni-directional cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_and_place_omni_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickBatchTestConfig
¶
Bases: PickBaseConfig
Minimal config to test local batch-based work distribution.
Single house, 12 episodes split into 3 batches of 4, processed by 2 workers. Output: house_7/trajectories_batch_{1,2,3}_of_3.h5
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_batch_test'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler, house_inds=[7], samples_per_house=12, episodes_per_batch=4)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickDroidBench
¶
Bases: PickBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_obja_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler, samples_per_house=40, house_inds=list(range(101)))
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickDroidDataGenConfig
¶
Bases: PickBaseConfig
Data generation config for Franka pick task with DROID-style fixed cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_droid_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickDroidMiniBench
¶
Bases: PickBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_droid_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler, samples_per_house=40, house_inds=list(range(101)))
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickGoProD405D455DataGenConfig
¶
Bases: PickBaseConfig
Data generation config for Franka pick task with GoPro D405 cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaGoProD405D455CameraSystem = FrankaGoProD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_go_pro_d405_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickHardBench
¶
Bases: PickBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_hard_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickOmniCamAblationConfig
¶
Bases: FrankaPickOmniCamConfig
Data generation config for Franka pick task with Omni-directional cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_omni_v1_cam_ablation'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler, added_pickup_objects=None)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/object_manipulation_datagen_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickOmniCamConfig
¶
Bases: PickBaseConfig
Data generation config for Franka pick task with Omni-directional cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_omni_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickRandomizedDataGenConfig
¶
Bases: PickBaseConfig
Data generation config for Franka pick task with randomized exocentric cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaRandomizedD405D455CameraSystem = FrankaRandomizedD405D455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pick_randomized_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceColorDroidBench
¶
Bases: PickAndPlaceColorDataGenConfig
Data generation config for Franka pick task with DROID-style fixed cameras.
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_color_obja_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceColorPlannerPolicyConfig = PickAndPlaceColorPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceColorTaskConfig = PickAndPlaceColorTaskConfig(task_cls=PickAndPlaceColorTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceColorTaskSamplerConfig = PickAndPlaceColorTaskSamplerConfig(task_sampler_class=PickAndPlaceColorTaskSampler, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceColorHardBench
¶
Bases: PickAndPlaceColorDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_color_hard_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceColorPlannerPolicyConfig = PickAndPlaceColorPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceColorTaskConfig = PickAndPlaceColorTaskConfig(task_cls=PickAndPlaceColorTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceColorTaskSamplerConfig = PickAndPlaceColorTaskSamplerConfig(task_sampler_class=PickAndPlaceColorTaskSampler, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceDroidBench
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_obja_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=40, house_inds=list(range(101)))
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceDroidMiniBench
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_droid_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=40, house_inds=list(range(101)))
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceHardBench
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_hard_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceNextToDroidBench
¶
Bases: PickAndPlaceNextToDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaDroidCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_next_to_obja_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceNextToPlannerPolicyConfig = PickAndPlaceNextToPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceNextToTaskConfig = PickAndPlaceNextToTaskConfig(task_cls=PickAndPlaceNextToTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceNextToTaskSamplerConfig = PickAndPlaceNextToTaskSamplerConfig(task_sampler_class=PickAndPlaceNextToTaskSampler, pickup_types=PICK_AND_PLACE_OBJECTS, samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
FrankaPickandPlaceNextToHardBench
¶
Bases: PickAndPlaceNextToDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaOmniPurposeCameraSystem = FrankaOmniPurposeCameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'benchmark' / 'pick_and_place_next_to_hard_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlaceNextToPlannerPolicyConfig = PickAndPlaceNextToPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: BaseRobotConfig = FrankaRobotConfig(init_qpos_noise_range={'arm': [0.26] * 6 + [pi / 2]})
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceNextToTaskConfig = PickAndPlaceNextToTaskConfig(task_cls=PickAndPlaceNextToTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceNextToTaskSamplerConfig(task_sampler_class=PickAndPlaceNextToTaskSampler, robot_object_z_offset_random_min=-0.25, robot_object_z_offset_random_max=0.25, robot_placement_rotation_range_rad=0.52)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
RBY1OpenDataGenConfig
¶
Bases: OpeningBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1GoProD455CameraSystem = RBY1GoProD455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'rby1_open_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: BasePolicyConfig = CuroboOpenClosePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: RBY1MOpenCloseConfig = RBY1MOpenCloseConfig()
task_config
class-attribute
instance-attribute
¶
task_config: OpeningTaskConfig = OpeningTaskConfig(task_cls=OpeningTask, task_success_threshold=0.15, joint_index=0, any_inst_of_category=True)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: OpeningTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: OpenTaskSamplerConfig = OpenTaskSamplerConfig(task_sampler_class=OpenTaskSampler, target_initial_state_open_percentage=0, robot_safety_radius=0.2, base_pose_sampling_radius_range=(0.3, 1.0))
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/object_manipulation_datagen_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
RBY1PickAndPlaceDataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1GoProD455CameraSystem = RBY1GoProD455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'rby1_pick_and_place_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: CuroboPickAndPlacePlannerPolicyConfig | None = None
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceTaskSampler, pickup_types=[], samples_per_house=20)
viewer_cam_dict
class-attribute
instance-attribute
¶
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/object_manipulation_datagen_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
RBY1PickDataGenConfig
¶
Bases: PickBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: RBY1GoProD455CameraSystem = RBY1GoProD455CameraSystem()
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'rby1_pick_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: CuroboPickAndPlacePlannerPolicyConfig | None = None
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickTaskSamplerConfig = PickTaskSamplerConfig(task_sampler_class=PickTaskSampler)
viewer_cam_dict
class-attribute
instance-attribute
¶
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/data_generation/config/object_manipulation_datagen_configs.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
RUMPickAndPlaceMultiDataGenConfig
¶
Bases: PickAndPlaceDataGenConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaRandomizedD405D455CameraSystem(img_resolution=(960, 720), visibility_constraints=None, allow_relaxed_constraints=True)
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'pnpmulti_V1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickAndPlacePlannerPolicyConfig = PickAndPlacePlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: FloatingRUMRobotConfig = FloatingRUMRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickAndPlaceTaskConfig = PickAndPlaceTaskConfig(task_cls=PickAndPlaceTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: PickAndPlaceTaskSamplerConfig = PickAndPlaceTaskSamplerConfig(task_sampler_class=PickAndPlaceMultiTaskSampler, pickup_types=None, samples_per_house=20, house_inds=[7], robot_object_z_offset=0.2, check_robot_placement_visibility=False)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickAndPlaceTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
RUMPickDataGenConfig
¶
Bases: PickBaseConfig
Classes:
| Name | Description |
|---|---|
Config |
|
SavedEpisode |
Config informationd describing a sinlge episode |
Methods:
| Name | Description |
|---|---|
freeze_task_config |
Saves the state of a sampled task i.e. an episode |
from_dict |
Create a configuration instance from a dictionary. |
load_config |
Loads a configuration from a file |
load_from_json |
Load the configuration from a JSON file. |
model_post_init |
Initialize and validate configuration after Pydantic model initialization |
save_config |
Saves the current configuration to the output directory |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
camera_config
class-attribute
instance-attribute
¶
camera_config: FrankaDroidCameraSystem = FrankaRandomizedD405D455CameraSystem(img_resolution=(960, 720))
environment_light_intensity
class-attribute
instance-attribute
¶
filter_for_successful_trajectories
class-attribute
instance-attribute
¶
output_dir
class-attribute
instance-attribute
¶
output_dir: Path = ASSETS_DIR / 'experiment_output' / 'datagen' / 'rum_pick_v1'
policy_config
class-attribute
instance-attribute
¶
policy_config: PickPlannerPolicyConfig = PickPlannerPolicyConfig()
robot_config
class-attribute
instance-attribute
¶
robot_config: FloatingRUMRobotConfig = FloatingRUMRobotConfig()
task_config
class-attribute
instance-attribute
¶
task_config: PickTaskConfig = PickTaskConfig(task_cls=PickTask)
task_config_preset
class-attribute
instance-attribute
¶
task_config_preset: PickTaskConfig | None = None
task_config_preset_exp
class-attribute
instance-attribute
¶
task_config_preset_exp: AllTaskConfigs | None = None
task_config_preset_scn
class-attribute
instance-attribute
¶
task_config_preset_scn: AllTaskConfigs | None = None
task_sampler_config
class-attribute
instance-attribute
¶
task_sampler_config: RUMPickTaskSamplerConfig = RUMPickTaskSamplerConfig(task_sampler_class=PickTaskSampler, robot_object_z_offset=0)
viewer_cam_dict
class-attribute
instance-attribute
¶
viewer_cam_dict: dict = {'distance': 5.0, 'azimuth': 45.0, 'elevation': -30.0, 'lookat': [0.0, 0.0, 0.5]}
wandb_project
class-attribute
instance-attribute
¶
Config
¶
SavedEpisode
¶
Bases: Config
Config informationd describing a sinlge episode
Classes:
| Name | Description |
|---|---|
Config |
|
Methods:
| Name | Description |
|---|---|
from_dict |
Create a configuration instance from a dictionary. |
load_from_json |
Load the configuration from a JSON file. |
save_to_json |
Save the configuration to a JSON file. |
to_dict |
Convert the configuration to a dictionary. |
to_json |
|
Attributes:
| Name | Type | Description |
|---|---|---|
camera_config |
AllCameraSystems | None
|
|
robot_config |
FrankaRobotConfig | None
|
|
task_cls_str |
str | None
|
|
task_config |
PickTaskConfig | None
|
|
freeze_task_config
¶
freeze_task_config(observation, task: BaseMujocoTask = None) -> None
Saves the state of a sampled task i.e. an episode
Source code in molmo_spaces/configs/abstract_exp_config.py
load_config
staticmethod
¶
load_config(output_dir: Path) -> MlSpacesExpConfig
Loads a configuration from a file
Source code in molmo_spaces/configs/abstract_exp_config.py
load_from_json
classmethod
¶
load_from_json(file_path: str) -> Config
Load the configuration from a JSON file.
model_post_init
¶
Initialize and validate configuration after Pydantic model initialization
Source code in molmo_spaces/configs/base_pick_config.py
save_config
¶
Saves the current configuration to the output directory
Source code in molmo_spaces/configs/abstract_exp_config.py
save_to_json
¶
to_dict
¶
config_registry
¶
Configuration registry for data generation experiments.
This registry allows multiple config classes to be defined in any file structure, without strict naming conventions. Simply register your config classes here.
Functions:
| Name | Description |
|---|---|
get_config_class |
Get a config class by name from the registry. |
get_registry_size |
Get the number of registered configs. |
list_available_configs |
List all available config names in the registry. |
register_config |
Decorator to register a config class in the registry. |
Attributes:
| Name | Type | Description |
|---|---|---|
log |
|
get_config_class
¶
get_config_class(name: str) -> type[MlSpacesExpConfig]
Get a config class by name from the registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the config class |
required |
Returns:
| Type | Description |
|---|---|
type[MlSpacesExpConfig]
|
The config class |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the config name is not found |
Source code in molmo_spaces/data_generation/config_registry.py
get_registry_size
¶
list_available_configs
¶
register_config
¶
Decorator to register a config class in the registry.
Usage
@register_config("MyExperimentConfig") class MyExperimentConfig(MlSpacesExpConfig): ...
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name to register this config under (used in command line) |
required |
Source code in molmo_spaces/data_generation/config_registry.py
main
¶
Functions:
| Name | Description |
|---|---|
auto_import_configs |
Auto-import all config files so they register themselves |
get_args |
|
main |
|
auto_import_configs
¶
Auto-import all config files so they register themselves
Source code in molmo_spaces/data_generation/main.py
get_args
¶
Source code in molmo_spaces/data_generation/main.py
main
¶
Source code in molmo_spaces/data_generation/main.py
pipeline
¶
Classes:
| Name | Description |
|---|---|
ParallelRolloutRunner |
Orchestrates parallel house processing for offline data generation using multiprocessing. |
Functions:
| Name | Description |
|---|---|
cleanup_context |
Context manager to ensure proper cleanup of MuJoCo resources |
cleanup_episode_resources |
Cleanup resources after an episode. |
get_detailed_memory_info |
Get detailed memory usage information |
get_process_memory |
Get current memory usage of the process in MB |
house_processing_worker |
Standalone worker function that processes work items sequentially from a shared counter. |
log_detailed_memory |
Log detailed memory usage information |
log_memory_usage |
Log current memory usage |
save_house_trajectories |
Batch and save trajectory data for a house. |
setup_house_dirs |
Setup output directories and check for existing output. |
setup_policy |
Create or return policy for episode. |
setup_viewer |
Setup passive viewer if configured. |
Attributes:
| Name | Type | Description |
|---|---|---|
mp_context |
|
mp_context
module-attribute
¶
ParallelRolloutRunner
¶
ParallelRolloutRunner(exp_config: MlSpacesExpConfig)
Orchestrates parallel house processing for offline data generation using multiprocessing.
This class is designed for data generation workloads where: - Each worker processes complete houses independently - Task sampling involves heavy Python operations (scene setup, randomization) - Workers can run in separate processes for true parallelism
Note: This is would be an inefficient runner for RL training, and is only intended for data generation or online evaluation tasks. For RL with vectorized environments, consider implementing a separate RLRolloutRunner that works without the multiprocessing overhead, and move threading into env.py with a MJXMuJoCoEnv class or similar.
Customization via Subclassing
You can customize rollout behavior by subclassing this runner and overriding the
static methods run_single_rollout and/or process_single_house.
Example: class CustomRolloutRunner(ParallelRolloutRunner): @staticmethod def run_single_rollout(episode_seed, task, policy, kwargs): # Add custom logging or behavior print(f"Starting rollout with seed {episode_seed}") return ParallelRolloutRunner.run_single_rollout( episode_seed, task, policy, kwargs )
# Use your custom runner
runner = CustomRolloutRunner(exp_config)
runner.run() # Workers will use CustomRolloutRunner.run_single_rollout!
Initialize the parallel rollout runner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
Methods:
| Name | Description |
|---|---|
get_episode_seed |
Get seed for episode. |
get_episode_spec_at_index |
Get episode specification at given index. |
get_episode_task_sampler |
Get task sampler for episode. Override to create per-episode samplers. |
get_max_episode_attempts |
Get maximum number of episode attempts for this house. |
load_episodes_for_house |
Load episode specifications for a house. |
prepare_episode_config |
Prepare config for a specific episode. Override to modify config per-episode. |
process_single_house |
Process all episodes for a single house using customizable hooks. |
run |
Run house-by-house rollouts using multiprocessing workers. |
run_single_rollout |
Execute a single rollout with the given task and policy. |
sample_task_from_spec |
Sample task from specification. |
should_close_episode_task_sampler |
Whether to close task sampler after each episode. |
should_stop_early |
Whether to stop before processing all episodes (e.g., enough successes). |
Attributes:
Source code in molmo_spaces/data_generation/pipeline.py
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | |
max_allowed_sequential_irrecoverable_failures
instance-attribute
¶
max_allowed_sequential_rollout_failures
instance-attribute
¶
max_allowed_sequential_task_sampler_failures
instance-attribute
¶
get_episode_seed
staticmethod
¶
get_episode_spec_at_index
staticmethod
¶
get_episode_task_sampler
staticmethod
¶
get_episode_task_sampler(exp_config: MlSpacesExpConfig, episode_spec, shared_task_sampler, datagen_profiler: DatagenProfiler | None) -> Any
Get task sampler for episode. Override to create per-episode samplers.
Source code in molmo_spaces/data_generation/pipeline.py
get_max_episode_attempts
staticmethod
¶
get_max_episode_attempts(episode_specs: list, samples_per_house: int, exp_config: MlSpacesExpConfig) -> int
Get maximum number of episode attempts for this house.
Source code in molmo_spaces/data_generation/pipeline.py
load_episodes_for_house
staticmethod
¶
load_episodes_for_house(exp_config: MlSpacesExpConfig, house_id: int, batch_suffix: str, worker_task_sampler, worker_logger) -> tuple[list, Any]
Load episode specifications for a house.
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[list, Any]
|
(episode_specs, task_sampler_to_use) - episode_specs: List of saved configs or None values - task_sampler_to_use: Task sampler for sampling tasks |
Source code in molmo_spaces/data_generation/pipeline.py
prepare_episode_config
staticmethod
¶
prepare_episode_config(exp_config: MlSpacesExpConfig, episode_spec, episode_idx: int) -> MlSpacesExpConfig
Prepare config for a specific episode. Override to modify config per-episode.
Source code in molmo_spaces/data_generation/pipeline.py
process_single_house
staticmethod
¶
process_single_house(worker_id: int, worker_logger, house_id: int, exp_config: MlSpacesExpConfig, samples_per_house: int, shutdown_event, task_sampler, preloaded_policy: BasePolicy | None = None, max_allowed_sequential_task_sampler_failures: int = 10, max_allowed_sequential_rollout_failures: int = 10, filter_for_successful_trajectories: bool = False, runner_class=None, batch_num: int | None = None, total_batches: int | None = None, datagen_profiler: DatagenProfiler | None = None) -> tuple[int, int, bool]
Process all episodes for a single house using customizable hooks.
This method uses a while loop to iterate over episodes, calling hook methods via runner_class to allow subclasses to customize behavior without duplicating the entire method.
Hooks called (override in subclass to customize): - load_episodes_for_house: Load episode specs from source (JSON, etc.) - get_max_episode_attempts: Maximum iterations of the episode loop - should_stop_early: Whether to stop before max attempts (e.g., enough successes) - prepare_episode_config: Modify config per-episode - get_episode_task_sampler: Get/create task sampler for episode - sample_task_from_spec: Sample task from specification - get_episode_seed: Get seed for episode - should_close_episode_task_sampler: Whether to close sampler per-episode
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
worker_id
|
int
|
ID of the worker thread/process |
required |
worker_logger
|
Logger instance for this worker |
required | |
house_id
|
int
|
Index of the house to process |
required |
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
samples_per_house
|
int
|
Number of episodes to collect for this house |
required |
shutdown_event
|
Event to signal shutdown |
required | |
task_sampler
|
Task sampler instance (shared across houses for this worker) |
required | |
preloaded_policy
|
BasePolicy | None
|
Optional pre-initialized policy instance |
None
|
max_allowed_sequential_task_sampler_failures
|
int
|
Max consecutive task sampling failures |
10
|
max_allowed_sequential_rollout_failures
|
int
|
Max consecutive rollout failures |
10
|
filter_for_successful_trajectories
|
bool
|
Whether to filter for successful trajectories only |
False
|
runner_class
|
Runner class with hook methods to call |
None
|
|
batch_num
|
int | None
|
Batch number for this house (for batched processing) |
None
|
total_batches
|
int | None
|
Total number of batches for this house |
None
|
datagen_profiler
|
DatagenProfiler | None
|
DatagenProfiler for per-worker timing (optional) |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[int, int, bool]
|
(house_success_count, house_total_count, irrecoverable_failure_flag) |
Source code in molmo_spaces/data_generation/pipeline.py
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 | |
run
¶
run(preloaded_policy: BasePolicy | None = None) -> tuple[int, int]
Run house-by-house rollouts using multiprocessing workers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preloaded_policy
|
BasePolicy | None
|
Optional pre-initialized policy instance to use for rollouts. If None, a new policy will be created for each rollout. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[int, int]
|
(success_count, total_count) |
Source code in molmo_spaces/data_generation/pipeline.py
1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 | |
run_single_rollout
staticmethod
¶
run_single_rollout(episode_seed: int, task: BaseMujocoTask, policy: Any, profiler: Profiler | None = None, viewer=None, shutdown_event=None, datagen_profiler: DatagenProfiler | None = None, end_on_success: bool = False) -> bool
Execute a single rollout with the given task and policy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
episode_seed
|
int
|
Seed for this episode |
required |
task
|
BaseMujocoTask
|
The task to run |
required |
policy
|
Any
|
Policy to use for action selection |
required |
profiler
|
Profiler | None
|
Legacy Profiler instance (optional) |
None
|
viewer
|
MuJoCo viewer for visualization (optional) |
None
|
|
shutdown_event
|
Event to signal shutdown (optional) |
None
|
|
datagen_profiler
|
DatagenProfiler | None
|
DatagenProfiler for per-worker timing (optional) |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Whether the episode was successful |
Source code in molmo_spaces/data_generation/pipeline.py
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 | |
sample_task_from_spec
staticmethod
¶
sample_task_from_spec(task_sampler, house_id: int, episode_spec, episode_idx: int) -> BaseMujocoTask | None
Sample task from specification.
should_close_episode_task_sampler
staticmethod
¶
should_stop_early
staticmethod
¶
should_stop_early(num_collected: int, samples_per_house: int, exp_config: MlSpacesExpConfig | None = None) -> bool
Whether to stop before processing all episodes (e.g., enough successes).
Source code in molmo_spaces/data_generation/pipeline.py
cleanup_context
¶
Context manager to ensure proper cleanup of MuJoCo resources
Source code in molmo_spaces/data_generation/pipeline.py
cleanup_episode_resources
¶
cleanup_episode_resources(task, policy, task_sampler, preloaded_policy: BasePolicy | None, close_task_sampler: bool = False) -> None
Cleanup resources after an episode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
Task instance to cleanup |
required | |
policy
|
Policy instance to cleanup |
required | |
task_sampler
|
Task sampler instance (optional cleanup) |
required | |
preloaded_policy
|
BasePolicy | None
|
If not None, policy won't be deleted |
required |
close_task_sampler
|
bool
|
Whether to close the task sampler |
False
|
Source code in molmo_spaces/data_generation/pipeline.py
get_detailed_memory_info
¶
Get detailed memory usage information
Source code in molmo_spaces/data_generation/pipeline.py
get_process_memory
¶
house_processing_worker
¶
house_processing_worker(worker_id: int, exp_config: MlSpacesExpConfig, work_items: list[tuple[int, int, int, int]], shutdown_event, counter_lock, house_counter, success_count, total_count, completed_houses, skipped_houses, max_allowed_sequential_task_sampler_failures: int = 10, max_allowed_sequential_rollout_failures: int = 10, max_allowed_sequential_irrecoverable_failures: int = 5, preloaded_policy: BasePolicy | None = None, filter_for_successful_trajectories: bool = False, runner_class=None)
Standalone worker function that processes work items sequentially from a shared counter.
Each work item is a (house_id, batch_samples, batch_num, total_batches) tuple. This function can be run in either a thread or a process. It continually fetches the next work item from a shared counter and processes it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
worker_id
|
int
|
Unique ID for this worker |
required |
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
work_items
|
list[tuple[int, int, int, int]]
|
List of (house_id, batch_samples, batch_num, total_batches) tuples |
required |
shutdown_event
|
Event to signal shutdown |
required | |
counter_lock
|
Lock for thread-safe counter access |
required | |
house_counter
|
Shared counter for next work item to process |
required | |
success_count
|
Shared counter for successful episodes |
required | |
total_count
|
Shared counter for total episodes |
required | |
completed_houses
|
Shared counter for completed work items |
required | |
skipped_houses
|
Shared counter for skipped work items |
required | |
max_allowed_sequential_task_sampler_failures
|
int
|
Max consecutive task sampling failures |
10
|
max_allowed_sequential_rollout_failures
|
int
|
Max consecutive rollout failures |
10
|
max_allowed_sequential_irrecoverable_failures
|
int
|
Max consecutive irrecoverable failures |
5
|
preloaded_policy
|
BasePolicy | None
|
Optional pre-initialized policy instance |
None
|
filter_for_successful_trajectories
|
bool
|
Whether to filter for successful trajectories only |
False
|
runner_class
|
Runner class with run_single_rollout and process_single_house static methods |
None
|
Source code in molmo_spaces/data_generation/pipeline.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 | |
log_detailed_memory
¶
Log detailed memory usage information
Source code in molmo_spaces/data_generation/pipeline.py
log_memory_usage
¶
save_house_trajectories
¶
save_house_trajectories(worker_logger, house_raw_histories: list, house_output_dir: Path, exp_config: MlSpacesExpConfig, batch_suffix: str, datagen_profiler: DatagenProfiler | None = None, batch_num: int | None = None, total_batches: int | None = None) -> None
Batch and save trajectory data for a house.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
worker_logger
|
Logger instance |
required | |
house_raw_histories
|
list
|
List of episode info dicts with 'history' and 'sensor_suite' |
required |
house_output_dir
|
Path
|
Output directory path |
required |
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
batch_suffix
|
str
|
Suffix for batch file naming |
required |
datagen_profiler
|
DatagenProfiler | None
|
Profiler for timing |
None
|
batch_num
|
int | None
|
Batch number for logging |
None
|
total_batches
|
int | None
|
Total batches for logging |
None
|
Source code in molmo_spaces/data_generation/pipeline.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | |
setup_house_dirs
¶
setup_house_dirs(exp_config: MlSpacesExpConfig, house_id: int, batch_num: int | None = None, total_batches: int | None = None) -> tuple[Path, Path, str, bool]
Setup output directories and check for existing output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
house_id
|
int
|
House index |
required |
batch_num
|
int | None
|
Batch number (1-indexed) |
None
|
total_batches
|
int | None
|
Total number of batches |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[Path, Path, str, bool]
|
(house_output_dir, house_debug_dir, batch_suffix, should_skip) |
Source code in molmo_spaces/data_generation/pipeline.py
setup_policy
¶
setup_policy(exp_config: MlSpacesExpConfig, task: BaseMujocoTask, preloaded_policy: BasePolicy | None, datagen_profiler: DatagenProfiler | None) -> BasePolicy
Create or return policy for episode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
task
|
BaseMujocoTask
|
The task instance |
required |
preloaded_policy
|
BasePolicy | None
|
Pre-loaded policy or None |
required |
datagen_profiler
|
DatagenProfiler | None
|
Profiler for timing |
required |
Returns:
| Type | Description |
|---|---|
BasePolicy
|
Policy instance |
Source code in molmo_spaces/data_generation/pipeline.py
setup_viewer
¶
setup_viewer(exp_config: MlSpacesExpConfig, task: BaseMujocoTask, policy: BasePolicy, current_viewer)
Setup passive viewer if configured.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exp_config
|
MlSpacesExpConfig
|
Experiment configuration |
required |
task
|
BaseMujocoTask
|
The task instance |
required |
policy
|
BasePolicy
|
The policy instance |
required |
current_viewer
|
Existing viewer or None |
required |
Returns:
| Type | Description |
|---|---|
|
Viewer instance or None |