Method__init__(self, num_in_ch, num_out_ch, num_block, num_channel, with_idt, act_type, scale)
r_basicsr/archs/ecbsr_arch.py:251
Method__init__(self, num_in_ch=3, num_out_ch=3, num_feat=64, num_block=16, upscale=4)
r_basicsr/archs/srresnet_arch.py:25
Method__init__(self, num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=16, upscale=4, act_type='prelu')
r_basicsr/archs/srvgg_arch.py:23
Method__init__(self, optimizer, periods, restart_weights=(1, ), eta_min=0, last_epoch=-1)
r_basicsr/models/lr_scheduler.py:77
Functionadd_gaussian_noiseAdd Gaussian noise.
Args:
img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32.
sigma (float): Noise scale
r_basicsr/data/degradations.py:442
Functionadd_gaussian_noise_ptAdd Gaussian noise (PyTorch version).
Args:
img (Tensor): Shape (b, c, h, w), range[0, 1], float32.
scale (float | Tensor): N
r_basicsr/data/degradations.py:496
Functionadd_poisson_noiseAdd poisson noise.
Args:
img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32.
scale (float): Noise scale.
r_basicsr/data/degradations.py:590
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.
r_basicsr/data/degradations.py:661
Methodbatched_detect_faces
Arguments:
frames: a list of PIL.Image, or np.array(shape=[n, h, w, c],
type=np.uint8, BGR format).
r_facelib/detection/retinaface/retinaface.py:327