MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

↓ 1 callersMethod_output_size
(input, weight, padding, dilation, stride)
basicsr/ops/dcn/deform_conv.py:107
↓ 1 callersFunction_postprocess_yml_value
(value)
basicsr/utils/options.py:75
↓ 1 callersMethod_prepare
(self)
ldm/data/imagenet.py:45
↓ 1 callersMethod_prepare_human_to_integer_label
(self)
ldm/data/imagenet.py:80
↓ 1 callersMethod_prepare_idx_to_synset
(self)
ldm/data/imagenet.py:74
↓ 1 callersMethod_prepare_synset_to_human
(self)
ldm/data/imagenet.py:66
↓ 1 callersMethod_print_different_keys_loading
Print keys with different name or different size when loading models. 1. Print keys with different names. 2. If strict=False, print t
basicsr/models/base_model.py:254
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
basicsr/utils/misc.py:73
↓ 1 callersMethod_set_lr
Set learning rate for warm-up. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.
basicsr/models/base_model.py:163
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img (ndarray): Images wi
basicsr/metrics/psnr_ssim.py:170
↓ 1 callersFunction_ssim_pth
Calculate SSIM (structural similarity) (PyTorch version). It is called by func:`calculate_ssim_pt`. Args: img (Tensor): Images with
basicsr/metrics/psnr_ssim.py:201
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features
basicsr/archs/dfdnet_util.py:74
↓ 1 callersFunctionadd_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thresho
ldm/modules/image_degradation/bsrgan.py:299
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan_light.py:65
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callersFunctionaugment_img
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:380
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm/modules/diffusionmodules/util.py:238
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:573
↓ 1 callersMethodbis
(self, input, dim, index)
ldm/modules/attention.py:223
↓ 1 callersFunctionbivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored.
basicsr/data/degradations.py:84
↓ 1 callersFunctionbivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. ``Paper: Parameter Estimation For Multivariate Generalized Gaussian Distributions`` In the
basicsr/data/degradations.py:112
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Reference: https://stats.stackexchange.com/questions/203629/is-there-a-plateau-
basicsr/data/degradations.py:143
↓ 1 callersFunctionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/vqperceptual.py:85
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/contperceptual.py:32
↓ 1 callersFunctioncalculate_psnr
PSNR metric. im1, im2: h x w x , [0, 255], uint8
scripts/util_image.py:68
↓ 1 callersFunctioncalculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Reference: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img (ndarray)
basicsr/metrics/psnr_ssim.py:12
↓ 1 callersFunctioncalculate_ssim
SSIM the same outputs as MATLAB's im1, im2: h x w x , [0, 255], uint8
scripts/util_image.py:39
↓ 1 callersFunctioncalculate_ssim
Calculate SSIM (structural similarity). ``Paper: Image quality assessment: From error visibility to structural similarity`` The results are
basicsr/metrics/psnr_ssim.py:85
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
basicsr/losses/basic_loss.py:23
↓ 1 callersMethodcheck_frequency
(self, check_idx)
main.py:381
↓ 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 frame.
basicsr/archs/basicvsrpp_arch.py:109
↓ 1 callersMethodcheck_image_size
(self, x)
ldm/modules/swinir.py:770
↓ 1 callersFunctioncheck_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
basicsr/utils/misc.py:94
↓ 1 callersMethodcolor_jitter
jitter color: randomly jitter the RGB values, in numpy formats
basicsr/data/ffhq_degradation_dataset.py:92
↓ 1 callersMethodcolor_jitter_pt
jitter color: randomly jitter the brightness, contrast, saturation, and hue, in torch Tensor formats
basicsr/data/ffhq_degradation_dataset.py:100
↓ 1 callersFunctioncompute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
basicsr/metrics/niqe.py:41
↓ 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
basicsr/archs/basicvsrpp_arch.py:123
↓ 1 callersFunctionconv_block
Conv block used in MSDilationBlock.
basicsr/archs/dfdnet_util.py:97
↓ 1 callersFunctioncopy_opt_file
(opt_file, experiments_root)
basicsr/utils/options.py:197
↓ 1 callersFunctioncreate_train_val_dataloader
(opt, logger)
basicsr/train.py:29
↓ 1 callersFunctiondata_aug_np
Performs data augmentation of the input image Input: image: a cv2 (OpenCV) image mode: int. Choice of transformation to apply
scripts/util_image.py:390
↓ 1 callersMethodddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
ldm/models/diffusion/ddim.py:178
↓ 1 callersMethodddim_sampling_sr
(self, cond, struct_cond, shape, x_T=None, ddim_use_original_steps=False,
ldm/models/diffusion/ddim.py:429
↓ 1 callersMethodddim_sampling_sr_t
(self, cond, struct_cond, shape, x_T=None, ddim_use_original_steps=False,
ldm/models/diffusion/ddim.py:581
↓ 1 callersMethoddecode
(self, z)
ldm/models/autoencoder.py:353
↓ 1 callersMethoddecode
(self, z, enc_fea)
ldm/models/autoencoder.py:586
↓ 1 callersMethoddenormalize
(self, img)
basicsr/archs/tof_arch.py:134
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
basicsr/utils/flow_util.py:150
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/video_base_model.py:18
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). From: https://github.com/rwightman/pytorch-image-models/
basicsr/archs/swinir_arch.py:14
↓ 1 callersMethodembedding_to_coarse_loss
(self)
ldm/modules/embedding_manager.py:150
↓ 1 callersMethodencode
(self, text)
ldm/modules/encoders/modules.py:104
↓ 1 callersMethodencode
(self, x, return_encfea=False)
ldm/models/autoencoder.py:339
↓ 1 callersMethodencode
(self, x)
ldm/models/autoencoder.py:573
↓ 1 callersMethodencode_with_pretrained
(self,x)
ldm/modules/diffusionmodules/model.py:1085
↓ 1 callersMethodencode_with_transformer
(self, text)
ldm/modules/encoders/modules.py:179
↓ 1 callersMethodencode_with_transformer
(self, text)
ldm/modules/encoders/modules.py:245
↓ 1 callersFunctionequals
(val)
ldm/modules/x_transformer.py:76
↓ 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
basicsr/archs/inception.py:155
↓ 1 callersMethodforward_val
(self, x, c, gt, ref, *args, **kwargs)
ldm/models/diffusion/ddpm.py:2565
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules.py:169
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules.py:235
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules.py:283
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules.py:511
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan_light.py:187
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callersFunctionfspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan_light.py:201
↓ 1 callersFunctionfspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callersFunctiong_path_regularize
(fake_img, latents, mean_path_length, decay=0.01)
basicsr/losses/gan_loss.py:159
↓ 1 callersMethodgather
(self)
scripts/util_image.py:767
↓ 1 callersMethodgenerate_caption
(self, image_name, clip_thre=0.28, class_name_score=0.5)
basicsr/data/paired_image_dataset.py:203
↓ 1 callersMethodgenerate_caption
(self, image_name, clip_thre=0.28, class_name_score=0.5)
basicsr/data/realesrgan_dataset.py:382
↓ 1 callersFunctiongenerate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of the
basicsr/data/data_util.py:314
↓ 1 callersMethodget
(self, filepath, client_key='default')
basicsr/utils/file_client.py:158
↓ 1 callersMethodget_base
(self)
ldm/data/imagenet.py:379
↓ 1 callersMethodget_component_coordinates
Get facial component (left_eye, right_eye, mouth) coordinates from a pre-loaded pth file
basicsr/data/ffhq_degradation_dataset.py:121
↓ 1 callersFunctionget_confirm_token
(response)
basicsr/utils/download_util.py:41
↓ 1 callersMethodget_current_learning_rate
(self)
basicsr/models/base_model.py:204
↓ 1 callersMethodget_current_log
(self)
basicsr/models/base_model.py:84
↓ 1 callersMethodget_flow
(self, x)
basicsr/archs/basicvsr_arch.py:44
↓ 1 callersMethodget_flow
(self, x)
basicsr/archs/basicvsr_arch.py:192
↓ 1 callersFunctionget_image_paths
(dataroot)
ldm/modules/image_degradation/utils_image.py:67
↓ 1 callersMethodget_input
Degradation pipeline, modified from Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN
ldm/models/diffusion/ddpm.py:3755
↓ 1 callersMethodget_input_val
Degradation pipeline, modified from Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN
ldm/models/diffusion/ddpm.py:3929
↓ 1 callersMethodget_keyframe_feature
(self, x, keyframe_idx)
basicsr/archs/basicvsr_arch.py:203
↓ 1 callersFunctionget_local_weights
Get local weights for generating the artifact map of LDL. It is only called by the `get_refined_artifact_map` function. Args: residu
basicsr/losses/loss_util.py:99
↓ 1 callersFunctionget_nonspade_norm_layer
(norm_type='instance')
basicsr/archs/hifacegan_util.py:217
↓ 1 callersFunctionget_parser
(**parser_kwargs)
main.py:27
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
basicsr/models/lr_scheduler.py:36
↓ 1 callersFunctionget_refined_artifact_map
Calculate the artifact map of LDL (Details or Artifacts: A Locally Discriminative Learning Approach to Realistic Image Super-Resolution. In CVPR 2
basicsr/losses/loss_util.py:121
↓ 1 callersMethodget_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
basicsr/losses/gan_loss.py:72
↓ 1 callersFunctionget_timestamp
()
ldm/modules/image_degradation/utils_image.py:33
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
ldm/modules/diffusionmodules/model.py:50
↓ 1 callersMethodget_x_noisy
(self, x, t, noise=None)
ldm/models/diffusion/classifier.py:110
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan_light.py:86
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan.py:86
↓ 1 callersFunctionimgrad
Calculate image gradient. Input: im: h x w x c numpy array
scripts/util_image.py:489
↓ 1 callersFunctionimgrad_fft
Calculate image gradient. Input: im: h x w x c numpy array
scripts/util_image.py:519
↓ 1 callersFunctionimread_uint
(path, n_channels=3)
ldm/modules/image_degradation/utils_image.py:185
← previousnext →401–500 of 1,666, ranked by callers