4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

Update viewer url

This commit is contained in:
Matt Tancik 2022-09-12 11:46:51 -07:00
parent 6b97edbbad
commit b651a532bd
2 changed files with 6 additions and 9 deletions

View File

@ -6,16 +6,15 @@ The viewer is built using [ThreeJS](https://threejs.org/) and packaged into a [R
![visualize_dataset](imgs/viewer_figure.png)
## Run hosted web viewer
1. Open the Client App Viewer at ... [https://viewer.nerfactory.com/branch/master/?localhost:8051](https://viewer.nerfactory.com/branch/master/?localhost:8051) but make sure to change `localhost:8051` accordingly.
1. Open the Client App Viewer at ... [https://viewer.nerfactory.com/latest/?localhost:7007](https://viewer.nerfactory.com/latest/?localhost:8051) but make sure to change `localhost:7007` accordingly.
2. Run training script with viewer enabled. Note that you should only use the viewer with a fast pipeline, such as instant ngp.
```shell
python scripts/run_train.py --config-name=graph_instant_ngp.yaml viewer.enable=True
```
```shell
python scripts/run_train.py --config-name=graph_instant_ngp.yaml viewer.enable=True
```
This pulls up a hosted web-viewer which is the fastest way to get started with visualizing your nerfactory training progress!
If you want to host the viewer locally/yourself, please proceed to "For devleopers" section.
If you want to host the viewer locally/yourself, please proceed to "For devleopers" section.

View File

@ -200,9 +200,7 @@ class VisualizerState:
# of the logging stack and easy to see and click
# TODO(ethan): log the output of the viewer bridge server in a file where the training logs go
console.line()
self.viewer_url = (
f"https://viewer.nerfactory.com/branch/master/?websocket_url=localhost:{websocket_port}"
)
self.viewer_url = f"https://viewer.nerfactory.com/latest/?websocket_url=localhost:{websocket_port}"
viewer_url_local = f"http://localhost:4000/?websocket_url=localhost:{websocket_port}"
pub_open_viewer_instructions_string = f"[Public] Open the viewer at {self.viewer_url}"
dev_open_viewer_instructions_string = f"[Local] Open the viewer at {viewer_url_local}"