MCPcopy Create free account

hub / github.com/darioShar/DLPM / functions

Functions785 in github.com/darioShar/DLPM

Methodget_feature_vectors
(self, x, timesteps, low_res=None, **kwargs)
dlpm/models/unet.py:543
Methodget_interpolation_values
(i)
bem/GenerationManager.py:197
Functionget_likelihood_fn
Create a function to compute the unbiased log-likelihood estimate of a given data point. Args: sde: A `sde_lib.SDE` object that represent
bem/evaluate/likelihood.py:47
Functionget_normalization
Obtain normalization modules from the config file.
dlpm/methods/LIM/models/normalization.py:22
Functionget_normalization
Obtain normalization modules from the config file.
dlpm/models/normalization.py:22
Methodget_params_from_folder
(folder_path)
bem/utils_exp.py:263
Functionget_sigmas
Get sigmas --- the set of noise levels for SMLD from config files. Args: config: A ConfigDict object parsed from the config file Retur
dlpm/methods/LIM/models/layerspp.py:90
Functionget_sigmas
Get sigmas --- the set of noise levels for SMLD from config files. Args: config: A ConfigDict object parsed from the config file Retur
dlpm/models/layerspp.py:90
Functionget_timestep_embedding
(timesteps, embedding_dim, max_positions=10000, is_cond=False)
dlpm/methods/LIM/models/layers.py:515
Functionget_timestep_embedding
(timesteps, embedding_dim, max_positions=10000, is_cond=False)
dlpm/models/layers.py:515
Methodget_timesteps
(self, N, **kwargs)
dlpm/methods/GenerativeLevyProcess.py:98
Methodget_two_rv_loss_elements
(self, t, x_0)
dlpm/methods/dlpm.py:356
Functionget_weight
Get/create weight tensor for a convolution or fully-connected layer.
dlpm/methods/LIM/models/up_or_down_sampling.py:14
Functionget_weight
Get/create weight tensor for a convolution or fully-connected layer.
dlpm/models/up_or_down_sampling.py:14
Functioninit
(shape, dtype=dtype, device=device)
dlpm/methods/LIM/models/layers.py:66
Functioninit
(shape, dtype=dtype, device=device)
dlpm/methods/LIM/models/layerspp.py:128
Functioninit
(shape, dtype=dtype, device=device)
dlpm/models/layers.py:66
Functioninit
(shape, dtype=dtype, device=device)
dlpm/models/layerspp.py:128
Functioninit_data_by_parameter
(p)
dlpm/dlpm_experiment.py:87
Methodinit_frame_2d
()
bem/GenerationManager.py:184
Methodinit_frame_image
()
bem/GenerationManager.py:193
Functioninit_method_by_parameter
(p)
dlpm/dlpm_experiment.py:103
Methodinner_dtype
Get the dtype used by the torso of the model.
dlpm/models/unet.py:457
Methodinverse_a
(self, a)
dlpm/methods/LIM/functions/sde.py:49
Functioninverse_data_transform
(config, X)
dlpm/methods/LIM/datasets/__init__.py:290
Functioninverse_data_transform
(config, X)
bem/datasets/__init__.py:520
Functionlevy_gaussian_score
(alpha: float, x: torch.Tensor, sigma1s: Union[list, torch.Tensor], sigma2s: Union[lis
dlpm/methods/LIM/torchlevy/levy_gaussian.py:36
Functionlevy_gaussian_score
(alpha: float, x: torch.Tensor, sigma1s: Union[list, torch.Tensor], sigma2s: Union[lis
bem/datasets/torchlevy/levy_gaussian.py:36
Functionlevy_gaussian_score_origin
(alpha: float, x: torch.Tensor, sigma1s: Union[list, torch.Tensor], sigma2s: Union[lis
dlpm/methods/LIM/torchlevy/levy_gaussian_origin.py:39
Functionlevy_gaussian_score_origin
(alpha: float, x: torch.Tensor, sigma1s: Union[list, torch.Tensor], sigma2s: Union[lis
bem/datasets/torchlevy/levy_gaussian_origin.py:39
Functionlikelihood_fn
Compute an unbiased estimate to the log-likelihood in bits/dim. Args: model: A score model. data: A PyTorch tensor.
bem/evaluate/likelihood.py:90
Functionmake_master_params
Copy model parameters into a (differently-shaped) list of full-precision parameters.
dlpm/models/fp16_util.py:27
Functionmaster_params_to_model_params
Copy the master parameter data back into the model parameters.
dlpm/models/fp16_util.py:50
Functionmean_flat
Take the mean over all non-batch dimensions.
dlpm/models/nn.py:86
Functionmodel_grads_to_master_grads
Copy the gradients from the model parameters into the master parameters from make_master_params().
dlpm/models/fp16_util.py:40
Functionnaive_downsample_2d
(x, factor=2)
dlpm/methods/LIM/models/up_or_down_sampling.py:66
Functionnaive_downsample_2d
(x, factor=2)
dlpm/models/up_or_down_sampling.py:66
Functionnaive_upsample_2d
(x, factor=2)
dlpm/methods/LIM/models/up_or_down_sampling.py:59
Functionnaive_upsample_2d
(x, factor=2)
dlpm/models/up_or_down_sampling.py:59
Functionncsn_conv1x1
1x1 convolution. Same as NCSNv1/v2.
dlpm/methods/LIM/models/layers.py:44
Functionncsn_conv1x1
1x1 convolution. Same as NCSNv1/v2.
dlpm/models/layers.py:44
Functionode_func
(t, x)
dlpm/methods/LIM/evaluate/likelihood.py:112
Functionode_func
(t, x)
bem/evaluate/likelihood.py:112
Methodotherwise
(alpha, beta, TH, aTH, bTH, cosTH, tanTH, W)
dlpm/methods/LIM/torchlevy/levy.py:201
Methodotherwise
(alpha, beta, TH, aTH, bTH, cosTH, tanTH, W)
bem/datasets/torchlevy/levy.py:246
Functionplot
Plots precision recall curves for distributions. Creates the PRD plot for the given data and stores the plot in a given path. Args: precisio
bem/evaluate/prd_score.py:265
Methodprocess_xstart
(x)
dlpm/methods/GenerativeLevyProcess.py:162
Methodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0, a_{1:T}) we give Sigmas rather than a
dlpm/methods/GenerativeLevyProcess.py:118
Methodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initi
dlpm/methods/GenerativeLevyProcess.py:105
Functionreal_linear_tuning_score
(x, alpha)
dlpm/methods/LIM/torchlevy/approx_score.py:131
Functionreal_linear_tuning_score
(x, alpha)
bem/datasets/torchlevy/approx_score.py:131
Functionrectified_tuning_score
(x, alpha)
dlpm/methods/LIM/torchlevy/approx_score.py:120
Functionrectified_tuning_score
(x, alpha)
bem/datasets/torchlevy/approx_score.py:120
Methodremove_file_from_directory
(dir)
bem/utils_exp.py:198
Functionreset_models
(p)
dlpm/dlpm_experiment.py:152
Methodsafe_load_state_dict
(dest, src)
bem/TrainingManager.py:242
Methodsafe_save_state_dict
(src)
bem/TrainingManager.py:268
Methodsample
(self, models, shape, reverse_steps, time_spa
dlpm/methods/GenerativeLevyProcess.py:512
Functionsample_2_gmm
(n_samples, alpha = None, n = None, std = None,
bem/datasets/Distributions.py:119
Functionsample_grid_gmm
(n_samples, alpha = None, n = None, std = None,
bem/datasets/Distributions.py:146
Functionsample_grid_sas
(n_samples, alpha = 1.8, n = None, std = None,
bem/datasets/Distributions.py:198
Methodsave_animation
(self, anim = None, generated_data_name = "undefined_distributio
bem/GenerationManager.py:239
Methodsave_images
(path)
bem/utils_exp.py:206
Functionsbm_get_sigmas
Get sigmas --- the set of noise levels for SMLD from config files. Args: config: A ConfigDict object parsed from the config file Returns:
dlpm/methods/LIM/models/layerspp.py:104
Functionsbm_get_sigmas
Get sigmas --- the set of noise levels for SMLD from config files. Args: config: A ConfigDict object parsed from the config file Returns:
dlpm/models/layerspp.py:104
Functionscale_module
Scale the parameters of a module and return it.
dlpm/models/nn.py:77
Methodscore
(self, x: torch.Tensor)
dlpm/methods/LIM/torchlevy/levy_gaussian_origin.py:28
Methodscore
(self, x: torch.Tensor)
bem/datasets/torchlevy/levy_gaussian_origin.py:28
Functionscore_finite_diff
calculate alpha stable score through finite difference
dlpm/methods/LIM/torchlevy/util.py:32
Functionscore_finite_diff
calculate alpha stable score through finite difference
bem/datasets/torchlevy/util.py:32
Functionscore_fourier_transform
get alpha stable score through fourier transform unfortunately, not working properly
dlpm/methods/LIM/torchlevy/util.py:14
Functionscore_fourier_transform
get alpha stable score through fourier transform unfortunately, not working properly
bem/datasets/torchlevy/util.py:14
MethodsetTransform
(self, transform)
bem/datasets/Data.py:55
Methodset_values
(self, value_dict)
dlpm/NeptuneLogger.py:31
Methodstop
(self)
dlpm/NeptuneLogger.py:59
Functiontutorial_code
()
dlpm/methods/LIM/torchlevy/torch_dictionary.py:47
Functiontutorial_code
()
bem/datasets/torchlevy/torch_dictionary.py:47
Functionunpickle
(file)
dlpm/methods/LIM/datasets/__init__.py:23
Functionunpickle
(file)
bem/datasets/__init__.py:24
Methodupdate
(self, module)
dlpm/models/Ema.py:21
Functionupdate_ema
Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the targe
dlpm/models/nn.py:55
Functionupfirdn2d
dlpm/methods/LIM/op/upfirdn2d.cpp:12
Functionupsample_2d
r"""Upsample 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 upsam
dlpm/methods/LIM/models/up_or_down_sampling.py:195
Functionupsample_2d
r"""Upsample 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 upsam
dlpm/models/up_or_down_sampling.py:195
Functionzero_grad
(model_params)
dlpm/models/fp16_util.py:71
← previous701–785 of 785, ranked by callers