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

怎么让训练过程可视化呢? #14

Open
zjhcwjb opened this issue May 30, 2023 · 3 comments
Open

怎么让训练过程可视化呢? #14

zjhcwjb opened this issue May 30, 2023 · 3 comments

Comments

@zjhcwjb
Copy link

zjhcwjb commented May 30, 2023

Using cuda device
Wrapping the env in a VecTransposeImage.
一直卡在这

@lang07123
Copy link

需要修改这个参数
图片

但是貌似... pygame无法在 多线程情况下使用...会提示报错..
图片

Those errors suck. Basically you can't run multipeocessing and pass in fancy objects like the pygame object. There is probably a way around it.

Multiprocessor will serialised data to pickle format internally. You can't pickle that pygame object!

https://www.reddit.com/r/learnpython/comments/az42d4/how_to_use_multiprocessing_with_pygame/

@zjhcwjb
Copy link
Author

zjhcwjb commented May 31, 2023 via email

@linyiLYi
Copy link
Owner

linyiLYi commented Jun 1, 2023

如果想看训练过程中的参数,可以把 train.py 结尾部分 sys.stdout 的部分注释掉。我把训练参数都输出到了 training_log.txt 文件里以便后续查阅,把这部分注释掉,数据就会显示在终端上了。如果想看训练曲线,可以使用 tensorboard。silent_mode 在训练时是不能改成 False 的,因为训练时要尽可能快速运行游戏,如果每帧都渲染出来,会极大地影响训练速度。

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

3 participants