Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceClear/CLIP-IQA
/ functions
Functions
1,214 in github.com/IceClear/CLIP-IQA
⨍
Functions
1,214
◇
Types & classes
335
↳
Endpoints
1
↓ 1 callers
Function
gaussian_noise
(image, std)
mmedit/apis/restoration_inference.py:130
↓ 1 callers
Method
gen_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:301
↓ 1 callers
Function
gen_packages_items
()
setup.py:126
↓ 1 callers
Method
generator_loss
Forward function in generator training step. In this function, we mainly compute the loss items for generator with the given (fake_re
mmedit/models/inpaintors/aot_inpaintor.py:56
↓ 1 callers
Method
generator_loss
Forward function in generator training step. In this function, we mainly compute the loss items for generator with the given (fake_re
mmedit/models/inpaintors/one_stage.py:180
↓ 1 callers
Method
get_2d_gaussian_kernel
Get the two-dimensional Gaussian filter matrix coefficients. Args: kernel_size (tuple[int]): Kernel filter size in the x and y
mmedit/models/losses/gan_loss.py:171
↓ 1 callers
Function
get_irregular_mask
Get irregular mask with the constraints in mask ratio. Args: img_shape (tuple[int]): Size of the image. area_ratio_range (tuple(f
mmedit/core/mask.py:297
↓ 1 callers
Method
get_kernel
(self, num_kernels)
mmedit/datasets/pipelines/random_degradations.py:35
↓ 1 callers
Function
get_mean_latent
Get mean latent of W space in Style-based GANs. Args: generator (nn.Module): Generator of a Style-based GAN. num_samples (int, op
mmedit/models/components/stylegan2/common.py:26
↓ 1 callers
Function
get_padding_functions
Generate padding function for CAIN. This function produces two functions to pad and depad a tensor, given the number of pixels to be padded.
mmedit/models/backbones/vfi_backbones/cain_net.py:12
↓ 1 callers
Method
get_params
Get parameters for a random sized crop. Args: data (np.ndarray): Image of type numpy array to be cropped. Returns:
mmedit/datasets/pipelines/crop.py:170
↓ 1 callers
Function
get_scale_from_size
Get the scale factor given input size and output size. Args: input_size (tuple(int)): The size of the input image. output_size (t
mmedit/datasets/pipelines/matlab_like_resize.py:28
↓ 1 callers
Method
get_self_correlation_mask
(self, img_feat)
mmedit/models/common/gca_module.py:343
↓ 1 callers
Function
get_size_from_scale
Get the output size given input size and scale factor. Args: input_size (tuple): The size of the input image. scale_factor (float
mmedit/datasets/pipelines/matlab_like_resize.py:9
↓ 1 callers
Function
get_version
()
setup.py:60
↓ 1 callers
Function
get_weights_indices
Get weights and indices for interpolation. Args: input_length (int): Length of the input sequence. output_length (int): Length of
mmedit/datasets/pipelines/matlab_like_resize.py:71
↓ 1 callers
Function
gradient_penalty_loss
Calculate gradient penalty for wgan-gp. Args: discriminator (nn.Module): Network for the discriminator. real_data (Tensor): Real
mmedit/models/losses/gan_loss.py:253
↓ 1 callers
Function
h
(x)
mmedit/datasets/pipelines/matlab_like_resize.py:87
↓ 1 callers
Method
init_offset
(self)
mmedit/models/backbones/sr_backbones/tdan_net.py:52
↓ 1 callers
Method
init_offset
(self)
mmedit/models/backbones/sr_backbones/basicvsr_pp.py:406
↓ 1 callers
Method
init_offset
(self)
mmedit/models/backbones/sr_backbones/edvr_net.py:47
↓ 1 callers
Method
init_weights
(self, pretrained=None)
mmedit/models/backbones/encoder_decoders/encoders/resnet_enc.py:185
↓ 1 callers
Method
init_weights
Init weights for the module.
mmedit/models/backbones/encoder_decoders/decoders/indexnet_decoder.py:45
↓ 1 callers
Method
init_weights
Init weights for ResidualDenseBlock. Use smaller std for better stability and performance. We empirically use 0.1. See more details i
mmedit/models/backbones/sr_backbones/rrdb_net.py:35
↓ 1 callers
Method
init_weights
Initialize the model network weights. Args: pretrained (str, optional): Path to the pretrained weight. Defaults t
mmedit/models/mattors/base_mattor.py:102
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/inpaintors/one_stage.py:110
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/video_interpolators/basic_interpolator.py:65
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/restorers/srgan.py:73
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/restorers/ttsr.py:293
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/restorers/basic_restorer.py:58
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/extractors/lte.py:90
↓ 1 callers
Method
init_weights
Initialize weights for ResidualBlockNoBN. Initialization methods like `kaiming_init` are for VGG-style modules. For modules with resi
mmedit/models/common/sr_backbone_utils.py:74
↓ 1 callers
Method
init_weights
Initialize weights for PixelShufflePack.
mmedit/models/common/upsample.py:35
↓ 1 callers
Method
init_weights
(self)
mmedit/models/common/linear_module.py:62
↓ 1 callers
Method
init_weights
Initialize weights for the model. Args: pretrained (str, optional): Path for pretrained weights. If given None, p
mmedit/models/synthesizers/pix2pix.py:86
↓ 1 callers
Method
init_weights
Initialize weights for the model. Args: pretrained (str, optional): Path for pretrained weights. If given None, p
mmedit/models/synthesizers/cycle_gan.py:124
↓ 1 callers
Method
init_weights
Init weights for models. Args: pretrained (str, optional): Path for pretrained weights. If given None, pretrained
mmedit/models/losses/feature_loss.py:36
↓ 1 callers
Method
init_weights
Init weights. Args: model (nn.Module): Models to be inited. pretrained (str): Path for pretrained weights.
mmedit/models/losses/perceptual_loss.py:85
↓ 1 callers
Method
initialize_parameters
(self)
mmedit/models/components/clip/model.py:313
↓ 1 callers
Method
l2_norm
(x)
mmedit/models/common/gca_module.py:355
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. Annotation file is a `npy` file, which contains a list of dict. It loads the GT image path and land
mmedit/datasets/sr_facial_landmark_dataset.py:46
↓ 1 callers
Method
load_annotations
Load annotations for dataset. Returns: list[dict]: Contain dataset annotations.
mmedit/datasets/img_inpainting_dataset.py:18
↓ 1 callers
Method
load_annotations
Load annotations for REDS dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_reds_multiple_gt_dataset.py:51
↓ 1 callers
Method
load_annotations
Load annotations for VimeoK dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_vimeo90k_dataset.py:56
↓ 1 callers
Method
load_annotations
Load annotations for Vid4 dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_vid4_dataset.py:76
↓ 1 callers
Method
load_annotations
Load annotations for VimeoK dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/vfi_vimeo90k_dataset.py:39
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. It loads the LQ and GT image path from folders. Returns: list[dict]: A list of dicts fo
mmedit/datasets/sr_folder_dataset.py:65
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. It loads the LQ and GT image path from the annotation file. Each line in the annotation file contain
mmedit/datasets/sr_annotation_dataset.py:55
↓ 1 callers
Method
load_annotations
Load annotations for the dataset. Returns: list[dict]: Returned list of dicts for paired paths of LQ and GT.
mmedit/datasets/sr_folder_multiple_gt_dataset.py:94
↓ 1 callers
Method
load_annotations
Abstract function for loading annotation. All subclasses should overwrite this function
mmedit/datasets/base_dataset.py:31
↓ 1 callers
Method
load_annotations
Load annotations for the dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_folder_video_dataset.py:116
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. It loads the LQ and GT image path from the ``meta_info.txt`` in the LMDB files. Returns:
mmedit/datasets/sr_lmdb_dataset.py:77
↓ 1 callers
Method
load_annotations
Load annotations for Vimeo-90K dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_vimeo90k_multiple_gt_dataset.py:58
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. It loads the GT image path from folder. Returns: list[dict]: A list of dicts for path o
mmedit/datasets/sr_folder_gt_dataset.py:52
↓ 1 callers
Method
load_annotations
Load paired image paths. Returns: list[dict]: List that contains paired image paths.
mmedit/datasets/generation_paired_dataset.py:30
↓ 1 callers
Method
load_annotations
Load annoations for Vimeo-90K dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/vfi_vimeo90k_7frames_dataset.py:61
↓ 1 callers
Method
load_annotations
Load annoations for the test dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_test_multiple_gt_dataset.py:42
↓ 1 callers
Method
load_annotations
Load annotations for SR dataset. It loads the ref, LQ and GT image path from folders. Returns: list[dict]: A list of dic
mmedit/datasets/sr_folder_ref_dataset.py:87
↓ 1 callers
Method
load_annotations
Load annotations for REDS dataset. Returns: list[dict]: A list of dicts for paired paths and other information.
mmedit/datasets/sr_reds_dataset.py:59
↓ 1 callers
Function
load_inception
Load Inception Model from given `style` and `inception_kwargs`. This function would try to load Inception under the guidance of `style` given
mmedit/core/evaluation/inception_utils.py:376
↓ 1 callers
Function
main
()
tools/train.py:58
↓ 1 callers
Function
main
()
tools/test.py:48
↓ 1 callers
Function
main
()
tools/copy_spaq_img.py:67
↓ 1 callers
Function
main
()
tools/get_flops.py:23
↓ 1 callers
Function
main
()
tools/test_mat.py:36
↓ 1 callers
Function
main
()
demo/clipiqa_liveiwt_demo.py:29
↓ 1 callers
Function
main
()
demo/clipiqa_single_image_demo.py:28
↓ 1 callers
Function
main
()
demo/clipiqa_koniq_demo.py:27
↓ 1 callers
Method
mask_correlation_map
Add mask weight for correlation map. Add a negative infinity number to the masked regions so that softmax function will result in 'ze
mmedit/models/common/contextual_attention.py:286
↓ 1 callers
Function
mask_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights. Default
mmedit/models/losses/utils.py:27
↓ 1 callers
Method
merge_frames
merge input frames and output frames. Interpolate a frame between the given two frames. Merged from [[in1, in2, in3, in4
mmedit/models/video_interpolators/flavr.py:41
↓ 1 callers
Function
mkdirs
(paths)
tools/copy_spaq_img.py:26
↓ 1 callers
Function
mmd2
Compute the Maximum Mean Discrepancy.
mmedit/core/evaluation/inceptions.py:94
↓ 1 callers
Function
niqe_core
Calculate NIQE (Natural Image Quality Evaluator) metric. Ref: Making a "Completely Blind" Image Quality Analyzer. This implementation could p
mmedit/core/evaluation/metrics.py:441
↓ 1 callers
Method
norm1
nn.Module: normalization layer after the first convolution layer
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:53
↓ 1 callers
Method
norm1
nn.Module: normalization layer after the first convolution layer
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:157
↓ 1 callers
Method
norm2
nn.Module: normalization layer after the second convolution layer
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:58
↓ 1 callers
Method
norm2
nn.Module: normalization layer after the second convolution layer
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:162
↓ 1 callers
Method
norm3
nn.Module: normalization layer after the second convolution layer
mmedit/models/backbones/encoder_decoders/encoders/resnet.py:167
↓ 1 callers
Method
normalize
(self, x)
mmedit/models/backbones/encoder_decoders/necks/aot_neck.py:97
↓ 1 callers
Method
normalize
Normalize the input image. Args: img (Tensor): Input image. Returns: Tensor: Normalized image.
mmedit/models/backbones/vfi_backbones/tof_vfi_net.py:230
↓ 1 callers
Function
np_to_pil
Converts image in np.array format to PIL image. From C x W x H [0..1] to W x H x C [0...255]
tools/copy_spaq_img.py:57
↓ 1 callers
Function
np_to_pil
Converts image in np.array format to PIL image. From C x W x H [0..1] to W x H x C [0...255]
mmedit/apis/restoration_inference.py:96
↓ 1 callers
Function
pad_sequence
(data, window_size)
mmedit/apis/restoration_video_inference.py:14
↓ 1 callers
Function
parse_args
()
tools/train.py:20
↓ 1 callers
Function
parse_args
()
tools/test.py:16
↓ 1 callers
Function
parse_args
()
tools/get_flops.py:10
↓ 1 callers
Function
parse_args
()
tools/test_mat.py:20
↓ 1 callers
Function
parse_args
()
demo/clipiqa_liveiwt_demo.py:18
↓ 1 callers
Function
parse_args
()
demo/clipiqa_single_image_demo.py:19
↓ 1 callers
Function
parse_args
()
demo/clipiqa_koniq_demo.py:16
↓ 1 callers
Function
parse_line
Parse information from a line in a requirements text file.
setup.py:85
↓ 1 callers
Function
parse_version_info
(version_str)
mmedit/version.py:6
↓ 1 callers
Method
patch_copy_deconv
Copy patches using deconv. Args: attention_score (torch.Tensor): Tensor with shape of (n, l , h, w). context_filter (
mmedit/models/common/contextual_attention.py:168
↓ 1 callers
Method
patch_correlation
Calculate patch correlation. Args: x (torch.Tensor): Input tensor. kernel (torch.Tensor): Kernel tensor. Ret
mmedit/models/common/contextual_attention.py:146
↓ 1 callers
Function
pil_to_np
Converts image in PIL format to np.array. From W x H x C [0...255] to C x W x H [0..1]
tools/copy_spaq_img.py:47
↓ 1 callers
Function
pil_to_np
Converts image in PIL format to np.array. From W x H x C [0...255] to C x W x H [0..1]
mmedit/apis/restoration_inference.py:86
↓ 1 callers
Function
pixel_norm
Pixel Normalization. This normalization is proposed in: Progressive Growing of GANs for Improved Quality, Stability, and Variation Args:
mmedit/models/components/stylegan2/modules.py:20
↓ 1 callers
Method
prepare_test_data
Prepare testing data. Args: idx (int): Index for getting each testing batch. Returns: Tensor: Returned testi
mmedit/datasets/base_dataset.py:49
↓ 1 callers
Method
prepare_train_data
Prepare training data. Args: idx (int): Index of the training batch data. Returns: dict: Returned training b
mmedit/datasets/base_dataset.py:37
← previous
next →
301–400 of 1,214, ranked by callers