MCPcopy Create free account

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

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

Methodsample
(self, x0)
core/diffusion/schedule.py:42
Methodsample2dir
(self, path, n_samples, batch_size, schedule, forward_type, rev_var_type, clip_x0=True, avg_cov=False,
interface/evaluators/dtdpm_evaluator.py:47
Methodsample2dir
(self, path, n_samples, batch_size, sde, reverse_type, sample_steps=None, persist=True, it=None)
interface/evaluators/sde_evaluator.py:48
Methodsample_fn
(n_samples)
interface/evaluators/dtdpm_evaluator.py:42
Methodsample_fn
(n_samples)
interface/evaluators/sde_evaluator.py:43
Methodsave_ms_eps
(self, fname, batch_size, schedule, n_samples=None, partition="train_val", it=None)
interface/evaluators/dtdpm_evaluator.py:134
Methodsave_nll_terms
(self, fname, batch_size, schedule, rev_var_type, clip_x0=True, avg_cov=False, n_sample
interface/evaluators/dtdpm_evaluator.py:112
Functionsave_statistics_of_path
(path, out_path, device=None, batch_size=50, dims=2048, num_workers=8)
tools/fid_score.py:228
Functionscale_module
Scale the parameters of a module and return it.
libs/iddpm/nn.py:64
Methodscore_fn
(x_0)
interface/evaluators/dtdpm_evaluator.py:100
Methodscore_fn
r""" x is discrete data scaled from {0, ..., 255} to [-1, 1] Calculate the bpd of the discrete distribution P(x) form
interface/evaluators/sde_evaluator.py:83
Functionsos
(a, start_dim=1)
core/func/functions.py:23
Methodsplit_sample
(self, x0, split_idx, part)
core/diffusion/schedule.py:48
Methodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be temp
libs/score_sde/models/ema.py:66
Functionstp
(s, ts: torch.Tensor)
core/func/functions.py:16
Functionstr2bool
(v)
misc.py:9
Functionsub_dict
(dct: dict, *keys)
misc.py:40
Functiontensor_info
(ts, label)
core/utils/diagnose.py:51
Functionto_flattened_numpy
Flatten a torch tensor `x` and convert it to numpy.
libs/score_sde/models/utils.py:62
Methodto_models
(self, models: managers.ModelsManager)
interface/utils/ckpt.py:87
Methodtoggle_grad
r""" Open the gradient of models corresponding to keys Others' gradients will be closed Args: keys: the keys of model
core/utils/managers.py:102
Methodtrace_cov
(self)
interface/datasets/dataset_factory.py:89
Methodtrace_cov_avg
(self)
interface/datasets/dataset_factory.py:95
Methodunpreprocess
(self, v)
interface/datasets/lsun_bedroom.py:23
Methodunpreprocess
r""" The mathematical form of the affine transform's inverse
interface/datasets/dataset_factory.py:63
Methodunpreprocess
(self, v)
interface/datasets/celeba.py:370
Methodunpreprocess
(self, v)
interface/datasets/cifar10.py:39
Methodunpreprocess
(self, v)
interface/datasets/imagenet64.py:46
Methodunpreprocess
(self, v)
interface/datasets/mnist.py:76
Functionunsqueeze_like
(tensor, template, start="left")
core/func/functions.py:43
Methodupdate
(self, data_loader)
core/criterions/base.py:49
Methodupdate
Update currently maintained parameters. Call this every time the parameters are updated, such as the result of the `optimizer.step()` ca
libs/score_sde/models/ema.py:32
Functionupfirdn2d
libs/score_sde/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
libs/score_sde/models/up_or_down_sampling.py:195
Functionzero_grad
(model_params)
libs/iddpm/fp16_util.py:71
← previous601–635 of 635, ranked by callers