iffyloop / TripoSR-Bake

Generate 3D meshes from a single 2D image using TripoSR, complete with manual geometry editing and texture baking support
The Unlicense
48 stars 0 forks source link

Exception:(standalone) XOpenDisplay: cannot open display #6

Closed 55renchen closed 4 months ago

55renchen commented 4 months ago

Hello, when i run python 02-texture.py,i meet the problem "Exception:(standalone) XOpenDisplay: cannot open display". How can i solve this issue? Hope to your reply!

55renchen commented 4 months ago

The output is :

(1/5): Load TripoSR and scene codes (2/5): Load mesh (3/5): Generate UVs (4/5): Rasterize UV atlas Traceback (most recent call last): File "/mnt/workspace/TripoSR-Bake/02-texture.py", line 268, in main() File "/mnt/workspace/TripoSR-Bake/02-texture.py", line 245, in main rasterize_result = run_rasterize(args, mesh_result, xatlas_result) File "/mnt/workspace/TripoSR-Bake/02-texture.py", line 53, in run_rasterize ctx = moderngl.create_context(standalone=True) File "/mnt/workspace/TripoSR-Bake/venv/lib/python3.10/site-packages/moderngl/init.py", line 1936, in create_context ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, settings) File "/mnt/workspace/TripoSR-Bake/venv/lib/python3.10/site-packages/glcontext/init.py", line 90, in create return x11.create_context(kwargs) Exception: (standalone) XOpenDisplay: cannot open display

iffyloop commented 4 months ago

See #1