MCPcopy Create free account

hub / github.com/darioShar/DLPM / functions

Functions785 in github.com/darioShar/DLPM

↓ 1 callersMethod_train_epochs
( self, total_epochs, eval_freq = None, checkp
bem/TrainingManager.py:90
↓ 1 callersFunction_unet_model
image_size = p['data']['image_size'] if image_size == 256: channel_mult = (1, 1, 2, 2, 4, 4) elif image_size == 64: chann
dlpm/dlpm_experiment.py:24
↓ 1 callersMethod_verify_classes
(self, classes)
dlpm/methods/LIM/datasets/lsun.py:96
↓ 1 callersMethod_verify_classes
(self, classes)
bem/datasets/lsun.py:96
↓ 1 callersMethodanterior_mean_variance_dlim
(self, x_t, t, eps, eta = 0.0)
dlpm/methods/dlpm.py:281
↓ 1 callersMethodanterior_mean_variance_dlpm
(self, x_t, t, eps)
dlpm/methods/dlpm.py:272
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
dlpm/models/nn.py:42
↓ 1 callersMethodbackward
(ctx, grad_output)
dlpm/methods/LIM/op/upfirdn2d.py:127
↓ 1 callersMethodbackward
(ctx, *output_grads)
dlpm/models/nn.py:153
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
dlpm/methods/LIM/evaluate/fid_score.py:172
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
bem/evaluate/fid_score.py:173
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
dlpm/methods/LIM/evaluate/fid_score.py:209
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
bem/evaluate/fid_score.py:210
↓ 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_2
dlpm/methods/LIM/evaluate/fid_score.py:119
↓ 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_2
bem/evaluate/fid_score.py:119
↓ 1 callersFunctioncompute_f_beta
(prec, rec)
bem/evaluate/prd_legacy.py:13
↓ 1 callersFunctioncompute_gradient_norm
(model)
bem/evaluate/EvaluationManager.py:24
↓ 1 callersFunctioncompute_loss
(tens, lploss)
dlpm/methods/GenerativeLevyProcess.py:13
↓ 1 callersFunctioncompute_loss_terms
(x, y, lploss)
dlpm/methods/GenerativeLevyProcess.py:19
↓ 1 callersMethodcompute_m_tilde_t_1
(self, x_t, t, Gamma_t, eps_t)
dlpm/methods/dlpm.py:259
↓ 1 callersFunctioncompute_mean_lploss
(tens, lploss = 2.)
bem/evaluate/wasserstein.py:6
↓ 1 callersMethodcompute_one_rv_Sigma_prime_t
(self, t, a_t)
dlpm/methods/dlpm.py:388
↓ 1 callersFunctioncompute_prd
Computes the PRD curve for discrete distributions. This function computes the PRD curve for the discrete distribution eval_dist with respect to t
bem/evaluate/prd_score.py:48
↓ 1 callersFunctioncompute_prd_from_embedding
Computes PRD data from sample embeddings. The points from both distributions are mixed and then clustered. This leads to a pair of histograms of
bem/evaluate/prd_score.py:139
↓ 1 callersFunctioncompute_precision_recall_curve
(data, gen_samples, num_angles = 201, num_clusters = 20)
bem/evaluate/prd_legacy.py:6
↓ 1 callersMethodcompute_two_rv_lambda
(self, t, Sigma_prime_t_1)
dlpm/methods/dlpm.py:349
↓ 1 callersMethodcompute_two_rv_prime_constants
(self, t, a_t_0, a_t_1)
dlpm/methods/dlpm.py:324
↓ 1 callersFunctioncompute_wasserstein_distance
(data, gen_samples, manual_compute = False,
bem/evaluate/wasserstein.py:15
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
dlpm/methods/LIM/models/layers.py:539
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
dlpm/methods/LIM/models/layerspp.py:48
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
dlpm/models/layers.py:539
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
dlpm/models/layerspp.py:48
↓ 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
dlpm/methods/LIM/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
dlpm/models/up_or_down_sampling.py:144
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
dlpm/methods/GenerativeLevyProcess.py:332
↓ 1 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
dlpm/methods/GenerativeLevyProcess.py:365
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_pro
dlpm/methods/GenerativeLevyProcess.py:412
↓ 1 callersFunctiondict2namespace
(config)
dlpm/methods/LIM/main.py:239
↓ 1 callersFunctiondict2namespace
(p)
dlpm/models/ncsnpp.py:26
↓ 1 callersFunctiondict2namespace
(config)
bem/datasets/__init__.py:73
↓ 1 callersFunctiondiv_fn
(x, t, eps)
dlpm/methods/LIM/evaluate/likelihood.py:36
↓ 1 callersFunctiondiv_fn
(x, t, eps)
bem/evaluate/likelihood.py:36
↓ 1 callersFunctiondownload_and_unzip
(URL, root_dir)
bem/datasets/tinyimagenet.py:44
↓ 1 callersFunctioneval_exp
(config_path)
eval.py:13
↓ 1 callersMethodexists_ls
(self, name = 'default')
bem/TrainingManager.py:59
↓ 1 callersMethodextra_repr
(self)
dlpm/methods/LIM/datasets/vision.py:54
↓ 1 callersMethodextra_repr
(self)
bem/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
dlpm/methods/LIM/evaluate/inception.py:185
↓ 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
bem/evaluate/inception.py:185
↓ 1 callersFunctionfid_score
(path1, path2, batch_size=50, device=None, dims=2048, num_workers=4)
bem/evaluate/fid_score.py:230
↓ 1 callersMethodforward
(self, x)
dlpm/models/nn.py:13
↓ 1 callersMethodforward
(self, x)
dlpm/models/unet.py:66
↓ 1 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
dlpm/methods/LIM/op/fused_act.py:86
↓ 1 callersMethodgaussian_kernel
(self, source, target, kernel_mul=2.0, kernel_num=5, fix_sigma=None)
bem/evaluate/mmd_loss.py:13
↓ 1 callersFunctiongen_data_from_img
(image_mask, train_data_size)
bem/datasets/__init__.py:31
↓ 1 callersFunctiongen_gaussian_score
(x, beta, scale=1)
dlpm/methods/LIM/torchlevy/approx_score.py:146
↓ 1 callersFunctiongen_gaussian_score
(x, beta, scale=1)
bem/datasets/torchlevy/approx_score.py:146
↓ 1 callersFunctiongen_sas
(alpha, size, a = None, device = None, isotropic = True,
bem/datasets/Distributions.py:57
↓ 1 callersFunctiongen_skewed_levy
(alpha, size, device = None, isotropic = True,
bem/datasets/Distributions.py:33
↓ 1 callersFunctionget_act
Get activation functions from the config file.
dlpm/methods/LIM/models/layers.py:29
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instanc
dlpm/methods/LIM/evaluate/fid_score.py:63
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instanc
bem/evaluate/fid_score.py:63
↓ 1 callersMethodget_animation
(self, plot_original_data = False, limit_nb_datapoints = 10000,
bem/GenerationManager.py:146
↓ 1 callersFunctionget_dataset
(p)
bem/datasets/__init__.py:113
↓ 1 callersFunctionget_div_fn
Create the divergence function of `fn` using the Hutchinson-Skilling trace estimator.
dlpm/methods/LIM/evaluate/likelihood.py:33
↓ 1 callersFunctionget_div_fn
Create the divergence function of `fn` using the Hutchinson-Skilling trace estimator.
bem/evaluate/likelihood.py:33
↓ 1 callersMethodget_eval_path_from_param
(self, p, save_folder_path,
bem/utils_exp.py:84
↓ 1 callersMethodget_exp_path_from_param
(self, p, folder_path,
bem/utils_exp.py:72
↓ 1 callersMethodget_feature_vectors
Apply the model and return all of the intermediate tensors. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a
dlpm/models/unet.py:494
↓ 1 callersFunctionget_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
dlpm/methods/LIM/evaluate/likelihood.py:47
↓ 1 callersMethodget_one_rv_loss_elements
(self, t, x_0, a_t = None, z_t = None)
dlpm/methods/dlpm.py:395
↓ 1 callersMethodget_schedule
(self, shape)
dlpm/methods/dlpm.py:158
↓ 1 callersMethodget_two_rv_faster_sampling
(self, Xbatch, t)
dlpm/methods/dlpm.py:308
↓ 1 callersFunctiongrad_approx
(func, x, h=0.001)
dlpm/methods/LIM/torchlevy/util.py:37
↓ 1 callersFunctiongrad_approx
(func, x, h=0.001)
bem/datasets/torchlevy/util.py:37
↓ 1 callersMethodinit_data_by_parameter
(self, p)
bem/utils_exp.py:326
↓ 1 callersMethodinit_default_optimizer
(p, model)
bem/utils_exp.py:297
↓ 1 callersMethodinit_experiment
(self, p, data, test_data,
bem/utils_exp.py:341
↓ 1 callersFunctioninit_ls_by_parameter
(p, optim)
dlpm/dlpm_experiment.py:136
↓ 1 callersFunctioninit_model_by_parameter
(p)
dlpm/dlpm_experiment.py:68
↓ 1 callersFunctioninit_models_by_parameter
(p)
dlpm/dlpm_experiment.py:139
↓ 1 callersFunctioninit_optimizer_by_parameter
(p, model)
dlpm/dlpm_experiment.py:133
↓ 1 callersMethodinitialize
(self, p)
dlpm/NeptuneLogger.py:27
↓ 1 callersMethodinitialize
(self, p)
bem/Logger.py:9
↓ 1 callersFunctionlikelihood_fn
Compute an unbiased estimate to the log-likelihood in bits/dim. Args: model: A score model. data: A PyTorch tensor.
dlpm/methods/LIM/evaluate/likelihood.py:90
↓ 1 callersMethodlim_sample
(self, model, shape, ddim = False,
dlpm/methods/GenerativeLevyProcess.py:454
↓ 1 callersMethodload
(self, filepath)
bem/TrainingManager.py:240
↓ 1 callersMethodload_eval_metrics
(self, eval_path)
bem/TrainingManager.py:293
↓ 1 callersMethodload_experiment
(self, folder_path, logger=None, cur
bem/utils_exp.py:469
↓ 1 callersFunctionlogit_transform
(image, lam=1e-6)
dlpm/methods/LIM/datasets/__init__.py:268
↓ 1 callersFunctionlogit_transform
(image, lam=1e-6)
bem/datasets/__init__.py:498
↓ 1 callersFunctionmain
()
dlpm/methods/LIM/main.py:250
↓ 1 callersFunctionmatch_last_dims
Expands a 1-dimensional tensor so that its last dimensions match the target size. Args: data (torch.Tensor): A 1-dimensional ten
bem/datasets/Distributions.py:9
↓ 1 callersFunctionode_score_update
input: x_s, s, t output: x_t
dlpm/methods/LIM/functions/sampler.py:81
↓ 1 callersMethodp_sample
( self, model, x, t, clip_denoised=False, denoised_fn=None, model_kwargs=None )
dlpm/methods/GenerativeLevyProcess.py:225
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param device: if specified, the device to create the samples on. If not spec
dlpm/methods/GenerativeLevyProcess.py:241
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Returns a generator over dicts, wher
dlpm/methods/GenerativeLevyProcess.py:291
↓ 1 callersFunctionparse_args_and_config
()
dlpm/methods/LIM/main.py:16
↓ 1 callersFunctionprd_to_max_f_beta_pair
Computes max. F_beta and max. F_{1/beta} for precision/recall pairs. Computes the maximum F_beta and maximum F_{1/beta} score over all pairs of p
bem/evaluate/prd_score.py:230
↓ 1 callersFunctionprdc
(path1, path2, batch_size=500, device=None, dims=2048, num_workers=0, max_num_files=None)
bem/evaluate/fid_score.py:303
← previousnext →201–300 of 785, ranked by callers