Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

able to run test code, but returns a blank page #61

Open
Aricling opened this issue Sep 6, 2024 · 1 comment
Open

able to run test code, but returns a blank page #61

Aricling opened this issue Sep 6, 2024 · 1 comment

Comments

@Aricling
Copy link

Aricling commented Sep 6, 2024

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!

@kaufManu
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants