mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
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:
1 parent
a4755a1349
commit
d71c05f256
37 files changed
+324
-329
No files matched your search
@@ -15,7 +15,6 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import math
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path, PureWindowsPath
|
||||
@@ -36,8 +35,7 @@ from nerfstudio.data.dataparsers.base_dataparser import (
|
||||
from nerfstudio.data.scene_box import SceneBox
|
||||
from nerfstudio.utils.io import load_from_json
|
||||
|
||||
console = Console()
|
||||
|
||||
CONSOLE = Console(width=120)
|
||||
MAX_AUTO_RESOLUTION = 1600
|
||||
|
||||
|
||||
@@ -88,7 +86,7 @@ class Nerfstudio(DataParser):
|
||||
image_filenames.append(fname)
|
||||
poses.append(np.array(frame["transform_matrix"]))
|
||||
if num_skipped_image_filenames >= 0:
|
||||
logging.info("Skipping %s files in dataset split %s.", num_skipped_image_filenames, split)
|
||||
CONSOLE.log(f"Skipping {num_skipped_image_filenames} files in dataset split {split}.")
|
||||
assert (
|
||||
len(image_filenames) != 0
|
||||
), """
|
||||
@@ -185,8 +183,8 @@ class Nerfstudio(DataParser):
|
||||
break
|
||||
df += 1
|
||||
|
||||
console.print(f"Auto image downscale factor of {2**df}")
|
||||
self.downscale_factor = 2**df
|
||||
CONSOLE.log(f"Auto image downscale factor of {self.downscale_factor}")
|
||||
else:
|
||||
self.downscale_factor = self.config.downscale_factor
|
||||
|
||||
|
||||
Reference in new issue
Block a user