Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LTH14/rcg
/ functions
Functions
990 in github.com/LTH14/rcg
⨍
Functions
990
◇
Types & classes
176
Function
analytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:49
Function
analytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
pixel_generator/ldm/modules/image_degradation/bsrgan.py:49
Function
augment_img_np3
(img, mode=0)
pixel_generator/ldm/modules/image_degradation/utils_image.py:441
Function
augment_img_tensor
Kai Zhang (github: https://github.com/cszn)
pixel_generator/ldm/modules/image_degradation/utils_image.py:422
Function
augment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
pixel_generator/ldm/modules/image_degradation/utils_image.py:401
Function
augment_imgs
(img_list, hflip=True, rot=True)
pixel_generator/ldm/modules/image_degradation/utils_image.py:469
Method
avg
(self)
util/misc.py:51
Function
avg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
rdm/modules/diffusionmodules/util.py:238
Method
backward
(self, loss: th.Tensor)
pixel_generator/guided_diffusion/fp16_util.py:176
Method
backward
(ctx, *output_grads)
pixel_generator/ldm/modules/diffusionmodules/util.py:131
Function
betas_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 = [
rdm/modules/diffusionmodules/util.py:77
Function
betas_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 = [
pixel_generator/ldm/modules/diffusionmodules/util.py:77
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:128
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
pixel_generator/ldm/modules/image_degradation/bsrgan.py:128
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
pixel_generator/guided_diffusion/gaussian_diffusion.py:854
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
pixel_generator/dit/diffusion/gaussian_diffusion.py:805
Function
calculate_psnr
(img1, img2, border=0)
pixel_generator/ldm/modules/image_degradation/utils_image.py:621
Function
calculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
pixel_generator/ldm/modules/image_degradation/utils_image.py:642
Function
channel_convert
(in_c, tar_type, img_list)
pixel_generator/ldm/modules/image_degradation/utils_image.py:597
Function
checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
rdm/modules/diffusionmodules/util.py:102
Function
classical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:284
Function
classical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
pixel_generator/ldm/modules/image_degradation/bsrgan.py:284
Function
classifier_and_diffusion_defaults
()
pixel_generator/guided_diffusion/script_util.py:70
Function
cleanup
End DDP training.
main_dit.py:61
Method
close
(self)
pixel_generator/guided_diffusion/logger.py:93
Method
close
(self)
pixel_generator/guided_diffusion/logger.py:109
Method
close
(self)
pixel_generator/guided_diffusion/logger.py:146
Method
close
(self)
pixel_generator/guided_diffusion/logger.py:185
Function
concat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
util/misc.py:197
Method
condition_mean
(self, cond_fn, *args, **kwargs)
pixel_generator/guided_diffusion/respace.py:98
Method
condition_mean
(self, cond_fn, *args, **kwargs)
pixel_generator/dit/diffusion/respace.py:99
Method
condition_score
(self, cond_fn, *args, **kwargs)
pixel_generator/guided_diffusion/respace.py:101
Method
condition_score
(self, cond_fn, *args, **kwargs)
pixel_generator/dit/diffusion/respace.py:102
Method
configure_optimizers
(self)
pixel_generator/ldm/models/autoencoder.py:196
Method
configure_optimizers
(self)
pixel_generator/ldm/models/diffusion/ddpm.py:373
Function
continuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
pixel_generator/dit/diffusion/diffusion_utils.py:47
Function
conv_nd
Create a 1D, 2D, or 3D convolution module.
rdm/modules/diffusionmodules/util.py:218
Function
convert_module_to_f16
Convert primitive modules to float16.
pixel_generator/guided_diffusion/fp16_util.py:15
Function
convert_module_to_f16
(x)
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:24
Function
convert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
pixel_generator/guided_diffusion/fp16_util.py:25
Function
convert_module_to_f32
(x)
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:27
Method
convert_to_fp16
Convert the torso of the model to float16.
pixel_generator/guided_diffusion/unet.py:868
Method
convert_to_fp16
Convert the torso of the model to float16.
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:694
Method
convert_to_fp16
Convert the torso of the model to float16.
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:924
Method
convert_to_fp32
Convert the torso of the model to float32.
pixel_generator/guided_diffusion/unet.py:632
Method
convert_to_fp32
Convert the torso of the model to float32.
pixel_generator/guided_diffusion/unet.py:875
Method
convert_to_fp32
Convert the torso of the model to float32.
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:702
Method
convert_to_fp32
Convert the torso of the model to float32.
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:931
Method
count_flops
(model, _x, y)
pixel_generator/guided_diffusion/unet.py:357
Method
count_flops
(model, _x, y)
pixel_generator/guided_diffusion/unet.py:392
Method
count_flops
(model, _x, y)
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:375
Method
count_flops
(model, _x, y)
pixel_generator/ldm/modules/diffusionmodules/openaimodel.py:409
Function
count_params
(model)
pixel_generator/mage/taming/modules/util.py:5
Function
create_classifier_and_diffusion
( image_size, classifier_use_fp16, classifier_width, classifier_depth, classifier_attentio
pixel_generator/guided_diffusion/script_util.py:197
Function
create_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
pixel_generator/dit/diffusion/timestep_sampler.py:13
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
pixel_generator/guided_diffusion/gaussian_diffusion.py:587
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
pixel_generator/dit/diffusion/gaussian_diffusion.py:562
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
pixel_generator/guided_diffusion/gaussian_diffusion.py:625
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
pixel_generator/dit/diffusion/gaussian_diffusion.py:600
Function
debug
(*args)
pixel_generator/guided_diffusion/logger.py:254
Method
decode
(self, text)
pixel_generator/ldm/modules/encoders/modules.py:74
Method
decode
(self, h, force_not_quantize=False)
pixel_generator/ldm/models/autoencoder.py:273
Method
decode_code
(self, code_b)
pixel_generator/ldm/models/autoencoder.py:111
Method
decode_code
(self, code_b)
pixel_generator/mage/taming/models/vqgan.py:59
Function
decorator_with_name
(func)
pixel_generator/guided_diffusion/logger.py:310
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:442
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
pixel_generator/ldm/modules/image_degradation/bsrgan.py:438
Function
degradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
pixel_generator/ldm/modules/image_degradation/bsrgan.py:617
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:534
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
pixel_generator/ldm/modules/image_degradation/bsrgan.py:530
Function
deit_base_patch16_224
(pretrained=False, **kwargs)
pretrained_enc/deit/vits.py:80
Function
deit_small_patch16_224
(pretrained=False, **kwargs)
pretrained_enc/deit/vits.py:65
Function
deit_tiny_patch16_224
(pretrained=False, **kwargs)
pretrained_enc/deit/vits.py:50
Function
deit_vit_base
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:147
Function
dev
Get the device to use for torch.distributed.
pixel_generator/guided_diffusion/dist_util.py:17
Method
differentiable_decode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
pixel_generator/ldm/models/diffusion/ddpm.py:789
Function
dino_vit_base
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:129
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
rdm/models/diffusion/ddpm.py:22
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
pixel_generator/ldm/models/diffusion/ddpm.py:36
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:262
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
pixel_generator/ldm/modules/image_degradation/bsrgan.py:262
Function
dumpkvs
Write all of the diagnostics from the current iteration
pixel_generator/guided_diffusion/logger.py:236
Method
encode
(self, *args, **kwargs)
pixel_generator/ldm/modules/encoders/modules.py:14
Method
encode
(self, x)
pixel_generator/ldm/modules/encoders/modules.py:47
Method
encode
(self, text)
pixel_generator/ldm/modules/encoders/modules.py:68
Method
encode
(self, x)
pixel_generator/ldm/modules/encoders/modules.py:132
Method
encode
(self, text)
pixel_generator/ldm/modules/encoders/modules.py:160
Method
encode
(self, x)
pixel_generator/ldm/models/autoencoder.py:268
Method
encode
(self, *args, **kwargs)
pixel_generator/mage/taming/modules/util.py:99
Method
encode
(self, c)
pixel_generator/mage/taming/modules/util.py:110
Method
encode
(self, x)
pixel_generator/mage/taming/modules/util.py:124
Method
encode_to_prequant
(self, x)
pixel_generator/ldm/models/autoencoder.py:101
Function
error
(*args)
pixel_generator/guided_diffusion/logger.py:266
Method
forward
(self,model)
rdm/modules/ema.py:25
Method
forward
(self, x, emb, context)
rdm/modules/diffusionmodules/latentmlp.py:59
Method
forward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
rdm/modules/diffusionmodules/latentmlp.py:128
Method
forward
(ctx, run_function, length, *args)
rdm/modules/diffusionmodules/util.py:121
Method
forward
(self, x)
rdm/modules/diffusionmodules/util.py:215
Method
forward
(self, c_concat, c_crossattn)
rdm/modules/diffusionmodules/util.py:258
Method
forward
(self, batch, key=None)
rdm/modules/encoders/modules.py:18
← previous
next →
601–700 of 990, ranked by callers