MCPcopy Create free account

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

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

↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:210
↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:210
↓ 3 callersMethodget_first_stage_encoding
(self, encoder_posterior)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:542
↓ 3 callersMethodget_input
(self, batch, k)
examples/stable-diffusion/ldm/models/autoencoder.py:344
↓ 3 callersMethodget_loss
(self, pred, target, mean=True)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:279
↓ 3 callersFunctionget_sigmas
Get sigmas --- the set of noise levels for SMLD from config files. Args: config: A ConfigDict object parsed from the config file Returns:
examples/score_sde_pytorch/models/utils.py:50
↓ 3 callersMethodget_weighting
(self, h, w, Ly, Lx, device)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:585
↓ 3 callersFunctioninverse_data_transform
(config, X)
examples/ddpm_and_guided-diffusion/datasets/__init__.py:206
↓ 3 callersFunctionismap
(x)
examples/stable-diffusion/ldm/util.py:41
↓ 3 callersFunctionlinear
Create a linear module.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:35
↓ 3 callersFunctionlog_txt_as_img
(wh, xc, size=10)
examples/stable-diffusion/ldm/util.py:17
↓ 3 callersMethodmarginal_alpha
Compute alpha_t of a given continuous-time label t in [0, T].
dpm_solver_jax.py:139
↓ 3 callersMethodmarginal_alpha
Compute alpha_t of a given continuous-time label t in [0, T].
examples/score_sde_jax/dpm_solver.py:139
↓ 3 callersMethodmode
(self)
examples/stable-diffusion/ldm/modules/distributions/distributions.py:20
↓ 3 callersFunctionmodel_fn
The noise predicition model function that is used for DPM-Solver.
examples/score_sde_pytorch/dpm_solver.py:317
↓ 3 callersMethodreverse
Create the reverse-time SDE/ODE. Args: score_fn: A time-dependent score-based model that takes x and t and returns the score. probabi
examples/score_sde_pytorch/sde_lib.py:71
↓ 3 callersMethodreverse
Create the reverse-time SDE/ODE. Args: score_fn: A time-dependent score-based model that takes x and t and returns the score. probabi
examples/score_sde_jax/sde_lib.py:73
↓ 3 callersMethodsample_image
(self, x, model, last=True, classifier=None, base_samples=None)
examples/ddpm_and_guided-diffusion/runners/diffusion.py:524
↓ 3 callersMethodshared_step
(self, batch)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:337
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A jnp.DeviceArray. The initial value at time `s`.
dpm_solver_jax.py:541
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
dpm_solver_pytorch.py:594
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:594
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
examples/score_sde_pytorch/dpm_solver.py:602
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:602
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A jnp.DeviceArray. The initial value at time `s`.
examples/score_sde_jax/dpm_solver.py:541
↓ 3 callersFunctionssim
(img1, img2)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:669
↓ 3 callersMethodstate_dict
(self)
examples/score_sde_pytorch/models/ema.py:91
↓ 3 callersMethodto_rgb
(self, x)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:1386
↓ 3 callersFunctionzero_module
Zero out the parameters of a module and return it.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:67
↓ 2 callersFunctionNormalize
(in_channels)
examples/stable-diffusion/ldm/modules/attention.py:76
↓ 2 callersMethod__init__
(self, batch_frequency, max_images, clamp=True, increase_log_steps=True, rescale=True, disabl
examples/stable-diffusion/main.py:290
↓ 2 callersMethod__repr__
(self)
examples/ddpm_and_guided-diffusion/datasets/vision.py:34
↓ 2 callersMethod_check_integrity
(self)
examples/ddpm_and_guided-diffusion/datasets/celeba.py:108
↓ 2 callersMethod_compute_norms
(self, grad_scale=1.0)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:217
↓ 2 callersMethod_format_transform_repr
(self, transform, head)
examples/ddpm_and_guided-diffusion/datasets/vision.py:49
↓ 2 callersMethod_format_transform_repr
(self, transform, head)
examples/ddpm_and_guided-diffusion/datasets/vision.py:70
↓ 2 callersMethod_get_denoise_row_from_list
(self, samples, desc='', force_no_decoder_quantization=False)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:530
↓ 2 callersMethod_get_rows_from_list
(self, samples)
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:370
↓ 2 callersFunction_inception_v3
Wraps `torchvision.models.inception_v3` Skips default weight inititialization if supported by torchvision version. See https://github.com/mse
examples/ddpm_and_guided-diffusion/evaluate/inception.py:166
↓ 2 callersFunction_register
(cls)
examples/score_sde_pytorch/sampling.py:38
↓ 2 callersFunction_register
(cls)
examples/score_sde_jax/sampling.py:42
↓ 2 callersFunction_shape
(x, dim)
examples/score_sde_jax/models/up_or_down_sampling.py:329
↓ 2 callersMethod_truncate
(self, s)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:80
↓ 2 callersMethod_validation_step
(self, batch, batch_idx, suffix="")
examples/stable-diffusion/ldm/models/autoencoder.py:170
↓ 2 callersFunctionadd_Gaussian_noise
(img, noise_level1=2, noise_level2=25)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:373
↓ 2 callersFunctionadd_Poisson_noise
(img)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:404
↓ 2 callersFunctionadd_resize
(img, sf=4)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:339
↓ 2 callersFunctionadd_speckle_noise
(img, noise_level1=2, noise_level2=25)
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:386
↓ 2 callersFunctionalways
(val)
examples/stable-diffusion/ldm/modules/x_transformer.py:64
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan_light.py:228
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
examples/stable-diffusion/ldm/modules/image_degradation/bsrgan.py:228
↓ 2 callersFunctioncentral_crop
Crop the center of an image to the given size.
examples/score_sde_pytorch/datasets.py:64
↓ 2 callersFunctioncentral_crop
Crop the center of an image to the given size.
examples/score_sde_jax/datasets.py:64
↓ 2 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
examples/ddpm_and_guided-diffusion/models/guided_diffusion/nn.py:124
↓ 2 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
examples/ddpm_and_guided-diffusion/models/improved_ddpm/nn.py:121
↓ 2 callersFunctioncompute_statistics_of_path
(path, model, batch_size, dims, device, num_workers=1)
examples/ddpm_and_guided-diffusion/evaluate/fid_score.py:231
↓ 2 callersFunctioncond_fn
(x, t_discrete, y, classifier, classifier_scale)
examples/ddpm_and_guided-diffusion/functions/denoising.py:11
↓ 2 callersFunctionconfigure
If comm is provided, average all numerical stats across that comm
examples/ddpm_and_guided-diffusion/models/guided_diffusion/logger.py:442
↓ 2 callersMethodconvert_to_fp16
Convert the torso of the model to float16.
examples/ddpm_and_guided-diffusion/models/improved_ddpm/unet.py:439
↓ 2 callersMethodcopy_to
(self, model)
examples/stable-diffusion/ldm/modules/ema.py:46
↓ 2 callersFunctioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
examples/ddpm_and_guided-diffusion/models/guided_diffusion/unet.py:308
↓ 2 callersFunctioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
examples/stable-diffusion/ldm/modules/diffusionmodules/openaimodel.py:327
↓ 2 callersFunctioncount_params
(model, verbose=False)
examples/stable-diffusion/ldm/util.py:71
↓ 2 callersFunctioncreate_dataset
(dataset_builder, split)
examples/score_sde_pytorch/datasets.py:176
↓ 2 callersFunctioncreate_dataset
(dataset_builder, split)
examples/score_sde_jax/datasets.py:185
↓ 2 callersFunctioncubic
(x)
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:700
↓ 2 callersFunctioncustom_to_np
(x)
examples/stable-diffusion/scripts/sample_diffusion.py:27
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with thresholding).
dpm_solver_jax.py:385
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
dpm_solver_pytorch.py:433
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:433
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
examples/score_sde_pytorch/dpm_solver.py:441
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with corrector).
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:441
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with thresholding).
examples/score_sde_jax/dpm_solver.py:385
↓ 2 callersMethoddecode
(self, z)
examples/stable-diffusion/ldm/models/autoencoder.py:330
↓ 2 callersMethoddelta_border
:param h: height :param w: width :return: normalized distance to image border, wtith min distance = 0 at border and
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:571
↓ 2 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from root (str): Directory to place downlo
examples/ddpm_and_guided-diffusion/datasets/utils.py:49
↓ 2 callersFunctiondrift_fn
The drift function of the reverse-time SDE.
examples/score_sde_pytorch/likelihood.py:59
↓ 2 callersMethodema
(self, module)
examples/ddpm_and_guided-diffusion/models/ema.py:24
↓ 2 callersFunctionexists
(x)
examples/stable-diffusion/ldm/util.py:53
↓ 2 callersMethodfind_in_interval
(self, n)
examples/stable-diffusion/ldm/lr_scheduler.py:52
↓ 2 callersFunctiongen_bar_updater
()
examples/ddpm_and_guided-diffusion/datasets/utils.py:8
↓ 2 callersFunctionget_colorization_update_fn
Modify update functions of predictor & corrector to incorporate information of gray-scale images.
examples/score_sde_pytorch/controllable_generation.py:133
↓ 2 callersFunctionget_colorization_update_fn
Modify update functions of predictor & corrector to incorporate information of gray-scale images.
examples/score_sde_jax/controllable_generation.py:152
↓ 2 callersMethodget_conditioning
(self, batch, k=None)
examples/stable-diffusion/ldm/models/diffusion/classifier.py:133
↓ 2 callersFunctionget_inpaint_update_fn
Modify the update function of predictor & corrector to incorporate data information.
examples/score_sde_pytorch/controllable_generation.py:41
↓ 2 callersFunctionget_inpaint_update_fn
Modify the update function of predictor & corrector to incorporate data information.
examples/score_sde_jax/controllable_generation.py:46
↓ 2 callersMethodget_input
(self, batch, k)
examples/stable-diffusion/ldm/models/diffusion/classifier.py:124
↓ 2 callersMethodget_input
(self, batch, k, return_first_stage_outputs=False, force_c_encode=False, cond_key=None, retu
examples/stable-diffusion/ldm/models/diffusion/ddpm.py:654
↓ 2 callersFunctionget_mask
(image)
examples/score_sde_pytorch/controllable_generation.py:148
↓ 2 callersFunctionget_mask
(image)
examples/score_sde_jax/controllable_generation.py:168
↓ 2 callersFunctionget_model_fn
Create a function to give the output of the score-based model. Args: model: The score model. train: `True` for training and `False` for eva
examples/score_sde_pytorch/models/utils.py:97
↓ 2 callersFunctionget_model_fn
Create a function to give the output of the score-based model. Args: model: A `flax.linen.Module` object the represent the architecture of scor
examples/score_sde_jax/models/utils.py:125
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
dpm_solver_jax.py:279
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
dpm_solver_pytorch.py:271
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
examples/ddpm_and_guided-diffusion/dpm_solver/sampler.py:271
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
examples/score_sde_pytorch/dpm_solver.py:279
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/dpm_solver.py:279
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
examples/score_sde_jax/dpm_solver.py:279
↓ 2 callersFunctionget_param_groups_and_shapes
(named_model_params)
examples/ddpm_and_guided-diffusion/models/guided_diffusion/fp16_util.py:82
↓ 2 callersFunctionget_score_fn
Wraps `score_fn` so that the model output corresponds to a real time-dependent score function. Args: sde: An `sde_lib.SDE` object that represen
examples/score_sde_pytorch/models/utils.py:158
← previousnext →201–300 of 1,626, ranked by callers