MCPcopy Create free account

hub / github.com/LuChengTHU/dpm-solver / functions

Functions1,626 in github.com/LuChengTHU/dpm-solver

Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:49
Functionaugment_img_np3
(img, mode=0)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:441
Functionaugment_img_tensor
Kai Zhang (github: https://github.com/cszn)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:422
Functionaugment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:401
Functionaugment_imgs
(img_list, hflip=True, rot=True)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:469
Methodbackward
(ctx, *output_grads)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/nn.py:153
Methodbackward
(self, loss: th.Tensor)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:176
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
examples/score_sde_pytorch/op/fused_act.py:43
Methodbackward
(ctx, grad_output)
examples/score_sde_pytorch/op/fused_act.py:64
Methodbackward
(ctx, gradgrad_input)
examples/score_sde_pytorch/op/upfirdn2d.py:63
Methodbackward
(ctx, *output_grads)
examples/stable-diffusion/ldm/modules/diffusionmodules/util.py:131
Functionbar_update
(count, block_size, total_size)
examples/ddpm_and_guided-diffusion/datasets/utils.py:11
Functionbatch_add
(a, b)
examples/score_sde_jax/utils.py:37
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 = [
examples/stable-diffusion/ldm/modules/diffusionmodules/util.py:77
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:128
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:128
Functioncalculate_psnr
(img1, img2, border=0)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:621
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:642
Functionchannel_convert
(in_c, tar_type, img_list)
examples/stable-diffusion/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
examples/stable-diffusion/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
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:284
Methodclassifier_fn
(x, t, y, **classifier_kwargs)
examples/ddpm_and_guided-diffusion/runners/diffusion.py:605
Methodclose
(self)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:93
Methodclose
(self)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:109
Methodclose
(self)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:146
Methodclose
(self)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:185
Functioncolorization_update_fn
(model, gray_scale_img, x, t)
examples/score_sde_pytorch/controllable_generation.py:136
Functioncolorization_update_fn
(rng, state, gray_scale_img, x, t)
examples/score_sde_jax/controllable_generation.py:155
Methodcondition_continue
(val)
dpm_solver_jax.py:957
Methodcondition_continue
(val)
examples/score_sde_jax/dpm_solver.py:957
Methodconfigure_optimizers
(self)
examples/stable-diffusion/ldm/models/autoencoder.py:197
Methodconfigure_optimizers
(self)
examples/stable-diffusion/ldm/models/autoencoder.py:386
Methodconfigure_optimizers
(self)
examples/stable-diffusion/ldm/models/diffusion/classifier.py:220
Methodconfigure_optimizers
(self)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:415
Methodconfigure_optimizers
(self)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:1361
Functionconvert_module_to_f16
Convert primitive modules to float16.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:15
Functionconvert_module_to_f16
Convert primitive modules to float16.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/fp16_util.py:9
Functionconvert_module_to_f16
(x)
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:24
Functionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:25
Functionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
examples/ddpm_and_guided-diffusion/models/improved_ddpm/fp16_util.py:18
Functionconvert_module_to_f32
(x)
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:27
Methodconvert_to_fp16
Convert the torso of the model to float16.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:857
Methodconvert_to_fp16
Convert the torso of the model to float16.
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:694
Methodconvert_to_fp16
Convert the torso of the model to float16.
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:924
Methodconvert_to_fp32
Convert the torso of the model to float32.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:626
Methodconvert_to_fp32
Convert the torso of the model to float32.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:864
Methodconvert_to_fp32
Convert the torso of the model to float32.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/unet.py:447
Methodconvert_to_fp32
Convert the torso of the model to float32.
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:702
Methodconvert_to_fp32
Convert the torso of the model to float32.
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:931
Methodcount_flops
(model, _x, y)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:357
Methodcount_flops
(model, _x, y)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:392
Methodcount_flops
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs
examples/ddpm_and_guided-diffusion/models/improved_ddpm/unet.py:255
Methodcount_flops
(model, _x, y)
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:375
Methodcount_flops
(model, _x, y)
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:409
Functioncreate_classifier
Create a noise-conditional image classifier. Args: prng_key: A JAX random state. batch_size: The batch size of input data. ckpt_path: T
examples/score_sde_jax/models/utils.py:267
Functioncreate_model
Create the score model.
examples/score_sde_pytorch/models/utils.py:88
Functionddpm_conv1x1
1x1 convolution with DDPM initialization.
examples/score_sde_pytorch/models/layers.py:100
Functionddpm_conv1x1
1x1 convolution with DDPM initialization.
examples/score_sde_jax/models/layers.py:66
Functiondebug
(*args)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:254
Methoddecode
(self, text)
examples/stable-diffusion/ldm/modules/encoders/modules.py:76
Methoddecode
(self, h, force_not_quantize=False)
examples/stable-diffusion/ldm/models/autoencoder.py:274
Methoddecode
(self, x, *args, **kwargs)
examples/stable-diffusion/ldm/models/autoencoder.py:434
Methoddecode_code
(self, code_b)
examples/stable-diffusion/ldm/models/autoencoder.py:112
Functiondecorator_with_name
(func)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:310
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:442
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:438
Functiondegradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:617
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:534
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:530
Functiondense_layer_init_fn
Initializer for the final dense layer. Args: key: PRNG key to use to sample the weights. shape: Shape of the tensor to initialize. dtyp
examples/score_sde_jax/models/wideresnet_noise_conditional.py:65
Methoddifferentiable_decode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:766
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
examples/stable-diffusion/ldm/models/diffusion/classifier.py:22
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:34
Methoddiscretize
Create discretized iteration rules for the reverse diffusion sampler.
examples/score_sde_pytorch/sde_lib.py:102
Methoddiscretize
DDPM discretization.
examples/score_sde_pytorch/sde_lib.py:156
Methoddiscretize
SMLD(NCSN) discretization.
examples/score_sde_pytorch/sde_lib.py:246
Methoddiscretize
Create discretized iteration rules for the reverse diffusion sampler.
examples/score_sde_jax/sde_lib.py:104
Methoddiscretize
DDPM discretization.
examples/score_sde_jax/sde_lib.py:158
Methoddiscretize
SMLD(NCSN) discretization.
examples/score_sde_jax/sde_lib.py:249
Functiondivein
(*args, **kwargs)
examples/stable-diffusion/main.py:705
Functiondownsample_2d
r"""Downsample a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and dow
examples/score_sde_pytorch/models/up_or_down_sampling.py:227
Functiondownsample_2d
r"""Downsample a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and dow
examples/score_sde_jax/models/up_or_down_sampling.py:372
Functiondpm_solver_sampler
The DPM-Solver sampler funciton. Args: model: A score model. Returns: Samples, number of function evaluations.
examples/score_sde_pytorch/sampling.py:530
Functiondpm_solver_sampler
The DPM-Solver sampler funciton. Args: rng: A JAX random state state: A `flax.struct.dataclass` object that represents the training
examples/score_sde_jax/sampling.py:564
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:262
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:262
Functiondumpkvs
Write all of the diagnostics from the current iteration
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:236
Methoddynamic_thresholding_fn
The dynamic thresholding method.
dpm_solver_pytorch.py:416
Methoddynamic_thresholding_fn
The dynamic thresholding method.
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:416
Methoddynamic_thresholding_fn
The dynamic thresholding method.
examples/score_sde_pytorch/dpm_solver.py:424
Methoddynamic_thresholding_fn
The dynamic thresholding method.
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:424
Methodema_copy
(self, module)
examples/ddpm_and_guided-diffusion/models/ema.py:31
Methodencode
(self, *args, **kwargs)
examples/stable-diffusion/ldm/modules/encoders/modules.py:16
Methodencode
(self, x)
examples/stable-diffusion/ldm/modules/encoders/modules.py:49
Methodencode
(self, text)
examples/stable-diffusion/ldm/modules/encoders/modules.py:70
Methodencode
(self, x)
examples/stable-diffusion/ldm/modules/encoders/modules.py:134
Methodencode
(self, text)
examples/stable-diffusion/ldm/modules/encoders/modules.py:161
Methodencode
(self, text)
examples/stable-diffusion/ldm/modules/encoders/modules.py:189
Methodencode
(self, x)
examples/stable-diffusion/ldm/models/autoencoder.py:269
Methodencode
(self, x, *args, **kwargs)
examples/stable-diffusion/ldm/models/autoencoder.py:431
← previousnext →1,001–1,100 of 1,626, ranked by callers