MCPcopy Create free account

hub / github.com/IceClear/CLIP-IQA / functions

Functions1,214 in github.com/IceClear/CLIP-IQA

Methodforward
(self, x)
mmedit/models/backbones/vfi_backbones/flavr_net.py:179
Methodforward
(self, xs)
mmedit/models/backbones/vfi_backbones/flavr_net.py:313
Methodforward
(self, x)
mmedit/models/backbones/vfi_backbones/flavr_net.py:404
Methodforward
(self, x)
mmedit/models/backbones/vfi_backbones/flavr_net.py:454
Methodforward
(self, x)
mmedit/models/backbones/vfi_backbones/flavr_net.py:537
Methodforward
(self, x)
mmedit/models/backbones/vfi_backbones/flavr_net.py:568
Methodforward
Forward function for ConvNormWithReflectionPad. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns:
mmedit/models/backbones/vfi_backbones/cain_net.py:82
Methodforward
Forward function for ChannelAttentionLayer. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns:
mmedit/models/backbones/vfi_backbones/cain_net.py:127
Methodforward
Forward function for ResidualChannelAttention. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns:
mmedit/models/backbones/vfi_backbones/cain_net.py:169
Methodforward
Forward function for ResidualGroup. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor:
mmedit/models/backbones/vfi_backbones/cain_net.py:219
Methodforward
Forward function. Args: imgs (Tensor): Input tensor with shape (n, 2, c, h, w). padding_flag (bool): Padding or not.
mmedit/models/backbones/vfi_backbones/cain_net.py:285
Methodforward
Texture transformer. Q = LTE(lq_up) K = LTE(ref_downup) V = LTE(ref), from V_level_n to V_level_1 Relevance embeddin
mmedit/models/transformers/search_transformer.py:38
Methodforward
Defines the computation performed at every call. Args: merged (Tensor): Image to predict alpha matte. trimap (Tensor)
mmedit/models/mattors/base_mattor.py:237
Methodforward
Forward function. Args: masked_img (torch.Tensor): Image with hole as input. mask (torch.Tensor): Mask as input.
mmedit/models/inpaintors/one_stage.py:122
Methodforward
Forward function. Args: inputs (Tensor): Tensor of input frames. target (Tensor): Tensor of target frame. Default: No
mmedit/models/video_interpolators/basic_interpolator.py:75
Methodforward
Forward function. Args: lq (Tensor): Input lq images. gt (Tensor): Ground-truth image. Default: None. tes
mmedit/models/restorers/srgan.py:85
Methodforward
Forward function. Args: lq (Tensor): Input lq images. gt (Tensor): Ground-truth image. Default: None. tes
mmedit/models/restorers/ttsr.py:114
Methodforward
Forward function. Args: lq (Tensor): Input lq images. gt (Tensor): Ground-truth image. Default: None. tes
mmedit/models/restorers/basic_restorer.py:68
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/extractors/feedback_hour_glass.py:41
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/extractors/feedback_hour_glass.py:78
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). last_hidden (Tensor | None): The feedback o
mmedit/models/extractors/feedback_hour_glass.py:137
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, 3, h, w). Returns: Tuple[Tensor]: Forward re
mmedit/models/extractors/lte.py:69
Methodforward
Forward function for partial conv2d. Args: input (torch.Tensor): Tensor with shape of (n, c, h, w). mask (torch.Tenso
mmedit/models/common/partial_conv.py:43
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/common/sr_backbone_utils.py:86
Methodforward
Forward function of GCAModule. Args: img_feat (Tensor): Image feature map of shape (N, ori_c, ori_h, ori_w).
mmedit/models/common/gca_module.py:85
Methodforward
Forward function for PixelShufflePack. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tens
mmedit/models/common/upsample.py:39
Methodforward
Forward Function. Args: x (torch.Tensor): Input tensor with shape of :math:`(n, *, c)`. Same as ``torch.nn.Linear
mmedit/models/common/linear_module.py:72
Methodforward
(self, x)
mmedit/models/common/aspp.py:23
Methodforward
Forward function for ASPP module. Args: x (Tensor): Input tensor with shape (N, C, H, W). Returns: Tensor: O
mmedit/models/common/aspp.py:112
Methodforward
Forward Function. Args: x (torch.Tensor): Tensor with shape (n, c, h, w). context (torch.Tensor): Tensor with shape (
mmedit/models/common/contextual_attention.py:75
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/common/generation_model_utils.py:217
Methodforward
Forward function. Add skip connections without final ReLU. Args: x (Tensor): Input tensor with shape (n, c, h, w). Retur
mmedit/models/common/generation_model_utils.py:292
Methodforward
Apply spatial and temporal ensemble. Args: imgs (torch.Tensor): The images to be processed by the model. Its size
mmedit/models/common/ensemble.py:85
Methodforward
Forward function for partial conv2d. Args: input (torch.Tensor): Tensor with shape of (n, c, h, w). mask (torch.Tenso
mmedit/models/common/mask_conv_module.py:44
Methodforward
Forward Function. Args: x (torch.Tensor): Input tensor with shape of (n, c, h, w). Returns: torch.Tensor: Ou
mmedit/models/common/gated_conv_module.py:55
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (N, C, H, W). Returns: Tensor: Output tensor.
mmedit/models/common/separable_conv_module.py:86
Methodforward
Args: pred_alpha (Tensor): of shape (N, 1, H, W). Predicted alpha matte. fg (Tensor): of shape (N, 3, H, W). Tensor o
mmedit/models/losses/composition_loss.py:35
Methodforward
Args: pred_alpha (Tensor): of shape (N, 1, H, W). Predicted alpha matte. fg (Tensor): of shape (N, 3, H, W). Tensor o
mmedit/models/losses/composition_loss.py:82
Methodforward
Args: pred_alpha (Tensor): of shape (N, 1, H, W). Predicted alpha matte. fg (Tensor): of shape (N, 3, H, W). Tensor o
mmedit/models/losses/composition_loss.py:136
Methodforward
Args: input (Tensor): The input for the loss module, i.e., the network prediction. target_is_real (bo
mmedit/models/losses/gan_loss.py:80
Methodforward
(self, x)
mmedit/models/losses/gan_loss.py:238
Methodforward
Forward function. Args: discriminator (nn.Module): Network for the discriminator. real_data (Tensor): Real input data
mmedit/models/losses/gan_loss.py:304
Methodforward
Forward function. Args: x (Tensor): Tensor with shape (n, c, h, w) Returns: Tensor: Loss.
mmedit/models/losses/gan_loss.py:334
Methodforward
Forward Function. Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W
mmedit/models/losses/pixelwise_loss.py:121
Methodforward
Forward Function. Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W
mmedit/models/losses/pixelwise_loss.py:174
Methodforward
Forward function. Args: pred (torch.Tensor): Tensor with shape of (n, c, h, w). mask (torch.Tensor, optional): Tensor
mmedit/models/losses/pixelwise_loss.py:203
Methodforward
Forward function. Args: x (Tensor): Input tensor. Returns: Tensor: Forward results.
mmedit/models/losses/feature_loss.py:24
Methodforward
Forward function. Args: pred (Tensor): Predicted tensor. gt (Tensor): GT tensor. Returns: Tensor
mmedit/models/losses/feature_loss.py:79
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/losses/perceptual_loss.py:65
Methodforward
Forward function. Args: x (Tensor): Input tensor with shape (n, c, h, w). gt (Tensor): Ground-truth tensor with shape
mmedit/models/losses/perceptual_loss.py:172
Methodforward
Forward function. Args: maps (Tuple[Tensor]): Input tensors. soft_attention (Tensor): Soft-attention tensor.
mmedit/models/losses/perceptual_loss.py:258
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
mmedit/models/losses/gradient_loss.py:30
Methodforward_dummy
(self, inputs)
mmedit/models/mattors/gca.py:45
Methodforward_dummy
(self, inputs)
mmedit/models/mattors/indexnet.py:45
Methodforward_dummy
(self, inputs)
mmedit/models/mattors/dim.py:79
Methodforward_dummy
(self, x)
mmedit/models/inpaintors/pconv_inpaintor.py:140
Methodforward_dummy
Forward dummy function for getting flops. Args: x (torch.Tensor): Input tensor with shape of (n, c, h, w). Returns:
mmedit/models/inpaintors/one_stage.py:434
Methodforward_dummy
Used for computing network FLOPs. Args: img (Tensor): Input frames. Returns: Tensor: Output frame(s).
mmedit/models/video_interpolators/basic_interpolator.py:227
Methodforward_dummy
Used for computing network FLOPs. Args: imgs (Tensor): Input images. Returns: Tensor: Restored image.
mmedit/models/restorers/edvr.py:75
Methodforward_dummy
Used for computing network FLOPs. Args: img (Tensor): Input image. Returns: Tensor: Output image.
mmedit/models/restorers/basic_restorer.py:200
Methodforward_dummy
Used for computing network FLOPs. Args: img (Tensor): Dummy input used to compute FLOPs. Returns: Tensor: Du
mmedit/models/synthesizers/pix2pix.py:198
Methodforward_dummy
Used for computing network FLOPs. Args: img (Tensor): Dummy input used to compute FLOPs. Returns: Tensor: Du
mmedit/models/synthesizers/cycle_gan.py:286
Methodforward_test
Defines the computation performed at every test call. Args: merged (Tensor): Image to predict alpha matte. trimap (Te
mmedit/models/mattors/gca.py:68
Methodforward_test
Defines the computation performed at every test call. Args: merged (Tensor): Image to predict alpha matte. trimap (Te
mmedit/models/mattors/indexnet.py:77
Methodforward_test
Defines the computation performed at every test call. Args: merged (Tensor): Image to predict alpha matte. trimap (Te
mmedit/models/mattors/dim.py:118
Methodforward_test
Forward function for testing. Args: masked_img (torch.Tensor): Tensor with shape of (n, 3, h, w). mask (torch.Tensor)
mmedit/models/inpaintors/pconv_inpaintor.py:16
Methodforward_test
Forward function for testing. Args: masked_img (torch.Tensor): Tensor with shape of (n, 3, h, w). mask (torch.Tensor)
mmedit/models/inpaintors/two_stage.py:52
Methodforward_test
Forward function for testing. Args: masked_img (torch.Tensor): Tensor with shape of (n, 3, h, w). mask (torch.Tensor)
mmedit/models/inpaintors/aot_inpaintor.py:105
Methodforward_test
Testing forward function. Args: inputs (Tensor): The input Tensor with shape (n, 2, c, h, w). target (Tensor): The ta
mmedit/models/video_interpolators/cain.py:45
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (n,
mmedit/models/restorers/glean.py:33
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (n,
mmedit/models/restorers/real_esrgan.py:191
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ image. gt (Tensor): GT image. coord (Tensor): Coord tenso
mmedit/models/restorers/liif.py:106
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, t, c, h, w). gt (Tensor): GT Tensor with shape
mmedit/models/restorers/basicvsr.py:151
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (n,
mmedit/models/restorers/edvr.py:87
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, t, c, h, w). gt (Tensor): GT Tensor with sh
mmedit/models/restorers/clipiqa.py:161
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, t, c, h, w). gt (Tensor): GT Tensor with sh
mmedit/models/restorers/clipiqa.py:343
Methodforward_test
Testing forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (n,
mmedit/models/restorers/tdan.py:93
Methodforward_train
Forward function for training GCA model. Args: merged (Tensor): with shape (N, C, H, W) encoding input images. Ty
mmedit/models/mattors/gca.py:48
Methodforward_train
Forward function for training IndexNet model. Args: merged (Tensor): Input images tensor with shape (N, C, H, W).
mmedit/models/mattors/indexnet.py:49
Methodforward_train
Defines the computation performed at every training call. Args: merged (Tensor): of shape (N, C, H, W) encoding input images.
mmedit/models/mattors/dim.py:82
Methodforward_train
Training forward function. Args: inputs (Tensor): Tensor of inputs frames with shape (n, 2, c, h, w).
mmedit/models/video_interpolators/cain.py:23
Methodforward_train
Training forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shap
mmedit/models/restorers/clipiqa.py:69
Methodforward_train
Training forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shap
mmedit/models/restorers/clipiqa.py:250
Methodforward_train
Training forward function. Args: lq (Tensor): LQ Tensor with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (n
mmedit/models/restorers/tdan.py:42
Methodgauss_arg
(x)
mmedit/models/losses/gan_loss.py:230
Methodgen_feature
Generate feature. Args: x (Tensor): Input tensor with shape (n, c, h, w). Returns: Tensor: Forward results.
mmedit/models/backbones/sr_backbones/liif_net.py:245
Functiongeneration_inference
Inference image with the model. Args: model (nn.Module): The loaded model. img (str): File path of input image. img_unpai
mmedit/apis/generation_inference.py:10
Functionget_hash
()
setup.py:45
Methodget_lr
Calculates the learning rate. Args: runner (object): The passed runner. base_lr (float): Base learning rate.
mmedit/core/scheduler/lr_updater.py:28
Methodget_mean_latent
(self, num_samples=4096, **kwargs)
mmedit/models/components/stylegan2/generator_discriminator.py:227
Methodget_regular_lr
(self, runner)
mmedit/core/scheduler/lr_updater.py:166
Functiongradient_error
Gradient error for evaluating alpha matte prediction. Args: alpha (ndarray): Ground-truth alpha matte. trimap (ndarray): Input tr
mmedit/core/evaluation/metrics.py:51
Methodin_cooldown
(self)
mmedit/core/scheduler/lr_updater.py:209
Functioninit_coop_model
Initialize a model from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmedit/apis/matting_inference.py:10
Functioninit_func
Initialization function. Args: m (nn.Module): Module to be initialized.
mmedit/models/common/generation_model_utils.py:23
Functioninit_random_seed
Initialize random seed. If the seed is not set, the seed will be automatically randomized, and then broadcast to all processes to prevent som
mmedit/apis/train.py:21
Methodinit_weights
Abstract method for initializing weight. All subclass should overwrite it.
mmedit/models/base.py:25
Methodinit_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/components/discriminators/light_cnn.py:112
Methodinit_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/components/discriminators/gl_disc.py:50
Methodinit_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/components/discriminators/modified_vgg.py:102
← previousnext →1,001–1,100 of 1,214, ranked by callers