dmme#
LightningModules#
DataModules#
Common functions#
Samples from gaussian with specified shape, dtype, device using torch.randn |
|
Samples from gaussian like the tensor x using torch.randn_like |
|
Samples ints from uniform distribution using torch.randint |
|
Normalize input to \([-1, 1]\) linearly |
|
Denormalize input normalized to \([-1, 1]\) linearly back to \([0, 1]\) |
|
Visualize diffusion process given an array of histories |
- dmme.gaussian(shape, dtype=None, device=None)[source]#
Samples from gaussian with specified shape, dtype, device using torch.randn