MCPcopy Create free account

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

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

↓ 1 callersMethod_verify_classes
(self, classes)
examples/ddpm_and_guided-diffusion/datasets/lsun.py:96
↓ 1 callersMethodadd_noise
Compute the noised input xt = alpha_t * x + sigma_t * noise. Args: x: A `torch.Tensor` with shape `(batch_size, *shape)
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:1020
↓ 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
examples/stable-diffusion/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
examples/stable-diffusion/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
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callersFunctionaugment_img
Kai Zhang (github: https://github.com/cszn)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:380
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/nn.py:42
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:42
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
examples/stable-diffusion/ldm/modules/diffusionmodules/util.py:238
↓ 1 callersMethodbackward
(ctx, *output_grads)
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:149
↓ 1 callersMethodbackward
(ctx, grad_output)
examples/score_sde_pytorch/op/upfirdn2d.py:127
↓ 1 callersFunctionbetas_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/ddpm_and_guided-diffusion/runners/diffusion.py:62
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:573
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inceptio
examples/ddpm_and_guided-diffusion/evaluate/fid_score.py:206
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
examples/stable-diffusion/ldm/modules/losses/vqperceptual.py:85
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
examples/stable-diffusion/ldm/modules/losses/contperceptual.py:32
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
examples/ddpm_and_guided-diffusion/evaluate/fid_score.py:246
↓ 1 callersFunctioncalculate_frechet_distance
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
examples/ddpm_and_guided-diffusion/evaluate/fid_score.py:149
↓ 1 callersMethodcheck_frequency
(self, check_idx)
examples/stable-diffusion/main.py:372
↓ 1 callersFunctioncheck_overflow
(value)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:236
↓ 1 callersFunctioncheck_safety
(x_image)
examples/stable-diffusion/scripts/txt2img.py:88
↓ 1 callersFunctionchunk
(it, size)
examples/stable-diffusion/scripts/img2img.py:23
↓ 1 callersFunctionchunk
(it, size)
examples/stable-diffusion/scripts/txt2img.py:32
↓ 1 callersFunctionchunk
(it, size)
examples/stable-diffusion/scripts/knn2img.py:36
↓ 1 callersFunctionclassifier_fn_from_tfhub
Returns a function that can be as a classifier function. Copied from tfgan but avoid loading the model each time calling _classifier_fn Args:
examples/score_sde_pytorch/evaluation.py:59
↓ 1 callersFunctionclassifier_fn_from_tfhub
Returns a function that can be as a classifier function. Copied from tfgan but avoid loading the model each time calling _classifier_fn Args:
examples/score_sde_jax/evaluation.py:59
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
dpm_solver_jax.py:313
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
dpm_solver_pytorch.py:300
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:300
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
examples/score_sde_pytorch/dpm_solver.py:308
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:308
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
examples/score_sde_jax/dpm_solver.py:313
↓ 1 callersFunctionconditional_corrector_update_fn
The corrector update function for class-conditional sampling.
examples/score_sde_jax/controllable_generation.py:255
↓ 1 callersFunctionconditional_predictor_update_fn
The predictor update function for class-conditional sampling.
examples/score_sde_jax/controllable_generation.py:240
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
examples/score_sde_pytorch/models/layers.py:537
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
examples/score_sde_jax/models/layers.py:486
↓ 1 callersFunctionconv_downsample_2d
Fused `tf.nn.conv2d()` followed by `downsample_2d()`. Padding is performed only once at the beginning, not between the operations. The fused
examples/score_sde_pytorch/models/up_or_down_sampling.py:144
↓ 1 callersFunctionconv_downsample_2d
Fused `tf.nn.conv2d()` followed by `downsample_2d()`. Padding is performed only once at the beginning, not between the operations. The fused
examples/score_sde_jax/models/up_or_down_sampling.py:168
↓ 1 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:618
↓ 1 callersFunctionconvsample
(model, shape, return_intermediates=True, verbose=True, make_prog_row=False)
examples/stable-diffusion/scripts/sample_diffusion.py:54
↓ 1 callersFunctionconvsample_ddim
(model, cond, steps, shape, eta=1.0, callback=None, normals_sequence=None, mask=None, x0=N
examples/stable-diffusion/notebook_helpers.py:188
↓ 1 callersFunctionconvsample_ddim
(model, steps, shape, eta=1.0 )
examples/stable-diffusion/scripts/sample_diffusion.py:69
↓ 1 callersFunctioncrop_resize
Crop and resize an image to the given resolution.
examples/score_sde_pytorch/datasets.py:41
↓ 1 callersFunctioncrop_resize
Crop and resize an image to the given resolution.
examples/score_sde_jax/datasets.py:41
↓ 1 callersFunctiondata_transform
(config, X)
examples/ddpm_and_guided-diffusion/datasets/__init__.py:189
↓ 1 callersMethodddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
examples/stable-diffusion/ldm/models/diffusion/ddim.py:114
↓ 1 callersFunctionddpm_steps
(x, seq, model_fn, b, is_cond_classifier=False, classifier=None, classifier_scale=1.0, **model_kwargs)
examples/ddpm_and_guided-diffusion/functions/denoising.py:59
↓ 1 callersMethoddenoise_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
dpm_solver_jax.py:488
↓ 1 callersMethoddenoise_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
examples/score_sde_jax/dpm_solver.py:488
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
dpm_solver_pytorch.py:541
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:541
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
examples/score_sde_pytorch/dpm_solver.py:549
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:549
↓ 1 callersFunctiondenoise_update_fn
(model, x)
examples/score_sde_pytorch/sampling.py:452
↓ 1 callersFunctiondenoise_update_fn
(rng, state, x)
examples/score_sde_jax/sampling.py:481
↓ 1 callersFunctiondict2namespace
(config)
examples/ddpm_and_guided-diffusion/main.py:232
↓ 1 callersMethoddiscretize
Discretize the SDE in the form: x_{i+1} = x_i + f_i(x_i) + G_i z_i. Useful for reverse diffusion sampling and probabiliy flow sampling. Defau
examples/score_sde_pytorch/sde_lib.py:52
↓ 1 callersMethoddiscretize
Discretize the SDE in the form: x_{i+1} = x_i + f_i(x_i) + G_i z_i. Useful for reverse diffusion sampling and probabiliy flow sampling. Defau
examples/score_sde_jax/sde_lib.py:54
↓ 1 callersFunctiondiv_fn
(x, t, eps)
examples/score_sde_pytorch/likelihood.py:29
↓ 1 callersFunctiondiv_fn
(x, t, eps)
examples/score_sde_jax/likelihood.py:31
↓ 1 callersMethoddownload
(self)
examples/ddpm_and_guided-diffusion/datasets/celeba.py:120
↓ 1 callersFunctiondownload_file_from_google_drive
Download a Google Drive file from and place it in root. Args: file_id (str): id of file to be downloaded root (str): Directory t
examples/ddpm_and_guided-diffusion/datasets/utils.py:134
↓ 1 callersFunctiondownload_models
(mode)
examples/stable-diffusion/notebook_helpers.py:19
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A jnp.DeviceArray. The initial value at time `t_T
dpm_solver_jax.py:899
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
dpm_solver_pytorch.py:956
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:956
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
examples/score_sde_pytorch/dpm_solver.py:964
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:964
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A jnp.DeviceArray. The initial value at time `t_T
examples/score_sde_jax/dpm_solver.py:899
↓ 1 callersFunctiondrift_fn
Get the drift function of the reverse-time SDE.
examples/score_sde_pytorch/sampling.py:460
↓ 1 callersFunctiondrift_fn
The drift function of the reverse-time SDE.
examples/score_sde_jax/likelihood.py:60
↓ 1 callersFunctiondrift_fn
Get the drift function of the reverse-time SDE.
examples/score_sde_jax/sampling.py:490
↓ 1 callersMethoddumpkvs
(self)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:355
↓ 1 callersMethodencode
(self, text)
examples/stable-diffusion/ldm/modules/encoders/modules.py:101
↓ 1 callersMethodencode
(self, x)
examples/stable-diffusion/ldm/models/autoencoder.py:324
↓ 1 callersMethodencode_with_pretrained
(self,x)
examples/stable-diffusion/ldm/modules/diffusionmodules/model.py:816
↓ 1 callersFunctionequals
(val)
examples/stable-diffusion/ldm/modules/x_transformer.py:76
↓ 1 callersMethodextra_repr
(self)
examples/ddpm_and_guided-diffusion/datasets/vision.py:54
↓ 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 slight
examples/ddpm_and_guided-diffusion/evaluate/inception.py:184
↓ 1 callersMethodforward
(self, x)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/nn.py:13
↓ 1 callersMethodforward
(self, x)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:100
↓ 1 callersMethodforward
(self, x)
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:13
↓ 1 callersMethodforward
(self, x)
examples/ddpm_and_guided-diffusion/models/improved_ddpm/unet.py:68
↓ 1 callersMethodfreeze
(self)
examples/stable-diffusion/ldm/modules/encoders/modules.py:147
↓ 1 callersFunctionfrom_flattened_numpy
Form a torch tensor with the given `shape` from a flattened numpy array `x`.
examples/score_sde_pytorch/models/utils.py:215
↓ 1 callersFunctionfrom_flattened_numpy
Form a JAX array with the given `shape` from a flattened numpy array `x`.
examples/score_sde_jax/models/utils.py:262
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:187
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callersFunctionfspecial_laplacian
(alpha)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:201
↓ 1 callersFunctionfspecial_laplacian
(alpha)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
examples/score_sde_pytorch/op/fused_act.py:86
↓ 1 callersFunctiongeneralized_steps
(x, seq, model_fn, b, eta=0, is_cond_classifier=False, classifier=None, classifier_scale=1.0, **model_kwargs)
examples/ddpm_and_guided-diffusion/functions/denoising.py:21
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : In
examples/ddpm_and_guided-diffusion/evaluate/fid_score.py:90
↓ 1 callersMethodget_base
(self)
examples/stable-diffusion/ldm/data/imagenet.py:379
↓ 1 callersFunctionget_beta_schedule
(beta_schedule, *, beta_start, beta_end, num_diffusion_timesteps)
examples/ddpm_and_guided-diffusion/runners/diffusion.py:81
↓ 1 callersFunctionget_ckpt_path
(name, root=None, check=False)
examples/ddpm_and_guided-diffusion/functions/ckpt_util.py:55
↓ 1 callersFunctionget_cond
(mode, selected_path)
examples/stable-diffusion/notebook_helpers.py:107
↓ 1 callersFunctionget_corrector
(name)
examples/score_sde_pytorch/sampling.py:77
↓ 1 callersFunctionget_corrector
(name)
examples/score_sde_jax/sampling.py:81
↓ 1 callersFunctionget_dataset
(args, config)
examples/ddpm_and_guided-diffusion/datasets/__init__.py:30
← previousnext →401–500 of 1,626, ranked by callers