fyp21011 / PlasticineLab

Codes for HKU CS Final Year Program 21011: Applying the differentiable physics on deformable objects to enhance the performance of robot learning tasks
1 stars 0 forks source link

Robot Controller outputs non-number action that cause simulation to break #25

Closed shwnyao closed 2 years ago

shwnyao commented 2 years ago

https://github.com/fyp21011/PlasticineLab/blob/604574aed6e809f41d6dca4a9640c6efbc15976b/plb/engine/taichi_env.py#L107-L111

action before this line = [-0.00112799 0.12104091 -0.00451593 0.09947984 0.09745964 -0.05101858] action after this line = [-0.001127985168813378 0.12104090916855173 -0.0045159335652061455 0.09947983953820771 0.09745963727191512 -0.05101857709573368 None]

To reproduce, run python3 -m plb.algorithms.tune, whose default optimizer is torch_nnv2