unitree_rl_gym
unitree_rl_gym copied to clipboard
fail to load pre_trained model using sim2sim code
when I run the code, the problem is "python deploy/deploy_mujoco/deploy_mujoco.py g1.yaml
1
terminate called after throwing an instance of 'c10::Error'
what(): isTuple()INTERNAL ASSERT FAILED at "../aten/src/ATen/core/ivalue_inl.h":1400, please report a bug to PyTorch. Expected Tuple but got String
Exception raised from toTuple at ../aten/src/ATen/core/ivalue_inl.h:1400 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7fdd83f24d62 in /home/zeran/miniconda3/envs/myenv/lib/python3.8/site-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x5b (0x7fdd83f2168b in /home/zeran/miniconda3/envs/myenv/lib/python3.8/site-packages/torch/lib/libc10.so)
frame #2: c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::string const&) + 0x3e (0x7fdd83f21bbe in /home/zeran/miniconda3/envs/myenv/lib/python3.8/site-packages/torch/lib/libc10.so)
frame #3:
已放弃 (核心已转储) " and I debugging the code which I found out it comes from loading the model "m = mujoco.MjModel.from_xml_path(xml_path) d = mujoco.MjData(m) m.opt.timestep = simulation_dt print(1) # load policy policy = torch.jit.load(policy_path) print(22222222222)"