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

evaluate模式下replay不能保存 #46

Closed
Ricardo-Charles opened this issue Apr 20, 2021 · 2 comments
Closed

evaluate模式下replay不能保存 #46

Ricardo-Charles opened this issue Apr 20, 2021 · 2 comments

Comments

@Ricardo-Charles
Copy link

首先感谢大佬无私分享的优秀代码 !!!

作者你好, 我通过下面命令行运行整个项目, 想直接看看演示的效果
python main.py --map=3m --alg=qmix --evaluate=True --load_model=True
我自己在 arguments.py 里面也配置了replay存放的文件夹, 运行完项目后正常输出, 但是没有replay文件的生成.

然后我翻看了大佬你这个项目历史的被关掉的 issue , 发现作者你说该项目不支持 replay , 然后我参照 SMAC 官网的教程, 官网说调用 save_replay()即可, 然后发现作者你的 rollout.py 里面调用了该函数, 然后我实在想不出办法获得 replay 文件就来打扰作者你了,
请问我该如何修改代码从而获得 evaluate 模式下的 replay文件呢?

我是个合作式MA_DRL初学者, 如有打扰作者你, 我深感抱歉

@starry-sky6688
Copy link
Owner

现在已经支持回放功能了, 设置replay_dir参数时要保证路径是绝对路径,而不是相对路径,是不是你没有把路径设置成绝对路径

@Ricardo-Charles
Copy link
Author

现在已经支持回放功能了, 设置replay_dir参数时要保证路径是绝对路径,而不是相对路径,是不是你没有把路径设置成绝对路径

谢谢, 设置成绝对路径后有replay了, 问题解决了

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