in point_e/diffusion/gaussian_diffusion.py [0:0]
def unscale_channels(self, x: th.Tensor) -> th.Tensor:
if self.channel_biases is not None:
x = x - th.from_numpy(self.channel_biases).to(x).reshape(
[1, -1, *([1] * (len(x.shape) - 2))]
)
if self.channel_scales is not None:
x = x / th.from_numpy(self.channel_scales).to(x).reshape(
[1, -1, *([1] * (len(x.shape) - 2))]
)
return x