↓ 7 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 the
mmedit/core/evaluation/metrics.py:146
↓ 5 callersMethod__init__(self, classnames, backbone_name='ViT-B/32', n_ctx=16, ctx_init="", cfg_imsize=224, class_specify=False, class
mmedit/models/backbones/sr_backbones/coopclipiqa.py:191
↓ 5 callersFunctionl1_lossL1 loss. Args: pred (Tensor): Prediction Tensor with shape (n, c, h, w). target ([type]): Target Tensor with shape (n, c, h, w).
mmedit/models/losses/pixelwise_loss.py:13
↓ 4 callersMethod_make_layer(self, block, planes, num_blocks, stride, conv_cfg,
norm_cfg, act_cfg, with_spectral_norm)
mmedit/models/backbones/encoder_decoders/encoders/resnet_enc.py:210
↓ 4 callersMethod_make_layer(self, block, planes, blocks, stride=1, dilation=1)
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:354
↓ 4 callersMethod_make_layer(self, block, planes, num_blocks, conv_cfg, norm_cfg,
act_cfg, with_spectral_norm)
mmedit/models/backbones/encoder_decoders/decoders/resnet_dec.py:169
↓ 3 callersFunctionget_unknown_tensorGet 1-channel unknown area tensor from the 3 or 1-channel trimap tensor. Args: trimap (Tensor): Tensor with shape (N, 3, H, W) or (N, 1,
mmedit/models/mattors/utils.py:5