Views
No views yet
gym-hil simulation (PandaPickCube), fully autonomously on a single GPU — the MuJoCo
environment supplies the reward, so no human intervention or reward classifier is needed in sim.lilkm/pick_cube_franka_panda_301import torch, draccus
2from huggingface_hub import snapshot_download
3from lerobot.rl.train_rl import TrainRLServerPipelineConfig
4from lerobot.rl import gym_manipulator as gm
5from lerobot.processor import TransitionKey
6from lerobot.policies.gaussian_actor.modeling_gaussian_actor import GaussianActorPolicy
7
8local = snapshot_download("RajatDandekar/hilserl-panda-pickcube-sac")
9cfg = draccus.parse(TrainRLServerPipelineConfig, args=["--config_path", f"{local}/train_config.json"])
10cfg.env.task = "PandaPickCube-v0"
11policy = GaussianActorPolicy.from_pretrained(local).to("cuda").eval()
12env, teleop = gm.make_robot_env(cfg.env)
13env_p, act_p = gm.make_processors(env, teleop, cfg.env, "cuda")
14# roll out with policy.select_action(...) — see the workshop notebook.