MCPcopy Create free account

hub / github.com/baofff/Extended-Analytic-DPM / functions

Functions635 in github.com/baofff/Extended-Analytic-DPM

↓ 2 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
libs/ddpm/model.py:6
↓ 2 callersMethodget_val_data
(self, labelled=False)
interface/datasets/dataset_factory.py:30
↓ 2 callersFunctiongrid_sample
r""" Sample images in a grid Args: fname: the file name nrow: the number of rows of the grid ncol: the number of columns o
core/evaluate/sample.py:10
↓ 2 callersFunctioninfinite_loader
(dataset, batch_size)
interface/runner/fit.py:9
↓ 2 callersFunctionlinear_interpolate
(a, b, steps)
interface/evaluators/utils.py:4
↓ 2 callersMethodobjective
(self, v, **kwargs)
core/criterions/base.py:33
↓ 2 callersFunctionparse_schedule
(schedule)
misc.py:20
↓ 2 callersFunctionparse_sde
(sde)
misc.py:33
↓ 2 callersMethodpredict_cov_x0
(self, xt, t, ms_eps=None)
core/diffusion/dtdpm.py:58
↓ 2 callersMethodpredict_x0_eps_cov_x0
(self, xt, t, ms_eps=None)
core/diffusion/dtdpm.py:103
↓ 2 callersMethodpredict_xprev_cov_xprev
(self, xt, s, t, typ, ms_eps=None)
core/diffusion/dtdpm.py:172
↓ 2 callersMethodq_posterior_mean
(self, x0, s, t, xt=None, eps=None)
core/diffusion/dtdpm.py:120
↓ 2 callersMethodq_posterior_mean
(self, x0, s, t, xt=None, eps=None)
core/diffusion/dtdpm.py:146
↓ 2 callersFunctionrun_evaluate
(config)
interface/runner/runner.py:70
↓ 2 callersFunctionsample2dir
(path, n_samples, batch_size, sample_fn, unpreprocess_fn=None, persist=True)
core/evaluate/sample.py:36
↓ 2 callersFunctionsample_dtdpm
r""" Sample from the reverse model p(x0|x1)...p(xN-1|xN)p(xN) proposed in DDPM, DDIM and Analytic-DPM
core/diffusion/sample.py:13
↓ 2 callersFunctionscore_fn
(v)
interface/utils/config_utils.py:153
↓ 2 callersMethodskip_alpha
(self, s, t)
core/diffusion/sde.py:108
↓ 2 callersMethodskip_beta
(self, s, t)
core/diffusion/sde.py:105
↓ 2 callersMethodsquared_diffusion
(self, t)
core/diffusion/sde.py:99
↓ 2 callersFunctionstatistics2str
(statistics)
core/diffusion/utils.py:4
↓ 2 callersMethodtrain
(self)
core/utils/managers.py:117
↓ 1 callersMethod__init__
(self, data_path)
interface/datasets/imagenet64.py:33
↓ 1 callersMethod__init__
(self, root, classes="train", transform=None, target_transform=None)
interface/datasets/lsun/lsun.py:106
↓ 1 callersMethod__init__
r""" for n>=1, betas[n] is the variance of q(xn|xn-1) for n=0, betas[0]=0
core/diffusion/schedule.py:20
↓ 1 callersMethod__init__
(self, head_out_channels, mode='simple', **kwargs)
libs/iddpm/customized.py:26
↓ 1 callersMethod__len__
(self)
interface/datasets/celeba.py:74
↓ 1 callersMethod__len__
(self)
interface/datasets/lsun/vision.py:31
↓ 1 callersFunction_choice_steps_linear
(N, sample_steps)
core/diffusion/trajectory.py:5
↓ 1 callersFunction_choice_steps_linear_ddim
(N, sample_steps)
core/diffusion/trajectory.py:16
↓ 1 callersFunction_choice_steps_quad_ddim
(N, sample_steps)
core/diffusion/trajectory.py:22
↓ 1 callersFunction_choice_steps_rfn
(N, sample_steps, rfn)
core/diffusion/trajectory.py:38
↓ 1 callersFunction_compute_fans
(shape, in_axis=1, out_axis=0)
libs/score_sde/models/layers.py:60
↓ 1 callersFunction_dp_seg
(ms_eps, betas, N, K)
core/diffusion/trajectory.py:132
↓ 1 callersMethod_e_cov_x0
(self, t, ms_eps)
core/diffusion/dtdpm.py:93
↓ 1 callersFunction_einsum
(a, b, c, x, y)
libs/score_sde/models/layers.py:532
↓ 1 callersFunction_get_fn_m
(ms_score, alphas, N)
core/diffusion/trajectory.py:122
↓ 1 callersFunction_ms_score
(ms_eps, betas)
core/diffusion/trajectory.py:77
↓ 1 callersFunction_nelbo_dtdpm
(dtdpm, x0, rev_var_type, timesteps, ms_eps=None)
core/diffusion/likelihood.py:26
↓ 1 callersMethod_predict_cov_prev
(self, s, t, typ, cov_x0_pred=None)
core/diffusion/dtdpm.py:152
↓ 1 callersFunction_register
(cls)
libs/score_sde/models/utils.py:29
↓ 1 callersFunction_rescale_timesteps
(n, N, flag)
core/diffusion/wrapper.py:11
↓ 1 callersFunction_round_and_remove_dup
(seq)
core/diffusion/trajectory.py:28
↓ 1 callersFunction_sample_dtdpm
(dtdpm, x_init, rev_var_type, timesteps, clip_sigma_idx=0, clip_pixel=2, ms_eps=None)
core/diffusion/sample.py:28
↓ 1 callersFunction_save_as_dir
(dct: dict, path: str)
interface/utils/ckpt.py:20
↓ 1 callersFunction_split
(ms_eps, N, K)
core/diffusion/trajectory.py:51
↓ 1 callersMethod_verify_classes
(self, classes)
interface/datasets/lsun/lsun.py:127
↓ 1 callersMethodaffine_transform
(self, dataset)
interface/datasets/dataset_factory.py:55
↓ 1 callersFunctionamortize
(n_samples, batch_size)
core/utils/__init__.py:7
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
libs/iddpm/nn.py:42
↓ 1 callersMethodbackward
(ctx, *output_grads)
libs/iddpm/nn.py:140
↓ 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 = [
core/diffusion/schedule.py:101
↓ 1 callersFunctionbinary_cross_entropy_with_logits
r""" -inputs * log (sigmoid(logits)) - (1 - inputs) * log (1 - sigmoid(logits)) element wise with automatically expand dimensions
core/func/functions.py:106
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
tools/fid_score.py:189
↓ 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
tools/fid_score.py:132
↓ 1 callersFunctioncalculate_md5
(fpath: str, chunk_size: int = 1024 * 1024)
interface/datasets/celeba.py:20
↓ 1 callersFunctioncat_score_on_dataset
(dataset: Dataset, score_fn, batch_size)
core/evaluate/score.py:36
↓ 1 callersFunctioncheck_anomaly
(statistics: dict, it: int)
interface/runner/fit.py:16
↓ 1 callersFunctioncheck_integrity
(fpath: str, md5: Optional[str] = None)
interface/datasets/celeba.py:32
↓ 1 callersFunctioncheck_md5
(fpath: str, md5: str, **kwargs: Any)
interface/datasets/celeba.py:28
↓ 1 callersFunctioncnt_png
(path)
core/evaluate/sample.py:31
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
libs/score_sde/models/layers.py:537
↓ 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
libs/score_sde/models/up_or_down_sampling.py:144
↓ 1 callersMethodcov
(self)
interface/datasets/dataset_factory.py:81
↓ 1 callersFunctioncreate_lr_scheduler
r""" Create an instance of the optimizer described in the profile Args: config: a config describing the optimizer optimizer: the o
interface/utils/config_utils.py:72
↓ 1 callersFunctioncreate_models
(config)
interface/utils/config_utils.py:20
↓ 1 callersFunctioncreate_nll_config
(get_config_fn, workspace, ckpt: str, hparams: dict, keys: List[str], description=None)
misc.py:62
↓ 1 callersFunctioncreate_optimizer
r""" Create an instance of the optimizer described in the profile Args: config: a config describing the optimizer Example: { "
interface/utils/config_utils.py:42
↓ 1 callersFunctioncreate_sample_config
(get_config_fn, workspace, ckpt: str, hparams: dict, keys: List[str], description=None)
misc.py:51
↓ 1 callersMethodcriterion_name
(self)
core/criterions/base.py:44
↓ 1 callersFunctionct_dsdm
(x0, wrapper, sde, t_init=1e-5)
core/criterions/ddpm.py:35
↓ 1 callersFunctionct_dsdm_err
(x0, wrapper, sde, t_init=1e-5)
core/criterions/ddpm.py:53
↓ 1 callersFunctionct_dsm
(x0, wrapper, sde, t_init=1e-5)
core/criterions/ddpm.py:47
↓ 1 callersMethodcum_alpha
(self, t)
core/diffusion/sde.py:120
↓ 1 callersMethodcum_beta
(self, t)
core/diffusion/sde.py:117
↓ 1 callersFunctiondevice_of
(inputs: Union[nn.Module, torch.Tensor, ModelsManager])
core/utils/device_utils.py:11
↓ 1 callersMethoddistribution_transform
(self, dataset)
interface/datasets/dataset_factory.py:52
↓ 1 callersMethoddownload
(self)
interface/datasets/celeba.py:256
↓ 1 callersFunctiondt_dsdm
(x0, wrapper, schedule)
core/criterions/ddpm.py:16
↓ 1 callersFunctiondt_dsdm_err
(x0, wrapper, schedule)
core/criterions/ddpm.py:28
↓ 1 callersFunctiondt_dsm
(x0, wrapper, schedule)
core/criterions/ddpm.py:10
↓ 1 callersFunctionema
(model_dest: nn.Module, model_src: nn.Module, rate)
core/utils/ema.py:4
↓ 1 callersMethodevaluate
r""" Args: it: the iteration when the evaluated models is saved
interface/evaluators/base.py:22
↓ 1 callersMethodevaluate_train
r""" Evaluate during training Args: it: the iteration of training
interface/evaluators/base.py:10
↓ 1 callersMethodextra_repr
(self)
interface/datasets/celeba.py:93
↓ 1 callersMethodextra_repr
(self)
interface/datasets/lsun/vision.py:54
↓ 1 callersFunctionfetch_path
(D, N, K)
core/diffusion/trajectory.py:186
↓ 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
tools/inception.py:184
↓ 1 callersFunctionfn
(it)
configs/default.py:74
↓ 1 callersMethodforward
(self, x)
libs/iddpm/nn.py:13
↓ 1 callersMethodforward
(self, x)
libs/iddpm/unet.py:68
↓ 1 callersMethodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
libs/iddpm/customized.py:54
↓ 1 callersMethodfrom_criterion
(self, criterion)
interface/utils/ckpt.py:76
↓ 1 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
libs/score_sde/op/fused_act.py:86
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instan
tools/fid_score.py:74
↓ 1 callersFunctionget_config
()
libs/score_sde/customized.py:405
↓ 1 callersFunctionget_default_configs
()
libs/score_sde/customized.py:381
↓ 1 callersFunctionget_dt_wrapper_config
(**hparams)
configs/default.py:264
↓ 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
libs/iddpm/unet.py:496
↓ 1 callersFunctionget_grid_sample_config
(**hparams)
configs/default.py:126
← previousnext →101–200 of 635, ranked by callers