NameError:未定义名称“base",而在 GOOGLE COLAB 中运行开放式 AI 健身房时 [英] NameError: name 'base' is not defined, while running open AI gym in GOOGLE COLAB

查看:74
本文介绍了NameError:未定义名称“base",而在 GOOGLE COLAB 中运行开放式 AI 健身房时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Pytorch.org 学习 DQN 强化学习教程,https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html

I am going through the tutorial DQN reinforcement learning in Pytorch.org,https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html

但是在这里,当我尝试使用 python 显示来呈现屏幕和显示时,我找不到名称库.有人能帮我一下吗?如果你想澄清这个问题,我在这里提前致谢

But here when I am trying to render a screen and display using python display, I am getting name base not found. Can anyone help me here? If you want to clear any clarity about the question, I am here Thanks in advance

推荐答案

在 colab 上使用 GPU.如果这样还不够,在开始时执行这个单元

Use the gpu on colab. If with that isn't enought execute this cell at the beginning

!apt install xvfb -y
!pip install pyvirtualdisplay
!pip install piglet

from pyvirtualdisplay import Display
display = Display(visible=0, size=(1400, 900))
display.start()

这篇关于NameError:未定义名称“base",而在 GOOGLE COLAB 中运行开放式 AI 健身房时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆