Skip to content

Commit

Permalink
fix bug where failure is not used for termination
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Feb 29, 2024
1 parent 1683a01 commit dc88432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mani_skill2/envs/sapien_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def step(self, action: Union[None, np.ndarray, torch.Tensor, Dict]):
terminated = info["success"].clone()
else:
if "fail" in info:
terminated = info["success"].clone()
terminated = info["fail"].clone()
else:
terminated = torch.zeros(self.num_envs, dtype=bool, device=self.device)

Expand Down

0 comments on commit dc88432

Please sign in to comment.