Skip to content

Commit 50ee296

Browse files
committed
fix loading vision policy bug
1 parent e8704cf commit 50ee296

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/reinforcement_learning/rsl_rl/play.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def main(env_cfg: ManagerBasedRLEnvCfg | DirectRLEnvCfg, agent_cfg: RslRlBaseRun
169169
# export policy to onnx/jit
170170
export_model_dir = os.path.join(os.path.dirname(resume_path), "exported")
171171
export_policy_as_jit(policy_nn, normalizer=normalizer, path=export_model_dir, filename="policy.pt")
172-
export_policy_as_onnx(policy_nn, normalizer=normalizer, path=export_model_dir, filename="policy.onnx")
172+
# export_policy_as_onnx(policy_nn, normalizer=normalizer, path=export_model_dir, filename="policy.onnx")
173173

174174
dt = env.unwrapped.step_dt
175175

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/dexsuite/config/kuka_allegro/dexsuite_kuka_allegro_vision_env_cfg.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ class DexsuiteKukaAllegroLiftSingleCameraEnvCfg(
197197
pass
198198

199199

200-
# @configclass
201-
# class DexsuiteKukaAllegroLiftSingleCameraEnvCfg_PLAY(
202-
# KukaAllegroSingleCameraMixinCfg,
203-
# dexsuite_state_impl.DexsuiteLiftEnvCfg_PLAY
204-
# ):
205-
# pass
200+
@configclass
201+
class DexsuiteKukaAllegroLiftSingleCameraEnvCfg_PLAY(
202+
KukaAllegroSingleCameraMixinCfg,
203+
dexsuite_state_impl.DexsuiteLiftEnvCfg_PLAY
204+
):
205+
pass
206206

207207

208208
# DuoCamera

0 commit comments

Comments
 (0)