- render_utils_rl.to_glb: fill_holes_num_views 1000 -> 200
- render_utils_rl.to_glb: render_multiview nviews 100 -> 50
- postprocessing_utils.bake_texture: Adam steps 2500 -> 500
- app.py: default simplify 0.95 -> 0.90 (smaller mesh = faster everything)
These should cut GLB bake time from ~60-80s to ~20-30s,
keeping the total @GPU callback well under the 120s limit.
fix(zerogpu): lazy-import nvdiffrast in postprocessing_utilsβ
`import nvdiffrast.torch as dr` at module top level triggered CUDA init
in the main process via the import chain:
app.py
β trellis.pipelines.NeARImageToRelightable3DPipeline
β trellis.utils.render_utils_rl
β trellis.utils.postprocessing_utils
β import nvdiffrast.torch as dr β CUDA init here
This caused ZeroGPU's stateless-GPU enforcement to fire even before any
@spaces.GPU callback ran, blocking every GPU callback silently.
Fix: remove top-level import; add `import nvdiffrast.torch as dr` lazily
inside the `mode == 'opt'` branch where it is actually used.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
restore: full Space tree + assets (recover from minimal force-push); keep ZeroGPU app.pyβ
- Sync from hf-near mirror for trellis, hy3dshape, assets (LFS), etc.
- README: python_version + quoted short_description for Hub YAML
- requirements: spaces, gradio[oauth,mcp], kaolin find-links; drop --no-build-isolation line for Gradio builder
Made-with: Cursor