@@ -19,32 +19,29 @@ def default_objective_weights():
1919@dataclass
2020class CodesignConfig :
2121 # General config
22- seed : int = 12 # NOTE: seed=0 is treated as "no seed" by pycma (falsy check), use non-zero
22+ seed : int = 12 # NOTE: seed=0 is treated as "no seed" by pycma (falsy check), use non-zero seed instead
2323 num_envs : int = 1024
2424 device : str = "cuda:0" # this will be overwritten by isaacgym env.device
2525 dtype : str = torch .float32 # this only used internally for codesign modules
2626
2727 # RL policy config
2828 policy_id : str = "rainbow_v7" # trained with ks, l0, l2, l4 and all in privileged obs
29- # Directory holding policy runs (<policy_root>/<policy_id>/model_*.pt), resolved relative to
30- # the repo root. The shipped pretrained policy lives in checkpoints/rainbow_v7/. To load a
31- # freshly trained policy, set policy_root="logs/hopper" and policy_id to the run dir name.
32- policy_root : str = "checkpoints"
29+ policy_root : str = "checkpoints" # use "logs/<exp_name>" for newly trained policies
3330
3431 # Optimizer config
3532 learning_rate : float = None
3633 n_design_iter : int = None
3734 n_control_iter : int = None
3835
3936 # Design space config
37+
38+ # 4D codesign config
4039 active_param_names : tuple = ("ups_ks" , "ups_l0" , "ups_l2" , "ups_l4" ) # if None, use all parameters in design space
41- # raw_init_param_values: tuple = (4115, 0.138, 0.1, 0.02) # if None, use default param values
42- # raw_init_param_values: tuple = (8000, 0.11, 0.13, 0.02) # if None, use default param values
40+ raw_init_param_values : tuple = (8000 , 0.11 , 0.13 , 0.02 ) # if None, use default param values
4341
44- # 2D Sweep config
42+ # 2D hardware sweep config
4543 # active_param_names: tuple = ("ups_ks", "ups_l0")
46- # raw_init_param_values: tuple = (2000, 0.1)
47- raw_init_param_values : tuple = None #(8000, 0.1)
44+ # raw_init_param_values: tuple = (8000, 0.1)
4845
4946 # MUPS spring config
5047 softplus_beta : float = 1.0
0 commit comments