Update viewer url

This commit is contained in:
Matt Tancik committed 2022-09-12 11:46:51 -07:00
1 parent 6b97edbbad
commit b651a532bd
2 files changed
+6 -9

No files matched your search

+5 -6
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) ![visualize_dataset](imgs/viewer_figure.png)
## Run hosted web viewer ## 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. 2. Run training script with viewer enabled. Note that you should only use the viewer with a fast pipeline, such as instant ngp.
```shell ```shell
python scripts/run_train.py --config-name=graph_instant_ngp.yaml viewer.enable=True 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! 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.
+1 -3
View File
@@ -200,9 +200,7 @@ class VisualizerState:
# of the logging stack and easy to see and click # 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 # TODO(ethan): log the output of the viewer bridge server in a file where the training logs go
console.line() console.line()
self.viewer_url = ( self.viewer_url = f"https://viewer.nerfactory.com/latest/?websocket_url=localhost:{websocket_port}"
f"https://viewer.nerfactory.com/branch/master/?websocket_url=localhost:{websocket_port}"
)
viewer_url_local = f"http://localhost:4000/?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}" 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}" dev_open_viewer_instructions_string = f"[Local] Open the viewer at {viewer_url_local}"