↓ 2 callersMethod__init__(self, in_channels, out_channels, depth_multiplier, act_type='prelu', with_idt=False)
r_basicsr/archs/ecbsr_arch.py:169
↓ 2 callersMethoddepthwise_conv(i, o, kernel_size, stride=1, padding=0, bias=False)
r_facelib/detection/yolov5face/models/common.py:160
↓ 2 callersFunctionduf_downsampleDownsamping with Gaussian kernel used in the DUF official code.
Args:
x (Tensor): Frames to be downsampled, with shape (b, t, c, h, w)
r_basicsr/data/data_util.py:283
↓ 2 callersMethodforward
Args:
pred (Tensor): of shape (N, C, H, W). Predicted tensor.
target (Tensor): of shape (N, C, H, W). Ground truth
r_basicsr/losses/basic_loss.py:45
↓ 2 callersFunctiongenerate_gaussian_noiseGenerate Gaussian noise.
Args:
img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32.
sigma (float): Noise s
r_basicsr/data/degradations.py:423
↓ 2 callersFunctiongenerate_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:464
↓ 2 callersFunctiongenerate_poisson_noise_ptGenerate a batch of poisson noise (PyTorch version)
Args:
img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
r_basicsr/data/degradations.py:613
↓ 2 callersFunctionletterbox(img, new_shape=(640, 640), color=(114, 114, 114), auto=True, scale_fill=False, scaleup=True)
r_facelib/detection/yolov5face/utils/datasets.py:5
↓ 2 callersFunctionnon_max_suppressionPerforms Non-Maximum Suppression (NMS) on inference results
Returns:
detections with shape: nx6 (x1, y1, x2, y2, conf, cls)
r_facelib/detection/yolov5face/utils/general.py:168