Spaces:
Runtime error
Runtime error
Switch demo to viser server mode — render frames GPU-side, no client WebGL
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -75,6 +75,8 @@ RUN pip install --no-build-isolation --no-deps -e .
|
|
| 75 |
# viser serves the GUI here — must equal app_port in README.md.
|
| 76 |
EXPOSE 7860
|
| 77 |
|
| 78 |
-
#
|
| 79 |
-
#
|
| 80 |
-
|
|
|
|
|
|
|
|
|
| 75 |
# viser serves the GUI here — must equal app_port in README.md.
|
| 76 |
EXPOSE 7860
|
| 77 |
|
| 78 |
+
# server mode: the optgs decoder renders frames on the GPU and viser streams
|
| 79 |
+
# them as images — no multi-MB splat-geometry transfer to the browser and no
|
| 80 |
+
# client-side WebGL, which is far more robust behind HF's HTTP/2 proxy.
|
| 81 |
+
# viser binds 0.0.0.0 by default.
|
| 82 |
+
CMD ["python", "demo.py", "--with-gui", "server", "--gui-port", "7860"]
|