Gym 中的 CarRacing-v0:运行环境时屏幕全黑

发布于 2025-01-17 21:20:00 字数 705 浏览 1 评论 0 原文

我正在尝试使用( 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.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的痛♀有谁懂 2025-01-24 21:20:00

请参阅下面的链接
tdlr添加 env.render(“ human”)

https> https: //github.com/openai/gym/issues/492

See link below
TDLR add env.render("human") to your code

https://github.com/openai/gym/issues/492

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文