Spaces:
Running
on
Zero
Running
on
Zero
Literaly my last gueess and then I go do smth else in my life
Browse files- demo/gs_train.py +3 -3
demo/gs_train.py
CHANGED
@@ -46,7 +46,7 @@ class ModelParams:
|
|
46 |
images: str = "images"
|
47 |
resolution: int = -1
|
48 |
white_background: bool = True
|
49 |
-
data_device: str =
|
50 |
eval: bool = False
|
51 |
|
52 |
@dataclass
|
@@ -155,7 +155,7 @@ def train(
|
|
155 |
gaussians.training_setup(opt)
|
156 |
|
157 |
bg_color = [1, 1, 1] if dataset.white_background else [0, 0, 0]
|
158 |
-
background = torch.tensor(bg_color, dtype=torch.float32, device=
|
159 |
|
160 |
iter_start = torch.cuda.Event(enable_timing = True)
|
161 |
iter_end = torch.cuda.Event(enable_timing = True)
|
@@ -251,7 +251,7 @@ def train(
|
|
251 |
iteration = scene.loaded_iter
|
252 |
|
253 |
bg_color = [1,1,1] if dataset.white_background else [0, 0, 0]
|
254 |
-
background = torch.tensor(bg_color, dtype=torch.float32, device=
|
255 |
|
256 |
model_path = dataset.model_path
|
257 |
name = "render"
|
|
|
46 |
images: str = "images"
|
47 |
resolution: int = -1
|
48 |
white_background: bool = True
|
49 |
+
data_device: str = "cuda"
|
50 |
eval: bool = False
|
51 |
|
52 |
@dataclass
|
|
|
155 |
gaussians.training_setup(opt)
|
156 |
|
157 |
bg_color = [1, 1, 1] if dataset.white_background else [0, 0, 0]
|
158 |
+
background = torch.tensor(bg_color, dtype=torch.float32, device="cuda")
|
159 |
|
160 |
iter_start = torch.cuda.Event(enable_timing = True)
|
161 |
iter_end = torch.cuda.Event(enable_timing = True)
|
|
|
251 |
iteration = scene.loaded_iter
|
252 |
|
253 |
bg_color = [1,1,1] if dataset.white_background else [0, 0, 0]
|
254 |
+
background = torch.tensor(bg_color, dtype=torch.float32, device="cuda")
|
255 |
|
256 |
model_path = dataset.model_path
|
257 |
name = "render"
|