zfw1226 / gym-unrealcv

Unreal environments for reinforcement learning
Apache License 2.0
367 stars 70 forks source link

Can not connect to ('127.0.0.1', 9000) #29

Closed bx-li closed 1 year ago

bx-li commented 1 year ago

python main.py --shared-optimizer --workers 6 --gpu-ids 0 --split --network tat-cnn-lstm --rnn-out 256 --entropy-target 0.05 --sleep-time 30 --env UnrealTrack-DuelingRoomPZR-DiscreteColor-v4 --env-base UnrealTrack-DuelingRoomNav-DiscreteColor-v4 --gray --rescale --lr 0.0001 Running docker-free env, pid:53780 Please wait for a while to launch env...... exec nohup /root/gym-unrealcv/gym_unrealcv/envs/UnrealEnv/DuelingRoom/tracking/Binaries/Linux/tracking nohup: ignoring input and appending output to 'nohup.out' ERROR:init:205:Can not connect to ('127.0.0.1', 9000) ERROR:init:206:Error [Errno 111] Connection refused UnrealCV server is not running. Please try again 已经通过python load_env.py -e DuelingRoom安装过相关环境

zfw1226 commented 1 year ago

并且我单独启动环境时报错Refusing to run with the root privileges

这已经说的很清楚了,UE4不支持用root权限启动,需要切换到一般user才行

zfw1226 commented 1 year ago

请问设备的具体硬件条件是什么?有没有显示器?显卡和系统版本?

zfw1226 commented 1 year ago

RealisticRender用的是UE4.16,不支持直接offscreen rendering。建议用FlexibleRoom等较新的环境

zfw1226 commented 1 year ago

请看下单独启动binary的时候,具体报的是错误

zfw1226 commented 1 year ago

在后缀加上 -opengl4 看看能不能启动? 也就是执行 ./FlexibleRoom/trackingroom2/Binaries/Linux/trackingroom2 -opengl4

bx-li commented 1 year ago

在后缀加上 -opengl4 看看能不能启动? 也就是执行 ./FlexibleRoom/trackingroom2/Binaries/Linux/trackingroom2 -opengl4

错误输出没有变化

zfw1226 commented 1 year ago

请确认下显卡安装是否包含了渲染相关的组件,如OpenGL等。 初次使用建议先在本地有显示器的机器上尝试安装,或使用支持图形渲染的云服务器。

bx-li commented 1 year ago

请确认下显卡安装是否包含了渲染相关的组件,如OpenGL等。 初次使用建议先在本地有显示器的机器上尝试安装,或使用支持图形渲染的云服务器。

非常感谢您的耐心指导,我在服务器上安装图形渲染后问题解决。

Damax18 commented 1 year ago

@zfw1226 @bx-li could you provide the information on how to install graphics rendering on a general server? or What keywords should I search for? Thanks!

zfw1226 commented 1 year ago

@zfw1226 @bx-li could you provide the information on how to install graphics rendering on a general server? or What keywords should I search for? Thanks!

In general, you need to install opengl4 or Vulkan for rendering. Usually, they can be installed with the graphic driver. You can refer to the keywords offscreen rendering or rendering in headless server. The document for CARLA has introduced it.