ostapagon commited on
Commit
c9f8f37
·
1 Parent(s): 18637b5

Literaly my last gueess and then I go do smth else in my life

Browse files
Files changed (1) hide show
  1. 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 = DEVICE
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=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=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"