MCPcopy Create free account

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

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

↓ 135 callersMethodget
(self, key: str)
core/utils/managers.py:26
↓ 22 callersMethodto
(self, device)
core/utils/managers.py:113
↓ 20 callersFunctionncsn_conv3x3
3x3 convolution with PyTorch initialization. Same as NCSNv1/NCSNv2.
libs/score_sde/models/layers.py:108
↓ 18 callersMethod__init__
(self, in_dim, num_units, init_scale=0.1)
libs/score_sde/models/layers.py:547
↓ 18 callersMethoditems
(self)
core/utils/managers.py:23
↓ 16 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
libs/iddpm/nn.py:80
↓ 12 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
libs/iddpm/nn.py:22
↓ 12 callersMethodparameters
r""" Return the parameters of models corresponding to keys If keys are empty, return the parameters of all models Args:
core/utils/managers.py:86
↓ 11 callersFunctionget_iddpm_unet_config
(**hparams)
configs/cifar10/models.py:4
↓ 11 callersMethodkeys
(self)
core/utils/managers.py:20
↓ 11 callersMethodreport_scalar
(self, scalar, it, tag)
interface/utils/interact.py:49
↓ 11 callersMethodsave
(self, fname, as_dir=True)
interface/utils/ckpt.py:56
↓ 10 callersFunctionglobal_device
()
core/utils/device_utils.py:22
↓ 10 callersMethodsample
(self, x0, t_init)
core/diffusion/sde.py:26
↓ 9 callersMethodload
(self, fname)
interface/utils/ckpt.py:66
↓ 9 callersMethodtilde_beta
(self, s, t)
core/diffusion/schedule.py:39
↓ 8 callersFunctiondefault_init
The same initialization used in DDPM.
libs/score_sde/models/layers.py:88
↓ 8 callersFunctionnonlinearity
(x)
libs/ddpm/model.py:27
↓ 7 callersMethod__init__
(self, num_features, bias=True)
libs/score_sde/models/normalization.py:150
↓ 7 callersFunctionget_act
Get activation functions from the config file.
libs/score_sde/models/layers.py:29
↓ 6 callersMethod__init__
(self, dim1, dim2, method='cat')
libs/score_sde/models/layerspp.py:47
↓ 6 callersMethod_compute_cond_module
(self, module, x)
libs/score_sde/models/ncsnv2.py:381
↓ 6 callersMethod_load_csv
( self, filename: str, header: Optional[int] = None, )
interface/datasets/celeba.py:223
↓ 6 callersFunctionverify_str_arg
( value, arg=None, valid_values=None, custom_msg=None, )
interface/datasets/lsun/lsun.py:15
↓ 5 callersFunctionNormalize
(in_channels)
libs/ddpm/model.py:32
↓ 5 callersMethod__init__
(self, schedule, wrapper, **kwargs)
core/criterions/ddpm.py:61
↓ 5 callersMethod__init__
(self, channels, use_conv, dims=2)
libs/iddpm/unet.py:60
↓ 5 callersMethod_compute_cond_module
(self, module, x)
libs/score_sde/models/ncsnv2.py:279
↓ 5 callersFunction_shape
(x, dim)
libs/score_sde/models/up_or_down_sampling.py:191
↓ 5 callersFunctionddpm_conv3x3
3x3 convolution with DDPM initialization.
libs/score_sde/models/layers.py:118
↓ 5 callersMethodget_states
r""" Args: keys: the keys of objects If empty, return the states of all objects
core/utils/managers.py:63
↓ 5 callersFunctionis_labelled
(dataset)
interface/datasets/utils.py:14
↓ 5 callersMethodload_states
r""" Args: states: a dict of states of objects keys: the keys of objects If empty, load states for all
core/utils/managers.py:47
↓ 5 callersMethodpredict_x0_eps
(self, xt, t)
core/diffusion/dtdpm.py:35
↓ 5 callersFunctionzero_module
Zero out the parameters of a module and return it.
libs/iddpm/nn.py:55
↓ 4 callersMethod__init__
Build pretrained InceptionV3 Parameters ---------- output_blocks : list of int Indices of blocks to return featur
tools/inception.py:31
↓ 4 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
libs/ddpm/model.py:192
↓ 4 callersMethod_compute_cond_module
(self, module, x)
libs/score_sde/models/ncsnv2.py:101
↓ 4 callersMethod_compute_cond_module
(self, module, x, y)
libs/score_sde/models/ncsnv2.py:191
↓ 4 callersFunction_setup_kernel
(k)
libs/score_sde/models/up_or_down_sampling.py:181
↓ 4 callersMethoddiffusion
(self, t)
core/diffusion/sde.py:17
↓ 4 callersMethoddrift
(self, x, t)
core/diffusion/sde.py:14
↓ 4 callersMethodeval
(self)
core/utils/managers.py:121
↓ 4 callersMethodget_data
(self, partition, labelled=False)
interface/datasets/dataset_factory.py:40
↓ 4 callersFunctionget_ddpm_unet_double_pretrained_config
(**hparams)
configs/celeba64/models.py:21
↓ 4 callersFunctionget_ddpm_unet_double_pretrained_config
(**hparams)
configs/lsun/models.py:21
↓ 4 callersFunctionget_iddpm_unet_double_pretrained_config
(**hparams)
configs/cifar10/models.py:44
↓ 4 callersFunctionget_iddpm_unet_double_pretrained_config
(**hparams)
configs/imagenet64/models.py:34
↓ 4 callersFunctionget_normalization
Obtain normalization modules from the config file.
libs/score_sde/models/normalization.py:22
↓ 4 callersFunctionget_score_sde_ncsnpp_double_pretrained_config
(**hparams)
configs/cifar10/models.py:63
↓ 4 callersMethodget_train_data
(self, labelled=False)
interface/datasets/dataset_factory.py:27
↓ 4 callersFunctionscore_on_dataset
r""" Args: dataset: an instance of Dataset score_fn: a batch of data -> a batch of scalars batch_size: the batch size
core/evaluate/score.py:8
↓ 4 callersMethodtransform_data
(self, dataset, labelled)
interface/datasets/dataset_factory.py:21
↓ 4 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
libs/score_sde/op/upfirdn2d.py:145
↓ 3 callersMethod__init__
r""" Args: shift1: whether to shift the index
core/diffusion/wrapper.py:22
↓ 3 callersMethod__init__
r""" Manage a dict of objects
core/utils/managers.py:12
↓ 3 callersMethod__init__
(self, config)
libs/score_sde/models/ncsnv2.py:137
↓ 3 callersMethod_predict_x0_eps
(self, pred, xt, t)
core/diffusion/dtdpm.py:45
↓ 3 callersFunctionbackup_codes
(path, date)
interface/utils/reproducibility.py:24
↓ 3 callersFunctionbackup_config
(config, path)
interface/utils/reproducibility.py:41
↓ 3 callersFunctioncompute_statistics_of_path
(path, model, batch_size, dims, device, num_workers=8)
tools/fid_score.py:214
↓ 3 callersFunctionfrom_flattened_numpy
Form a torch tensor with the given `shape` from a flattened numpy array `x`.
core/diffusion/likelihood.py:148
↓ 3 callersFunctionget_score_sde_ncsnpp_config
(**hparams)
configs/cifar10/models.py:54
↓ 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:
libs/score_sde/models/utils.py:49
↓ 3 callersMethodget_train_val_data
(self, labelled=False)
interface/datasets/dataset_factory.py:33
↓ 3 callersFunctioniterable_to_str
(iterable: Iterable)
interface/datasets/lsun/lsun.py:11
↓ 3 callersFunctionlinear
Create a linear module.
libs/iddpm/nn.py:35
↓ 3 callersMethodload_state_dict
(self, state_dict)
libs/score_sde/models/ema.py:95
↓ 3 callersMethodreport_machine
(self)
interface/utils/interact.py:54
↓ 3 callersFunctionreport_statistics
(s, t, statistics)
core/diffusion/utils.py:8
↓ 3 callersFunctionset_deterministic
(flag: bool)
interface/utils/reproducibility.py:18
↓ 3 callersFunctionset_seed
(seed: int)
interface/utils/reproducibility.py:12
↓ 3 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may b
libs/iddpm/nn.py:90
↓ 3 callersFunctionto_flattened_numpy
Flatten a torch tensor `x` and convert it to numpy.
core/diffusion/likelihood.py:144
↓ 3 callersMethodupdate
(self, data_loader)
core/criterions/base.py:36
↓ 3 callersMethodvalues
(self)
core/utils/managers.py:30
↓ 2 callersMethod__init__
(self, data_path, flattened=False, width=64)
interface/datasets/celeba.py:330
↓ 2 callersMethod__repr__
(self)
interface/datasets/celeba.py:77
↓ 2 callersMethod__repr__
(self)
interface/datasets/lsun/vision.py:34
↓ 2 callersMethod_check_integrity
(self)
interface/datasets/celeba.py:244
↓ 2 callersFunction_choice_steps
(N, sample_steps, typ, ms_eps=None, nll_terms=None, betas=None)
core/diffusion/trajectory.py:195
↓ 2 callersMethod_format_transform_repr
(self, transform: Callable, head: str)
interface/datasets/celeba.py:109
↓ 2 callersMethod_format_transform_repr
(self, transform, head)
interface/datasets/lsun/vision.py:49
↓ 2 callersMethod_format_transform_repr
(self, transform, head)
interface/datasets/lsun/vision.py:70
↓ 2 callersFunction_inception_v3
Wraps `torchvision.models.inception_v3` Skips default weight inititialization if supported by torchvision version. See https://github.com/mse
tools/inception.py:166
↓ 2 callersMethod_predict_cov_prev
(self, s, t, typ, cov_x0_pred=None)
core/diffusion/dtdpm.py:131
↓ 2 callersMethod_predict_cov_x0
(self, pred1, pred2, xt, t)
core/diffusion/dtdpm.py:72
↓ 2 callersFunction_solve_fn_dp
(fn, N, K)
core/diffusion/trajectory.py:86
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
core/func/functions.py:81
↓ 2 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
tools/fid_score.py:239
↓ 2 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
libs/iddpm/nn.py:111
↓ 2 callersFunctioncreate_instance
(config)
interface/utils/config_utils.py:10
↓ 2 callersMethodcum_beta
(self, t)
core/diffusion/sde.py:20
↓ 2 callersFunctiondict2str
(dct)
misc.py:44
↓ 2 callersMethodema
r""" Exponential moving average theta <- beta * theta + (1 - beta) * theta_src Args: src: the source model
core/utils/managers.py:125
↓ 2 callersFunctioneuler_maruyama
r""" The Euler Maruyama sampler for reverse SDE / ODE See `Score-Based Generative Modeling through Stochastic Differential Equations`
core/diffusion/sample.py:50
↓ 2 callersFunctionfn
(x0)
core/diffusion/likelihood.py:73
↓ 2 callersFunctionget_ddpm_unet_config
(**hparams)
configs/celeba64/models.py:4
↓ 2 callersFunctionget_ddpm_unet_config
(**hparams)
configs/lsun/models.py:4
↓ 2 callersFunctionget_iddpm_unet_config
(**hparams)
configs/imagenet64/models.py:4
next →1–100 of 635, ranked by callers