allenai / ai2thor

An open-source platform for Visual AI.
http://ai2thor.allenai.org
Apache License 2.0
1.15k stars 215 forks source link

No graphical output using Xming Server #851

Open mariiak2021 opened 3 years ago

mariiak2021 commented 3 years ago

Hi all,

I'm trying to use Ai2Thor on a Debian-based remote-server with GPU, but without GUI, therefore I use Xming server with X11 forwarding to display work on my laptop display (laptop OS is Windows). It perfectly works with many algorithms - the display is opened correctly, but with Ai2Thor I don't receive any error and still don't see any output display with simulator.

The only line, which I get after executing Controller example (https://ai2thor.allenai.org/ithor/documentation/initialization) is:

Found path: /home/mkhan/.ai2thor/releases/thor-Linux64-a4bcfa890c748c0e9e04de9dc2062bb6a5d1bf3e/thor-Linux64-a4bcfa890c748c0e9e04de9dc2062bb6a5d1bf3e

Then no output more at all. Can someone please help me to understand what can be wrong?

RupertLuo commented 2 years ago

same problem, did you solve that?

ekolve commented 2 years ago

We have another option for rendering without a graphical display, please try the following code:

import ai2thor.controller
from ait2thor.platform import CloudRendering

controller = ai2thor.controller.Controller(platform=CloudRendering)

You will need to have the package libvulkan installed for this to work.

sudo apt-get -y install libvulkan1
mariiak2021 commented 2 years ago

Hi @RupertLuo I solved the problem using VcXsrv verver instead of XMing. While launching display with VcXsrv unselect the option "Native opengl". This worked for me.