MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

Method__repr__
(self)
basicsr/archs/stylegan2_bilinear_arch.py:156
Method__repr__
(self)
basicsr/archs/stylegan2_bilinear_arch.py:523
Method_constant_init
(module, val, bias=0)
basicsr/archs/basicvsrpp_arch.py:384
Method_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch, taken from Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN
ldm/models/diffusion/ddpm.py:3703
Function_do_parallel_data_prefetch
(func, Q, data, idx, idx_to_fn=False)
ldm/util.py:104
Method_forward
(self, x, context=None)
ldm/modules/attention.py:323
Method_forward
(self, x, context=None)
ldm/modules/attention.py:354
Method_forward
(self, x, context=None, lr=None, ref=None, h=None, w=None, gen_mode=False)
ldm/modules/attention.py:400
Method_forward
(self, x, emb)
ldm/modules/diffusionmodules/openaimodel.py:327
Method_forward
(self, x, emb, s_cond)
ldm/modules/diffusionmodules/openaimodel.py:446
Method_forward
(self, x)
ldm/modules/diffusionmodules/openaimodel.py:509
Method_init_weights
(self, m)
basicsr/archs/swinir_arch.py:859
Method_init_weights
(self, m)
ldm/modules/swinir.py:753
Method_init_weights
Initialize the weights
ldm/models/Qformer.py:664
Method_predict_dataloader
(self, shuffle=False)
main.py:240
Method_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
ldm/models/diffusion/ddpm.py:1158
Method_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
ldm/models/diffusion/ddpm.py:2625
Method_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
ldm/models/diffusion/ddpm_inv.py:1035
Method_prepare
(self)
ldm/data/imagenet.py:150
Method_prepare
(self)
ldm/data/imagenet.py:216
Method_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
ldm/models/diffusion/ddpm.py:1162
Method_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
ldm/models/diffusion/ddpm.py:2629
Method_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
ldm/models/diffusion/ddpm.py:4043
Method_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
ldm/models/diffusion/ddpm_inv.py:1039
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
ldm/models/Qformer.py:705
Method_reorder_cache
(self, past, beam_idx)
ldm/models/Qformer.py:1120
Method_rescale_annotations
(self, bboxes, crop_coordinates)
ldm/models/diffusion/ddpm.py:1045
Method_rescale_annotations
(self, bboxes, crop_coordinates)
ldm/models/diffusion/ddpm.py:2606
Method_rescale_annotations
(self, bboxes, crop_coordinates)
ldm/models/diffusion/ddpm.py:4033
Method_rescale_annotations
(self, bboxes, crop_coordinates)
ldm/models/diffusion/ddpm_inv.py:922
Method_test_dataloader
(self, shuffle=False)
main.py:227
Method_testtube
(self, pl_module, images, batch_idx, split)
main.py:319
Method_train_dataloader
(self)
main.py:206
Method_transform
(v, op)
basicsr/models/sr_model.py:137
Method_val_dataloader
(self, shuffle=False)
main.py:216
Method_wgan_loss
wgan loss. Args: input (Tensor): Input tensor. target (bool): Target label. Returns: Tensor: wga
basicsr/losses/gan_loss.py:43
Method_wgan_softplus_loss
wgan loss with soft plus. softplus is a smooth approximation to the ReLU function. In StyleGAN2, it is called: Logistic l
basicsr/losses/gan_loss.py:55
Functionadain_color_fix
(target: Image, source: Image)
scripts/wavelet_color_fix.py:14
Functionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
ldm/modules/diffusionmodules/model.py:36
Functionadd_Poisson_noise
(img)
ldm/modules/image_degradation/bsrgan_light.py:408
Functionadd_gaussian_noise
Add Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise scale (mea
basicsr/data/degradations.py:488
Functionadd_gaussian_noise_pt
Add Gaussian noise (PyTorch version). Args: img (Tensor): Shape (b, c, h, w), range[0, 1], float32. scale (float | Tensor): Noise
basicsr/data/degradations.py:542
Functionadd_norm_layer
(layer)
basicsr/archs/hifacegan_util.py:225
Functionadd_norm_layer
(layer)
ldm/modules/spade.py:26
Functionadd_poisson_noise
Add poisson noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. scale (float): Noise scale. Defa
basicsr/data/degradations.py:644
Functionadd_poisson_noise_pt
Add poisson noise to a batch of images (PyTorch version). Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
basicsr/data/degradations.py:715
Functionadd_resize
(img, sf=4)
ldm/modules/image_degradation/bsrgan_light.py:343
Functionadd_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_light.py:299
Functionadd_speckle_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan_light.py:390
Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan_light.py:49
Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan.py:49
Functionaugment_img_np3
(img, mode=0)
ldm/modules/image_degradation/utils_image.py:441
Functionaugment_img_tensor
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:422
Functionaugment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:401
Functionaugment_imgs
(img_list, hflip=True, rot=True)
ldm/modules/image_degradation/utils_image.py:469
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
basicsr/ops/fused_act/fused_act.py:52
Methodbackward
(ctx, grad_output)
basicsr/ops/fused_act/fused_act.py:73
Methodbackward
(ctx, grad_output)
basicsr/ops/dcn/deform_conv.py:75
Methodbackward
(ctx, grad_output)
basicsr/ops/dcn/deform_conv.py:157
Methodbackward
(ctx, gradgrad_input)
basicsr/ops/upfirdn2d/upfirdn2d.py:73
Methodbackward
(ctx, grad_output)
basicsr/ops/upfirdn2d/upfirdn2d.py:135
Methodbackward
(ctx, gradgrad_output)
basicsr/archs/dfdnet_util.py:17
Methodbackward
(ctx, *output_grads)
ldm/modules/diffusionmodules/util.py:131
Functionbatch_PSNR
(img, imclean, border=0, ycbcr=False)
scripts/util_image.py:91
Functionbatch_SSIM
(img, imclean, border=0, ycbcr=False)
scripts/util_image.py:105
Functionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
ldm/modules/diffusionmodules/util.py:77
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan_light.py:128
Functioncal_fea_cossim
(fea_1, fea_2, save_dir=None)
ldm/modules/diffusionmodules/openaimodel.py:42
Functioncalculate_fid
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2) i
basicsr/metrics/fid.py:50
Functioncalculate_niqe
Calculate NIQE (Natural Image Quality Evaluator) metric. ``Paper: Making a "Completely Blind" Image Quality Analyzer`` This implementation c
basicsr/metrics/niqe.py:145
Functioncalculate_psnr
(img1, img2, border=0)
ldm/modules/image_degradation/utils_image.py:621
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
ldm/modules/image_degradation/utils_image.py:642
Functioncdf2
Calculate the CDF of the standard bivariate Gaussian distribution. Used in skewed Gaussian distribution. Args: d_matrix (ndarrasy
basicsr/data/degradations.py:66
Functionchannel_convert
(in_c, tar_type, img_list)
ldm/modules/image_degradation/utils_image.py:597
Functionclassical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan_light.py:284
Functionclassical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan.py:284
Methodconfigure_opt_embedding
(self)
ldm/models/diffusion/ddpm_inv.py:1443
Methodconfigure_opt_model
(self)
ldm/models/diffusion/ddpm_inv.py:1462
Methodconfigure_optimizers
(self)
ldm/models/autoencoder.py:205
Methodconfigure_optimizers
(self)
ldm/models/autoencoder.py:411
Methodconfigure_optimizers
(self)
ldm/models/autoencoder.py:873
Methodconfigure_optimizers
(self)
ldm/models/diffusion/classifier.py:220
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:560
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1532
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:3420
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:4057
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm_inv.py:424
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm_inv.py:1419
Functionconvert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:33
Functionconvert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:36
Methodconvert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:914
Methodconvert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:1311
Methodconvert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:1806
Methodconvert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:922
Methodconvert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:1319
Methodconvert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:1813
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:580
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:629
Methodcreate_custom_forward
(module)
ldm/models/Qformer.py:533
Functioncrop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
basicsr/utils/img_util.py:156
← previousnext →1,001–1,100 of 1,666, ranked by callers