↓ 13 callersMethod__init__(self, in_channels, num_style_feat, upsample=True, resample_kernel=(1, 3, 3, 1))
r_basicsr/archs/stylegan2_arch.py:347
↓ 11 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
r_basicsr/archs/swinir_arch.py:45
↓ 10 callersMethod__init__(self, c1, c2, n=1, shortcut=True, g=1, e=0.5)
r_facelib/detection/yolov5face/models/common.py:108
↓ 10 callersFunctionfilter2DPyTorch version of cv2.filter2D
Args:
img (Tensor): (b, c, h, w)
kernel (Tensor): (b, k, k)
r_basicsr/utils/img_process_util.py:7
↓ 9 callersMethod__init__(self, in_channels, nf, emb_dim, ch_mult, num_res_blocks, resolution, attn_resolutions)
scripts/r_archs/vqgan_arch.py:232
↓ 6 callersFunctionget_face_single(img_data: np.ndarray, face, face_index=0, det_size=(640, 640), gender_source=0, gender_target=0, order="large
scripts/reactor_swapper.py:190
↓ 5 callersFunctionreorder_imageReorder images to 'HWC' order.
If the input_order is (h, w), return (h, w, 1);
If the input_order is (c, h, w), return (h, w, c);
If
r_basicsr/metrics/metric_util.py:6
↓ 3 callersMethod__init__(self, dim_embd=512, n_head=8, n_layers=9,
codebook_size=1024, latent_size=256,
scripts/r_archs/codeformer_arch.py:163