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
Method
process_unknown_mask
Process unknown mask. Args: unknown (Tensor, optional): Unknown area map generated by trimap of shape (N, 1, ori_
mmedit/models/common/gca_module.py:274
↓ 1 callers
Method
propagate
Propagate the latent features throughout the sequence. Args: feats dict(list[tensor]): Features from previous branches. Each
mmedit/models/backbones/sr_backbones/basicvsr_pp.py:155
↓ 1 callers
Method
propagate_alpha_feature
Propagate alpha feature based on guided attention score. Args: gca_score (Tensor): Guided attention score map of shape
mmedit/models/common/gca_module.py:250
↓ 1 callers
Function
random_bbox
Generate a random bbox for the mask on a given image. In our implementation, the max value cannot be obtained since we use `np.random.randint
mmedit/core/mask.py:10
↓ 1 callers
Function
random_circular_lowpass_kernel
Generate a 2D Sinc filter. Reference: https://dsp.stackexchange.com/questions/58301/2-d-circularly-symmetric-low-pass-filter # noqa Args:
mmedit/datasets/pipelines/blur_kernels.py:400
↓ 1 callers
Function
read_frames
Read frames from file or video. Args: source (list | mmcv.VideoReader): Source of frames. start_index (int): Start index of frame
mmedit/apis/video_interpolation_inference.py:34
↓ 1 callers
Function
readme
()
setup.py:10
↓ 1 callers
Function
reduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum".
mmedit/models/losses/utils.py:7
↓ 1 callers
Function
reduce_to_five_heatmaps
Reduce facial landmark heatmaps to 5 heatmaps. DIC realizes facial SR with the help of key points of the face. The number of key points in da
mmedit/models/extractors/feedback_hour_glass.py:163
↓ 1 callers
Function
resize_along_dim
Resize along a specific dimension. Args: img_in (ndarray): The input image. weights (ndarray): The weights used for interpolation
mmedit/datasets/pipelines/matlab_like_resize.py:124
↓ 1 callers
Method
save_visualization
Save visualization results. Args: img (torch.Tensor): Tensor with shape of (n, 3, h, w). filename (str): Path to save
mmedit/models/inpaintors/one_stage.py:314
↓ 1 callers
Function
scale_bbox
Modify bbox to target size. The original bbox will be enlarged to the target size with the original bbox in the center of the new bbox.
mmedit/models/common/model_utils.py:74
↓ 1 callers
Method
spatial_discount_mask
Generate spatial discounting mask constant. Args: mask_width (int): The width of bbox hole. mask_height (int): The he
mmedit/datasets/pipelines/loading.py:445
↓ 1 callers
Method
spatial_padding
Apply pdding spatially. Since the PCD module in EDVR requires that the resolution is a multiple of 4, we apply padding to the input L
mmedit/models/backbones/sr_backbones/iconvsr.py:87
↓ 1 callers
Method
spatial_padding
Apply pdding spatially. Since the SPyNet module in TOFlow requires that the resolution is a multiple of 16, we apply padding to the i
mmedit/models/backbones/vfi_backbones/tof_vfi_net.py:252
↓ 1 callers
Method
split_frames
split input tensors for inference. Args: input_tensors (Tensor): Tensor of input frames with shape [1, t, c, h, w
mmedit/models/video_interpolators/basic_interpolator.py:273
↓ 1 callers
Function
style_mixing
(generator, n_source, n_target, inject_index=1,
mmedit/models/components/stylegan2/common.py:57
↓ 1 callers
Function
sync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
mmedit/core/utils/dist_utils.py:8
↓ 1 callers
Method
to_ddp
Wrap models with separate MMDistributedDataParallel. It only wraps the modules with parameters.
mmedit/core/distributed_wrapper.py:72
↓ 1 callers
Function
train_model
Train model entry function. Args: model (nn.Module): The model to be trained. dataset (:obj:`Dataset`): Train dataset. cf
mmedit/apis/train.py:73
↓ 1 callers
Function
transform_process
(img, _transform_dict, noise_std=None)
mmedit/apis/restoration_inference.py:126
↓ 1 callers
Method
two_stage_loss
Calculate two-stage loss. Args: stage1_data (dict): Contain stage1 results. stage2_data (dict): Contain stage2 result
mmedit/models/inpaintors/two_stage.py:142
↓ 1 callers
Method
two_stage_loss
Calculate two-stage loss. Args: stage1_data (dict): Contain stage1 results. stage2_data (dict): Contain stage2 result
mmedit/models/inpaintors/deepfillv1.py:71
↓ 1 callers
Function
whitespace_clean
(text)
mmedit/models/components/clip/simple_tokenizer.py:56
Method
__call__
Extract features of real and fake images. Args: img1, img2 (np.ndarray): Images with range [0, 255] and shape (H,
mmedit/core/evaluation/inceptions.py:26
Method
__call__
Calculate FID. Args: X (np.ndarray): Input feature X with shape (n_samples, dims). Y (np.ndarray): Input feature Y wi
mmedit/core/evaluation/inceptions.py:72
Method
__call__
Calculate KID. Args: X (np.ndarray): Input feature X with shape (n_samples, dims). Y (np.ndarray): Input feature Y wi
mmedit/core/evaluation/inceptions.py:132
Method
__call__
(self, data_dict)
mmedit/core/evaluation/metrics.py:371
Method
__call__
(self, img)
mmedit/apis/restoration_inference.py:153
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:131
Method
__call__
(self, results)
mmedit/datasets/pipelines/augmentation.py:198
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:241
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:296
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:510
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:574
Method
__call__
(self, results)
mmedit/datasets/pipelines/augmentation.py:679
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:724
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:776
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:823
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:885
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:963
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:1031
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:1079
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:1146
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:1197
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/augmentation.py:1248
Method
__call__
(self, results)
mmedit/datasets/pipelines/augmentation.py:1319
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:92
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:211
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:273
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:349
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:434
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:557
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:635
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:682
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/crop.py:721
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:56
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:139
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:240
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:394
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:464
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/loading.py:518
Method
__call__
Call function. Args: data (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/compose.py:31
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation. 'gt'
mmedit/datasets/pipelines/random_down_sampling.py:48
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation. Requi
mmedit/datasets/pipelines/generate_assistant.py:36
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/generate_assistant.py:116
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:124
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:229
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:334
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:392
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:460
Method
__call__
(self, results)
mmedit/datasets/pipelines/random_degradations.py:533
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/normalization.py:30
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/normalization.py:83
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:29
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:104
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:167
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:244
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:370
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:437
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:525
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/matting_aug.py:597
Method
__call__
(self, results)
mmedit/datasets/pipelines/matlab_like_resize.py:249
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:45
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:77
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:114
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:156
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:196
Method
__call__
Call function. Args: results (dict): A dict containing the necessary information and data for augmentation.
mmedit/datasets/pipelines/formating.py:242
Method
__call__
Standard interface for forward pre hooks.
mmedit/models/components/stylegan2/modules.py:112
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/base_vfi_dataset.py:19
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/base_dataset.py:69
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/iqa_koniq_dataset.py:35
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/iqa_koniq_dataset.py:65
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/iqa_koniq_dataset.py:99
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/base_sr_dataset.py:47
Method
__getitem__
Get item at each call. Args: idx (int): Index for getting each item.
mmedit/datasets/dataset_wrappers.py:25
Method
__init__
(self, module, device_ids, dim=0, broadcas
mmedit/core/distributed_wrapper.py:50
Method
__init__
(self, val_metric: str = None, mode: str = 'min', factor: f
mmedit/core/scheduler/lr_updater.py:100
Method
__init__
(self, dataloader, interval=1, gpu_collect=False,
mmedit/core/evaluation/eval_hooks.py:89
← previous
next →
401–500 of 1,214, ranked by callers