Google Colab support with viewer (#747)

* allows bridge server to run on a different machine

* added script

* update version

* starting docs

* update docs and scripts

* ngrok support

* use tcp

* moving webrtc outside bridge server. wop

* lazy commit

* lazy commit

* running code. webrtc not working

* lazy commit

* better logic for webrtc connection

* cleanup

* todo comment

* working webrtc

* removed logging

* fixing black

* fix eslint

* fix python version

* fix readme

* misc cleanup

* small docs fix

Co-authored-by: Ethan Weber <ethanweber@Ethans-MacBook-Pro.local>
This commit is contained in:
Ethan WeberandEthan Weber authored and GitHub committed 2022-10-14 15:05:28 -07:00
1 parent a4755a1349
commit d71c05f256
37 files changed
+324 -329

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
"""
Runs the viewer bridge server.
"""
from nerfstudio.viewer.server.server import main
if __name__ == "__main__":
main()
+5 -5
View File
@@ -3,7 +3,9 @@
view_dataset.py
"""
import logging
from rich.console import Console
CONSOLE = Console(width=120)
import time
from datetime import timedelta
from pathlib import Path
@@ -11,13 +13,11 @@ from pathlib import Path
import torch
import tyro
from nerfstudio.configs import model_configs as cfg
from nerfstudio.configs import method_configs as cfg
from nerfstudio.data.datamanagers import AnnotatedDataParserUnion
from nerfstudio.data.utils.datasets import InputDataset
from nerfstudio.viewer.server import viewer_utils
logging.basicConfig(format="[%(filename)s:%(lineno)d] %(message)s", level=logging.INFO)
DEFAULT_TIMEOUT = timedelta(minutes=30)
# speedup for when input size to model doesn't change (much)
@@ -36,7 +36,7 @@ def main(
)
dataset = InputDataset(dataparser.setup().get_dataset_inputs(split="train"))
viewer_state.init_scene(dataset=dataset, start_train=False)
logging.info("Please refresh and load page at: %s", viewer_state.viewer_url)
CONSOLE.log("Please refresh and load page at: %s", viewer_state.viewer_url)
time.sleep(30) # allowing time to refresh page