Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: too many values to unpack (expected 2) #1

Closed
Chu4nQ1n opened this issue Jan 2, 2024 · 1 comment
Closed

ValueError: too many values to unpack (expected 2) #1

Chu4nQ1n opened this issue Jan 2, 2024 · 1 comment

Comments

@Chu4nQ1n
Copy link

Chu4nQ1n commented Jan 2, 2024

开发人员您好,

我在执行教程中RL控制例程时遇到以下报错

`
/home/chuan/anaconda3/envs/rl-go2/lib/python3.8/site-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]

Traceback (most recent call last):
File "train.py", line 20, in
train(args)

File "train.py", line 14, in train
ppo_runner, train_cfg = task_registry.make_alg_runner(env=env, name=args.task, args=args)

File "/home/chuan/rsl_rl/unitree_rl_gym/legged_gym/utils/task_registry.py", line 119, in make_alg_runner
runner = OnPolicyRunner(env, train_cfg_dict, log_dir, device=args.rl_device)

File "/home/chuan/rsl_rl/rsl_rl/runners/on_policy_runner.py", line 29, in init
obs, extras = self.env.get_observations()

ValueError: too many values to unpack (expected 2)
`

导致了gym界面闪退,在按照其他博主经验修改pytoch源代码后错误仍然存在。

针对此问题希望能够得到您的帮助,谢谢。

@Chu4nQ1n
Copy link
Author

Chu4nQ1n commented Jan 5, 2024

重新安装 rsl_rl v1.0.2 后解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant