File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/openpi/models_pytorch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,14 @@ def __init__(self, config):
9797 precision = config .dtype ,
9898 )
9999
100- self .action_in_proj = nn .Linear (32 , action_expert_config .width )
101- self .action_out_proj = nn .Linear (action_expert_config .width , 32 )
100+ self .action_in_proj = nn .Linear (config . action_dim , action_expert_config .width )
101+ self .action_out_proj = nn .Linear (action_expert_config .width , config . action_dim )
102102
103103 if self .pi05 :
104104 self .time_mlp_in = nn .Linear (action_expert_config .width , action_expert_config .width )
105105 self .time_mlp_out = nn .Linear (action_expert_config .width , action_expert_config .width )
106106 else :
107- self .state_proj = nn .Linear (32 , action_expert_config .width )
107+ self .state_proj = nn .Linear (config . action_dim , action_expert_config .width )
108108 self .action_time_mlp_in = nn .Linear (2 * action_expert_config .width , action_expert_config .width )
109109 self .action_time_mlp_out = nn .Linear (action_expert_config .width , action_expert_config .width )
110110
You can’t perform that action at this time.
0 commit comments