aitviewer icon indicating copy to clipboard operation
aitviewer copied to clipboard

able to run test code, but returns a blank page

Open Aricling opened this issue 1 year ago • 1 comments

i'm running the test demo provided in https://eth-ait.github.io/aitviewer/ and here is my code on my remote linux server:

from aitviewer.viewer import Viewer
from aitviewer.configuration import CONFIG as C

C.update_conf({'smplx_models':'/home/guoling/HOIs/all_body_models'})


if __name__ == '__main__':
    v = Viewer()
    v.scene.add(SMPLSequence.t_pose())
    v.run()

Meanwhile, I use the XQuartz for visualization, after running python test_viewer.py, the terminal returns: image

and an aitviewer page pumps out, but the page is only a blank page like this: image I have tried many times, but it's always a blank page, my xeyes command can work and cv2.imshow can work too(when using opencv-python). I'm using opencv-python-headless version for aitviewer but it just doesn't work. Hope someone can help, thanks a lot!

Aricling avatar Sep 06 '24 02:09 Aricling

I am not entirely sure what your setup is here but I'm assuming you are trying to X forward the aitviewer output to your local machine from a Linux server? I have no experience with XQuartz unfortunately. You could try to swap the window type to pyglet instead of Qt, but I doubt that this will change anything:

from aitviewer.configuration import CONFIG as C
from aitviewer.viewer import Viewer
C.update_conf({"window_type": "pyglet"})
v = Viewer()
v.run()

Other than that I would simply avoid X forwarding and use the remote viewer capabilities to transfer data via TCP.

kaufManu avatar Sep 10 '24 07:09 kaufManu