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

No display detected. Use show_viewer=False for headless mode #446

Open
oupuxi opened this issue Jan 2, 2025 · 3 comments
Open

No display detected. Use show_viewer=False for headless mode #446

oupuxi opened this issue Jan 2, 2025 · 3 comments

Comments

@oupuxi
Copy link

oupuxi commented Jan 2, 2025

SORRY TO BOTHER GUYS! I'm encountering an error when running my first program, hello_genesis.py. I am using a rented server without a monitor. Below is the error log I received.
/root/.virtualenvs/Genesis-main/bin/python /root/autodl-tmp/genesis/Genesis-main/examples/tutorials/hello_genesis.py
[Genesis] [20:41:45] [INFO] ╭───────────────────────────────────────────────╮
[Genesis] [20:41:45] [INFO] │┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈ Genesis ┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈│
[Genesis] [20:41:45] [INFO] ╰───────────────────────────────────────────────╯
[Genesis] [20:41:45] [INFO] Running on [Intel(R) Xeon(R) Platinum 8481C] with backend gs.cpu. Device memory: 1007.54 GB.
[Genesis] [20:41:45] [INFO] 🚀 Genesis initialized. 🔖 version: 0.2.1, 🌱 seed: None, 📏 precision: '32', 🐛 debug: False, 🎨 theme: 'dark'.
Traceback (most recent call last):
File "/root/autodl-tmp/genesis/Genesis-main/examples/tutorials/hello_genesis.py", line 5, in
scene = gs.Scene()
^^^^^^^^^^
File "/root/autodl-tmp/genesis/Genesis-main/genesis/utils/misc.py", line 27, in new_init
original_init(self, *args, **kwargs)
File "/root/autodl-tmp/genesis/Genesis-main/genesis/engine/scene.py", line 147, in init
self._visualizer = Visualizer(
^^^^^^^^^^^
File "/root/autodl-tmp/genesis/Genesis-main/genesis/vis/visualizer.py", line 37, in init
gs.raise_exception("No display detected. Use show_viewer=False for headless mode.")

[Genesis] [20:41:46] [ERROR] No display detected. Use show_viewer=False for headless mode.
[Genesis] [20:41:46] [INFO] 💤 Exiting Genesis and caching compiled kernels...

Process finished with exit code 1

@zhouxian
Copy link
Collaborator

zhouxian commented Jan 2, 2025

So you will need to set show viewer to False as the error msg says, since you are not connected to a monitor

@oupuxi
Copy link
Author

oupuxi commented Jan 3, 2025

So you will need to set show viewer to False as the error msg says, since you are not connected to a monitor

I know this is possible, since it's an experiment running on a cloud server, but I wonder if there's any way to display it on my own computer.

@mryangs
Copy link

mryangs commented Jan 3, 2025

So you will need to set show viewer to False as the error msg says, since you are not connected to a monitor因此,您需要将show viewer设置为False,因为您没有连接到监视器,

I know this is possible, since it's an experiment running on a cloud server, but I wonder if there's any way to display it on my own computer.我知道这是可能的,因为它是在云服务器上运行的实验,但我想知道是否有任何方法可以在我自己的计算机上显示它。

I have also encountered the same problem. Have you solved it yet?

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

3 participants