Method_forward(self, x, context=None, lr=None, ref=None, h=None, w=None, gen_mode=False)
ldm/modules/attention.py:400
Functionadd_gaussian_noiseAdd Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise scale (mea
basicsr/data/degradations.py:488
Functionadd_gaussian_noise_ptAdd Gaussian noise (PyTorch version). Args: img (Tensor): Shape (b, c, h, w), range[0, 1], float32. scale (float | Tensor): Noise
basicsr/data/degradations.py:542
Functionadd_poisson_noiseAdd poisson noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. scale (float): Noise scale. Defa
basicsr/data/degradations.py:644
Functionadd_poisson_noise_ptAdd poisson noise to a batch of images (PyTorch version). Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
basicsr/data/degradations.py:715