unilab.base.config_adapter
Resolved config adaptation for training entrypoints.
Functions
create_env(cfg, *, num_envs[, ...])
|
Construct an environment via the registry using the current Hydra config. |
Classes
BackendAdapter
|
Build env/play overrides from the final composed config. |
-
class unilab.base.config_adapter.BackendAdapter[source]
Bases: object
Build env/play overrides from the final composed config.
- Parameters:
-
-
__init__(cfg, *, root_dir, algo_name=None, scene_materializer=<function materialize_scene_visual_override>)[source]
- Parameters:
-
-
build_task_env_cfg_override()[source]
Build env_cfg_override from the resolved reward + env sections.
- Return type:
dict[str, Any]
-
build_play_env_cfg_override()[source]
Build play-mode overrides from an optional backend-agnostic play profile.
- Return type:
dict[str, Any]
-
unilab.base.config_adapter.create_env(cfg, *, num_envs, env_cfg_override=None, sim_backend=None, task_name=None)[source]
Construct an environment via the registry using the current Hydra config.
- Parameters:
-