MCPcopy Create free account

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

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

Functionbipartition
(ts)
core/func/functions.py:7
Functionclip_grad_element_wise_
(grads: Union[torch.Tensor, List[torch.Tensor]], max_norm: float)
core/utils/clip_grad.py:30
Functionclip_grad_norm_
(grads: Union[torch.Tensor, List[torch.Tensor]], max_norm: float, norm_type: float = 2.)
core/utils/clip_grad.py:10
Functionconvert_module_to_f16
Convert primitive modules to float16.
libs/iddpm/fp16_util.py:9
Functionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
libs/iddpm/fp16_util.py:18
Methodconvert_to_fp16
Convert the torso of the model to float16.
libs/iddpm/unet.py:441
Methodconvert_to_fp32
Convert the torso of the model to float32.
libs/iddpm/unet.py:449
Methodcopy_to
Copy current parameters into given collection of parameters. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
libs/score_sde/models/ema.py:53
Methodcount_flops
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs
libs/iddpm/unet.py:255
Functioncreate_criterion
r""" Create an instance of the criterion described in the profile Args: config: a parsed profile describing the criterion wrapper:
interface/utils/config_utils.py:97
Functioncreate_dataset
(config)
interface/utils/config_utils.py:118
Functioncreate_ema
(config, models: managers.ModelsManager)
interface/utils/config_utils.py:166
Functioncreate_evaluator
(config, wrapper, dataset, interact)
interface/utils/config_utils.py:126
Functioncreate_interact
(config)
interface/utils/config_utils.py:134
Functioncreate_lr_schedulers
r""" Create optimizers (an instance of OptimizersManager) described in the profile Args: config: a config describing optimizers op
interface/utils/config_utils.py:81
Functioncreate_optimizers
r""" Create optimizers (an instance of OptimizersManager) described in the profile Args: config: a config describing optimizers mo
interface/utils/config_utils.py:56
Functioncreate_val_fn
(config, criterion)
interface/utils/config_utils.py:142
Functioncreate_wrapper
(config, models: managers.ModelsManager)
interface/utils/config_utils.py:34
Functioncustomized_lr_scheduler
(optimizer, warmup_its)
configs/default.py:73
Methoddata_dim
(self)
interface/datasets/dataset_factory.py:73
Methoddata_shape
(self)
interface/datasets/lsun_bedroom.py:29
Methoddata_shape
(self)
interface/datasets/dataset_factory.py:69
Methoddata_shape
(self)
interface/datasets/celeba.py:377
Methoddata_shape
(self)
interface/datasets/cifar10.py:45
Methoddata_shape
(self)
interface/datasets/imagenet64.py:52
Functionddpm_conv1x1
1x1 convolution with DDPM initialization.
libs/score_sde/models/layers.py:100
Methoddefault_val_fn
r""" Advise a validation function
core/criterions/base.py:39
Functiondifferential
r""" d fn / dv Args: fn: a batch of tensor -> a batch of scalar v: a batch of tensor retain_graph: see autograd.grad, defa
core/func/differential.py:41
Methoddiffusion
(self, t)
core/diffusion/sde.py:56
Methoddiffusion
(self, t)
core/diffusion/sde.py:83
Methoddiffusion
(self, t)
core/diffusion/sde.py:96
Functiondownsample_2d
r"""Downsample 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 dow
libs/score_sde/models/up_or_down_sampling.py:227
Methoddrift
(self, x, t)
core/diffusion/sde.py:50
Methoddrift
(self, x, t)
core/diffusion/sde.py:77
Methoddrift
(self, x, t)
core/diffusion/sde.py:93
Functionduplicate
(tensor, *size)
core/func/functions.py:39
Methodextra_repr
(self)
interface/datasets/celeba.py:302
Methodextra_repr
(self)
interface/datasets/lsun/lsun.py:205
Methodfid_stat
(self)
interface/datasets/lsun_bedroom.py:33
Methodfid_stat
(self)
interface/datasets/dataset_factory.py:77
Methodfid_stat
(self)
interface/datasets/celeba.py:381
Methodfid_stat
(self)
interface/datasets/cifar10.py:49
Methodfid_stat
(self)
interface/datasets/imagenet64.py:56
Methodforward
Get Inception feature maps Parameters ---------- inp : torch.autograd.Variable Input tensor of shape Bx3xHxW. Val
tools/inception.py:129
Methodforward
(self, x)
tools/inception.py:216
Methodforward
(self, x)
tools/inception.py:241
Methodforward
(self, x)
tools/inception.py:269
Methodforward
(self, x)
tools/inception.py:302
Methodforward
(self, x, t)
libs/ddpm/customized.py:29
Methodforward
(self, x)
libs/ddpm/model.py:47
Methodforward
(self, x)
libs/ddpm/model.py:66
Methodforward
(self, x, temb)
libs/ddpm/model.py:114
Methodforward
(self, x)
libs/ddpm/model.py:164
Methodforward
(self, x, t)
libs/ddpm/model.py:291
Methodforward
(self, x)
libs/iddpm/nn.py:18
Methodforward
(ctx, run_function, length, *args)
libs/iddpm/nn.py:131
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
libs/iddpm/unet.py:29
Methodforward
(self, x, emb)
libs/iddpm/unet.py:41
Methodforward
(self, x)
libs/iddpm/unet.py:102
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
libs/iddpm/unet.py:172
Methodforward
(self, x)
libs/iddpm/unet.py:219
Methodforward
Apply QKV attention. :param qkv: an [N x (C * 3) x T] tensor of Qs, Ks, and Vs. :return: an [N x C x T] tensor after attenti
libs/iddpm/unet.py:238
Methodforward
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/unet.py:464
Methodforward
(self, x, timesteps, low_res=None, **kwargs)
libs/iddpm/unet.py:539
Methodforward
(self, x, timesteps, y=None)
libs/iddpm/customized.py:18
Methodforward
(self, x, time_cond)
libs/score_sde/customized.py:220
Methodforward
(ctx, grad_output, out, negative_slope, scale)
libs/score_sde/op/fused_act.py:22
Methodforward
(ctx, input, bias, negative_slope, scale)
libs/score_sde/op/fused_act.py:54
Methodforward
(self, input)
libs/score_sde/op/fused_act.py:82
Methodforward
( ctx, grad_output, kernel, grad_kernel, up, down, pad, g_pad, in_size, out_size )
libs/score_sde/op/upfirdn2d.py:21
Methodforward
(ctx, input, kernel, up, down, pad)
libs/score_sde/op/upfirdn2d.py:90
Methodforward
(self, x)
libs/score_sde/models/layers.py:147
Methodforward
(self, x, y)
libs/score_sde/models/layers.py:171
Methodforward
(self, x)
libs/score_sde/models/layers.py:196
Methodforward
(self, x, y)
libs/score_sde/models/layers.py:222
Methodforward
(self, xs, shape)
libs/score_sde/models/layers.py:244
Methodforward
(self, xs, y, shape)
libs/score_sde/models/layers.py:267
Methodforward
(self, xs, output_shape)
libs/score_sde/models/layers.py:295
Methodforward
(self, xs, y, output_shape)
libs/score_sde/models/layers.py:333
Methodforward
(self, inputs)
libs/score_sde/models/layers.py:365
Methodforward
(self, inputs)
libs/score_sde/models/layers.py:377
Methodforward
(self, inputs)
libs/score_sde/models/layers.py:390
Methodforward
(self, x, y)
libs/score_sde/models/layers.py:437
Methodforward
(self, x)
libs/score_sde/models/layers.py:494
Methodforward
(self, x)
libs/score_sde/models/layers.py:552
Methodforward
(self, x)
libs/score_sde/models/layers.py:568
Methodforward
(self, x)
libs/score_sde/models/layers.py:591
Methodforward
(self, x)
libs/score_sde/models/layers.py:606
Methodforward
(self, x, temb=None)
libs/score_sde/models/layers.py:645
Methodforward
(self, x, labels)
libs/score_sde/models/ddpm.py:110
Methodforward
(self, x, time_cond)
libs/score_sde/models/ncsnpp.py:232
Methodforward
(self, x)
libs/score_sde/models/layerspp.py:39
Methodforward
(self, x, y)
libs/score_sde/models/layerspp.py:52
Methodforward
(self, x)
libs/score_sde/models/layerspp.py:75
Methodforward
(self, x)
libs/score_sde/models/layerspp.py:114
Methodforward
(self, x)
libs/score_sde/models/layerspp.py:149
Methodforward
(self, x, temb=None)
libs/score_sde/models/layerspp.py:193
Methodforward
(self, x, temb=None)
libs/score_sde/models/layerspp.py:242
Methodforward
(self, x, y)
libs/score_sde/models/ncsnv2.py:106
Methodforward
(self, x, y)
libs/score_sde/models/ncsnv2.py:196
← previousnext →401–500 of 635, ranked by callers