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

Evaluation in simulation报错 #8

Open
JeffXu1 opened this issue Oct 20, 2021 · 1 comment
Open

Evaluation in simulation报错 #8

JeffXu1 opened this issue Oct 20, 2021 · 1 comment

Comments

@JeffXu1
Copy link

JeffXu1 commented Oct 20, 2021

使用python train.py命令评估模型时报如下错误
python train.py --task_mode stairstair --eval 1 --load data/model/StairStair_3_itr_960231.pt
[10-20 10:50:54 MainThread @logger.py:242] Argv: train.py --task_mode stairstair --eval 1 --load data/model/StairStair_3_itr_960231.pt
pybullet build time: Oct 11 2021 20:59:00
/home/xh/PycharmProjects/pythonProject2/venv/lib/python3.7/site-packages/rlschool-1.0.2-py3.7.egg/rlschool/quadrupedal/robots/a1.py:94: RuntimeWarning: invalid value encountered in arccos
(2 * l_low * l_up))
Traceback (most recent call last):
File "train.py", line 508, in
main()
File "train.py", line 309, in main
enable_action_filter=args.enable_action_filter)
File "/home/xh/PycharmProjects/pythonProject2/venv/lib/python3.7/site-packages/rlschool-1.0.2-py3.7.egg/rlschool/init.py", line 17, in make_env
raise Exception("rlschool.make_env is deprecated. Please do "import rlschool.xxxenv" and use gym.make instead")
Exception: rlschool.make_env is deprecated. Please do "import rlschool.xxxenv" and use gym.make instead

@WorldEditors
Copy link

This is probably due to our update on RLSchool / MetaGym environment.
Starting from RLSchool 1.0.3, we are changing the entrance from

rlschool.make_env("XXX")

to

import gym
import metagym.quadrupedal
gym.make("XXX")

To make sure the current version of PaddleRobotics work for you, please ensure that your are installing rlschool==1.0.2 by using

pip install rlschool==1.0.2

If you are using the newest version of MetaGym.
please check https://github.com/PaddlePaddle/MetaGym/tree/master/metagym/quadrupedal

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

2 participants