In the _get_background_color() function in splatfacto.py, self.background_color is allocated on the cpu, when calling get_outputs(), we get a runtime error "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!". Added a .to(self.device) to ensure this doesn't happen
In the
_get_background_color()
function in splatfacto.py,self.background_color
is allocated on the cpu, when callingget_outputs()
, we get a runtime error "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!". Added a.to(self.device)
to ensure this doesn't happen