-
Notifications
You must be signed in to change notification settings - Fork 358
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
Comments
但是貌似... pygame无法在 多线程情况下使用...会提示报错..
https://www.reddit.com/r/learnpython/comments/az42d4/how_to_use_multiprocessing_with_pygame/ |
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:DengXian;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:SimSun;}
pre
{mso-style-priority:99;
mso-style-link:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
margin:0cm;
font-size:12.0pt;
font-family:SimSun;}
span.HTML
{mso-style-name:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
mso-style-priority:99;
mso-style-link:"HTML \9884\8BBE\683C\5F0F";
font-family:SimSun;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
-->嗯嗯 感谢我试了一下改完静音模式的参数后再运行train_cnn弹出了游戏窗口但还是黑屏状态并没有报错 从 Windows 版邮件发送 发件人: lang07123发送时间: 2023年5月31日 17:15收件人: linyiLYi/snake-ai抄送: zjhcwjb; Author主题: Re: [linyiLYi/snake-ai] 怎么让训练过程可视化呢? (Issue #14) 需要修改这个参数但是貌似... 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/—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
如果想看训练过程中的参数,可以把 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
Using cuda device
Wrapping the env in a VecTransposeImage.
一直卡在这
The text was updated successfully, but these errors were encountered: