MCPcopy Create free account

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

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

↓ 1 callersMethod_init_info
(self)
mmedit/datasets/pipelines/loading.py:342
↓ 1 callersMethod_init_is_better
(self, mode)
mmedit/core/scheduler/lr_updater.py:185
↓ 1 callersMethod_init_linear_weights
Initialize linear weights as described in PGGAN.
mmedit/models/components/stylegan2/modules.py:246
↓ 1 callersMethod_initialize_weights
(self)
mmedit/models/backbones/vfi_backbones/flavr_net.py:235
↓ 1 callersMethod_load_annotations_from_file
(self)
mmedit/datasets/sr_folder_multiple_gt_dataset.py:74
↓ 1 callersMethod_load_annotations_from_file
(self)
mmedit/datasets/sr_folder_video_dataset.py:94
↓ 1 callersMethod_load_pretrained_model
(self, ckpt_path, prefix='',
mmedit/models/components/stylegan2/generator_discriminator.py:189
↓ 1 callersMethod_load_pretrained_model
(self, ckpt_path, prefix='',
mmedit/models/components/stylegan2/generator_discriminator.py:512
↓ 1 callersMethod_make_layer
(self, layer_setting, norm_cfg)
mmedit/models/backbones/encoder_decoders/encoders/indexnet_encoder.py:450
↓ 1 callersMethod_make_shortcut
(self, in_channels, out_channels, conv_cfg, norm_cfg, act_cfg, order, with_spectral_nor
mmedit/models/backbones/encoder_decoders/encoders/resnet_enc.py:333
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:300
↓ 1 callersFunction_minimal_ext_cmd
(cmd)
setup.py:21
↓ 1 callersFunction_non_dist_train
Non-Distributed training function. Args: model (nn.Module): The model to be trained. dataset (:obj:`Dataset`): Train dataset.
mmedit/apis/train.py:241
↓ 1 callersMethod_quantize_clip
(self, input_)
mmedit/datasets/pipelines/augmentation.py:1234
↓ 1 callersMethod_random_dilate
(self, img)
mmedit/datasets/pipelines/augmentation.py:766
↓ 1 callersMethod_random_resize
(self, imgs)
mmedit/datasets/pipelines/random_degradations.py:161
↓ 1 callersMethod_reset
(self)
mmedit/core/scheduler/lr_updater.py:191
↓ 1 callersMethod_resize
(self, img)
mmedit/datasets/pipelines/augmentation.py:113
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img1, img2 (ndarray): Im
mmedit/core/evaluation/metrics.py:271
↓ 1 callersFunction_transform
(n_px)
tools/copy_spaq_img.py:42
↓ 1 callersMethod_unsharp_masking
(self, imgs)
mmedit/datasets/pipelines/augmentation.py:1299
↓ 1 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor | np.array): The model prediction. target (tor
mmedit/core/evaluation/metrics.py:664
↓ 1 callersFunctionaccuracy_torch
(pred, target, topk=(1, ), thrs=0.)
mmedit/core/evaluation/metrics.py:633
↓ 1 callersFunctionadd_gaussian_noise
(img, mu, sigma)
mmedit/datasets/pipelines/matting_aug.py:14
↓ 1 callersFunctionadd_mim_extension
Add extra files that are required to support MIM into the package. These files will be added by creating a symlink to the originals if the pa
setup.py:144
↓ 1 callersFunctionadjust_gamma
Performs Gamma Correction on the input image. This function is adopted from skimage: https://github.com/scikit-image/scikit-image/blob/ 7
mmedit/datasets/pipelines/utils.py:57
↓ 1 callersMethodattention
(self, x: torch.Tensor)
mmedit/models/components/clip/model.py:190
↓ 1 callersFunctionavailable_models
Returns the names of available CLIP models
mmedit/models/components/clip/clip.py:86
↓ 1 callersMethodbackward_discriminator
Backward function for the discriminator. Args: outputs (dict): Dict of forward results. Returns: dict: Loss
mmedit/models/synthesizers/pix2pix.py:225
↓ 1 callersMethodbackward_discriminators
Backward function for the discriminators. Args: outputs (dict): Dict of forward results. Returns: dict: Loss
mmedit/models/synthesizers/cycle_gan.py:315
↓ 1 callersMethodbackward_generator
Backward function for the generator. Args: outputs (dict): Dict of forward results. Returns: dict: Loss dict
mmedit/models/synthesizers/pix2pix.py:251
↓ 1 callersMethodbackward_generators
Backward function for the generators. Args: outputs (dict): Dict of forward results. Returns: dict: Loss dic
mmedit/models/synthesizers/cycle_gan.py:360
↓ 1 callersFunctionbasic_clean
(text)
mmedit/models/components/clip/simple_tokenizer.py:50
↓ 1 callersMethodbatched_predict
Batched predict. Args: x (Tensor): Input tensor. coord (Tensor): coord tensor. cell (Tensor): cell tensor
mmedit/models/backbones/sr_backbones/liif_net.py:168
↓ 1 callersFunctionbbox2mask
Generate mask in ndarray from bbox. The returned mask has the shape of (h, w, 1). '1' indicates the hole and '0' indicates the valid regions.
mmedit/core/mask.py:78
↓ 1 callersFunctionbivariate_gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In isotropic mode, only `sig_x` is used. `sig_y` and `theta` are ignored.
mmedit/datasets/pipelines/blur_kernels.py:69
↓ 1 callersFunctionbivariate_generalized_gaussian
Generate a bivariate generalized Gaussian kernel. Described in `Parameter Estimation For Multivariate Generalized Gaussian Distributions` by
mmedit/datasets/pipelines/blur_kernels.py:116
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. This kernel has a form of 1 / (1+x^(beta)). Ref: https://stats.stackexchange.com/questions/203629
mmedit/datasets/pipelines/blur_kernels.py:166
↓ 1 callersMethodbpe
(self, token)
mmedit/models/components/clip/simple_tokenizer.py:80
↓ 1 callersFunctionbrush_stroke_mask
Generate free-form mask. The method of generating free-form mask is in the following paper: Free-Form Image Inpainting with Gated Convolution
mmedit/core/mask.py:104
↓ 1 callersMethodbuild_attention_mask
(self)
mmedit/models/components/clip/model.py:342
↓ 1 callersMethodbuild_conv1
(self, in_channels, out_channels, kernel_size, stride, conv_cfg, norm_cfg, act_cfg, with_s
mmedit/models/backbones/encoder_decoders/encoders/resnet_enc.py:58
↓ 1 callersMethodbuild_conv2
(self, in_channels, out_channels, kernel_size, conv_cfg, norm_cfg, with_spectral_norm)
mmedit/models/backbones/encoder_decoders/encoders/resnet_enc.py:71
↓ 1 callersFunctionbuild_metric
Build a metric calculator.
mmedit/core/registry.py:7
↓ 1 callersFunctionbuild_model
(state_dict: dict)
mmedit/models/components/clip/model.py:413
↓ 1 callersFunctioncalculate_gaussian_pdf
Calculate PDF of the bivariate Gaussian distribution. Args: sigma_matrix (ndarray): The variance matrix with shape (2, 2). grid (
mmedit/datasets/pipelines/blur_kernels.py:51
↓ 1 callersMethodcalculate_overlap_factor
Calculate the overlap factor after applying deconv. Args: attention_score (torch.Tensor): The attention score with shape of
mmedit/models/common/contextual_attention.py:260
↓ 1 callersMethodcalculate_unfold_hw
Calculate (h, w) after unfolding. The official implementation of `unfold` in pytorch will put the dimension (h, w) into `L`. Thus, th
mmedit/models/common/contextual_attention.py:238
↓ 1 callersMethodcheck_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th
mmedit/models/backbones/sr_backbones/iconvsr.py:111
↓ 1 callersMethodcheck_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th
mmedit/models/backbones/sr_backbones/basicvsr_pp.py:105
↓ 1 callersMethodcheck_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th
mmedit/models/backbones/sr_backbones/basicvsr_net.py:62
↓ 1 callersMethodcheck_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th
mmedit/models/restorers/basicvsr.py:64
↓ 1 callersFunctioncollect_env
Collect the information of the running environments.
mmedit/utils/collect_env.py:8
↓ 1 callersFunctioncollect_results_cpu
Collect results in cpu mode. It saves the results on different gpus to 'tmpdir' and collects them by the rank 0 worker. Args: re
mmedit/apis/test.py:129
↓ 1 callersFunctioncollect_results_gpu
Collect results in gpu mode. It encodes results to gpu tensors and use gpu communication for results collection. Args: result_pa
mmedit/apis/test.py:190
↓ 1 callersFunctioncompute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
mmedit/core/evaluation/metrics.py:415
↓ 1 callersMethodcompute_flow
Compute optical flow using SPyNet for feature warping. Note that if the input is an mirror-extended sequence, 'flows_forward' is not
mmedit/models/backbones/sr_backbones/iconvsr.py:151
↓ 1 callersMethodcompute_flow
Compute optical flow using SPyNet for feature alignment. Note that if the input is an mirror-extended sequence, 'flows_forward' is no
mmedit/models/backbones/sr_backbones/basicvsr_pp.py:121
↓ 1 callersMethodcompute_flow
Compute optical flow using SPyNet for feature warping. Note that if the input is an mirror-extended sequence, 'flows_forward' is not
mmedit/models/backbones/sr_backbones/basicvsr_net.py:78
↓ 1 callersMethodcompute_flow
Compute flow from ref to supp. Note that in this function, the images are already resized to a multiple of 32. Args:
mmedit/models/backbones/sr_backbones/basicvsr_net.py:258
↓ 1 callersMethodcompute_guided_attention_score
Compute guided attention score. Args: similarity_map (Tensor): Similarity map of image feature with shape (1, img
mmedit/models/common/gca_module.py:218
↓ 1 callersMethodcompute_refill_features
Compute keyframe features for information-refill. Since EDVR-M is used, padding is performed before feature computation. Args:
mmedit/models/backbones/sr_backbones/iconvsr.py:127
↓ 1 callersMethodcompute_similarity_map
Compute similarity between image feature patches. Args: img_feat (Tensor): Image feature map of shape (1, img_c,
mmedit/models/common/gca_module.py:196
↓ 1 callersMethodcompute_weight
Compute weight with equalized learning rate. Args: module (nn.Module): A module that is wrapped with equalized lr. Retur
mmedit/models/components/stylegan2/modules.py:90
↓ 1 callersMethodcompute_zero_padding
Compute zero padding tuple.
mmedit/models/losses/gan_loss.py:164
↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp16
mmedit/models/components/clip/model.py:389
↓ 1 callersFunctioncopy_img_to_folder
(img_path, resize=None)
tools/copy_spaq_img.py:33
↓ 1 callersFunctiondefault_bpe
()
mmedit/models/components/clip/simple_tokenizer.py:11
↓ 1 callersMethoddenormalize
Denormalize the output image. Args: img (Tensor): Output image. Returns: Tensor: Denormalized image.
mmedit/models/backbones/sr_backbones/tof.py:198
↓ 1 callersMethoddenormalize
Denormalize the output image. Args: img (Tensor): Output image. Returns: Tensor: Denormalized image.
mmedit/models/backbones/vfi_backbones/tof_vfi_net.py:241
↓ 1 callersFunctiondgaussian
Gradient of gaussian. Args: x (array_like): The independent variable. sigma (float): Standard deviation of the gaussian function.
mmedit/core/evaluation/metric_utils.py:19
↓ 1 callersFunctiondisable_gpu_fuser_on_pt19
On PyTorch 1.9 a CUDA fuser bug prevents the Inception JIT model to run. Refers to: https://github.com/GaParmar/clean-fid/blob/5e1e84cdea96
mmedit/core/evaluation/inception_utils.py:345
↓ 1 callersMethodencode_image
(self, image, pos_embedding)
mmedit/models/components/clip/model.py:354
↓ 1 callersMethodencode_text
(self, text)
mmedit/models/components/clip/model.py:357
↓ 1 callersMethodevaluate
Evaluation function. If the output contains multiple frames, we compute the metric one by one and take an average. Args:
mmedit/models/restorers/basicvsr.py:116
↓ 1 callersMethodevaluate
Evaluation function. If the output contains multiple frames, we compute the metric one by one and take an average. Args
mmedit/models/restorers/clipiqa.py:121
↓ 1 callersMethodevaluate
Evaluation function. If the output contains multiple frames, we compute the metric one by one and take an average. Args
mmedit/models/restorers/clipiqa.py:303
↓ 1 callersMethodevaluate
Evaluation function. Args: output (Tensor): Model output with shape (n, c, h, w). gt (Tensor): GT Tensor with shape (
mmedit/models/restorers/basic_restorer.py:103
↓ 1 callersMethodextract_feature_maps_patches
Extract image feature, alpha feature unknown patches. Args: img_feat (Tensor): Image feature map of shape (N, img
mmedit/models/common/gca_module.py:158
↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation. The Inception model for FID computation uses a different set of weights and has a sligh
mmedit/core/evaluation/inception_utils.py:165
↓ 1 callersMethodforward
(self, image, text, pos_embedding=False)
mmedit/models/components/clip/model.py:372
↓ 1 callersMethodforward
Forward function. Args: lq (Tensor): Input lq images. gt (Tensor): Ground-truth image. Default: None. tes
mmedit/models/restorers/dic.py:79
↓ 1 callersMethodforward_test
Defines the computation performed at every test call.
mmedit/models/mattors/base_mattor.py:212
↓ 1 callersMethodforward_test
Testing forward function. Args: lq (Tensor): LQ image gt (Tensor): GT image lq_up (Tensor): Upsampled LQ
mmedit/models/restorers/ttsr.py:223
↓ 1 callersMethodforward_test
Forward function for testing. Args: img_a (Tensor): Input image from domain A. img_b (Tensor): Input image from domai
mmedit/models/synthesizers/pix2pix.py:133
↓ 1 callersMethodforward_test
Forward function for testing. Args: img_a (Tensor): Input image from domain A. img_b (Tensor): Input image from domai
mmedit/models/synthesizers/cycle_gan.py:202
↓ 1 callersMethodforward_train
Abstract method for training forward. All subclass should overwrite it.
mmedit/models/base.py:32
↓ 1 callersMethodforward_train
Defines the computation performed at every training call. Args: merged (Tensor): Image to predict alpha matte. trimap
mmedit/models/mattors/base_mattor.py:202
↓ 1 callersMethodforward_train
Forward function for training. In this version, we do not use this interface.
mmedit/models/inpaintors/one_stage.py:139
↓ 1 callersMethodforward_train
Training forward function. This is a basic function, interpolate a frame between the given two frames. Args: inp
mmedit/models/video_interpolators/basic_interpolator.py:90
↓ 1 callersMethodforward_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/basic_restorer.py:83
↓ 1 callersMethodforward_train
Forward function for training. Args: img_a (Tensor): Input image from domain A. img_b (Tensor): Input image from doma
mmedit/models/synthesizers/pix2pix.py:116
↓ 1 callersMethodforward_train
Forward function for training. Args: img_a (Tensor): Input image from domain A. img_b (Tensor): Input image from doma
mmedit/models/synthesizers/cycle_gan.py:172
↓ 1 callersFunctionfrechet_distance
Compute the frechet distance.
mmedit/core/evaluation/inceptions.py:56
↓ 1 callersMethodfreeze_backbone
Freeze the backbone and only train the refiner.
mmedit/models/mattors/base_mattor.py:96
↓ 1 callersMethodfreeze_bn
Set BatchNorm modules in the model to evaluation mode.
mmedit/models/backbones/encoder_decoders/encoders/indexnet_encoder.py:477
↓ 1 callersMethodfuse_correlation_map
Fuse correlation map. This operation is to fuse correlation map for increasing large consistent correlation regions. The mec
mmedit/models/common/contextual_attention.py:189
↓ 1 callersMethodgather
Hard Attention. Gathers values along an axis specified by dim. Args: inputs (Tensor): The source tensor. (N, C*k*k, H*W)
mmedit/models/transformers/search_transformer.py:16
↓ 1 callersFunctiongauss_filter
Gradient of gaussian. Args: sigma (float): Standard deviation of the gaussian kernel. epsilon (float): Small value used when calc
mmedit/core/evaluation/metric_utils.py:32
↓ 1 callersMethodgaussian
(self, kernel_size, sigma)
mmedit/models/losses/gan_loss.py:228
← previousnext →201–300 of 1,214, ranked by callers