-
Notifications
You must be signed in to change notification settings - Fork 373
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
docker内运行lunarlander_dqn_deploy失败 #793
Comments
Error:AttributeError Traceback (most recent call last) Cell In[9], line 14 File /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gym/envs/registration.py:581, in make(id, max_episode_steps, autoreset, apply_api_compatibility, disable_env_checker, **kwargs) File /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gym/envs/registration.py:61, in load(name) File /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py:126, in import_module(name, package) File :1050, in _gcd_import(name, package, level) File :1027, in find_and_load(name, import) File :992, in find_and_load_unlocked(name, import) AttributeError: module '_Box2D' has no attribute 'RAND_LIMIT_swigconstant' Code (Exactly from tutorial example) def main(main_config: EasyDict, create_config: EasyDict, ckpt_path: str): if name == "main": Attempted Fix Overall, finding issues with most of the code examples. If you are not supporting the library anymore, no problem. Please state. Thank you. |
这应该是训练完成后存储 replay 视频时的问题(缺少 libx264 库),但是我们在最新的 docker pull opendilab/ding:nightly 镜像(IMAGE ID 01c195e0ee17)中运行类似的存储 replay 任务并未出现该问题。你可以检查一下镜像是否对齐,gym 版本是不是 0.25.1,以及你具体跑存视频的代码是什么? |
最新版本opendilab/ding:nightly 镜像,gym版本是0.25.1
|
可以确定是保存视频导致的问题,代码对应 |
这个问题解决了。原因是 pytorch 官方镜像中安装的 ffmpeg 版本是 4.3.0,会和镜像中默认的 libx264 库有冲突问题。使用命令 |
测试确实正常了,靠谱👍 |
docker运行的是ding:nightly版本,docker pull opendilab/ding:nightly。
运行使用 DQN 算法训练的智能体模型: final.pth.tar
报错如下:
有遇到过类似问题吗?
The text was updated successfully, but these errors were encountered: