我正在尝试使用( https:/https:/https:/https:/ 。
它在每时每刻都采取的动作。
但是,显示并不是应该的(请参见 https://wwww.youtube.com/观看?v = ptyoyl8to7g ),但是我得到了一个完全黑色的大屏幕,一个较小的屏幕,黑条的移动较小的屏幕,好像想显示东西一样。
你知道可能是什么吗?这是健身房还是CV的典型问题?
PS:我不知道通常如何在堆栈中完成或多或少的长代码(约250行)。如有必要,告诉我。
I'm trying to run one of the gym environments, CarRacing, with the code from (https://gist.github.com/lmclupr/b35c89b2f8f81b443166e88b787b03ab) modified to work with the current versions of Keras etc.
And it works: that is, it starts training and, if I put a print in "action", I can see what actions it is taking at each moment.
However, the display is not as it should be (see https://www.youtube.com/watch?v=pTYOyl8To7g), but I get a big screen that is totally black, and a smaller one where the black bar moves as if it wanted to show something.
Do you know what it could be? Is this a typical problem of gym, or cv...?
PS: I don't know how it is usually done in Stack to share a more or less long code (approx. 250 lines). Tell me if necessary.
发布评论
评论(1)
请参阅下面的链接
tdlr添加
env.render(“ human”)
https> https: //github.com/openai/gym/issues/492
See link below
TDLR add
env.render("human")
to your codehttps://github.com/openai/gym/issues/492