MCPcopy Create free account

hub / github.com/YuchuanTian/DiC / functions

Functions186 in github.com/YuchuanTian/DiC

FunctionDiT_B_2
(**kwargs)
models.py:346
FunctionDiT_B_4
(**kwargs)
models.py:349
FunctionDiT_B_8
(**kwargs)
models.py:352
FunctionDiT_L_2
(**kwargs)
models.py:337
FunctionDiT_L_4
(**kwargs)
models.py:340
FunctionDiT_L_8
(**kwargs)
models.py:343
FunctionDiT_S_2
(**kwargs)
models.py:355
FunctionDiT_S_4
(**kwargs)
models.py:358
FunctionDiT_S_8
(**kwargs)
models.py:361
FunctionDiT_XL_2
(**kwargs)
models.py:328
FunctionDiT_XL_4
(**kwargs)
models.py:331
FunctionDiT_XL_8
(**kwargs)
models.py:334
Method__call__
(self, x, ts, **kwargs)
diffusion/respace.py:124
Method__getitem__
(self, idx)
utils/fastdit_kit.py:42
Method__init__
(self, mu: np.ndarray, sigma: np.ndarray)
evaluator.py:68
Method__init__
( self, session, batch_size=64, softmax_batch_size=512, )
evaluator.py:119
Method__init__
Estimate the manifold of given feature vectors. :param session: the TensorFlow session. :param row_batch_size: row batch siz
evaluator.py:212
Method__init__
(self, session)
evaluator.py:369
Method__init__
(self, gen_fn, length)
evaluator.py:456
Method__init__
(self, arr_f, shape, dtype)
evaluator.py:468
Method__init__
(self, arr)
evaluator.py:494
Method__init__
(self, hidden_size, frequency_embedding_size=256)
models.py:31
Method__init__
(self, num_classes, hidden_size, dropout_prob)
models.py:71
Method__init__
(self, hidden_size, num_heads, mlp_ratio=4.0, **block_kwargs)
models.py:105
Method__init__
(self, hidden_size, patch_size, out_channels)
models.py:129
Method__init__
(self, num_channels, eps=1e-6, affine=True)
dic_models.py:23
Method__init__
(self, num_channels, num_groups=32, min_channels_per_group=4, eps=1e-5)
dic_models.py:33
Method__init__
(self, hidden_size, frequency_embedding_size=256)
dic_models.py:122
Method__init__
(self, num_classes, hidden_size, dropout_prob)
dic_models.py:162
Method__init__
(self, hidden_size, out_channels)
dic_models.py:191
Method__init__
(self, in_c=3, embed_dim=48, bias=False)
dic_models.py:207
Method__init__
(self, n_feat, out_feat)
dic_models.py:219
Method__init__
(self, n_feat, out_feat)
dic_models.py:229
Method__init__
(self, in_channels, out_channels, emb_channels=None, dropout=0, skip_scale=1, eps=1e-5, resa
dic_models.py:241
Method__init__
(self, input_size, hidden_size, input_chans=None, **kwargs)
dic_models.py:330
Method__init__
(self, diffusion)
diffusion/timestep_sampler.py:63
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
diffusion/timestep_sampler.py:121
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type
diffusion/gaussian_diffusion.py:153
Method__init__
(self, use_timesteps, **kwargs)
diffusion/respace.py:73
Method__init__
(self, features_dir)
utils/fastdit_kit.py:22
Method__iter__
(self)
evaluator.py:463
Method__len__
(self)
evaluator.py:460
Method__len__
(self)
utils/fastdit_kit.py:37
Method_basic_init
(module)
models.py:184
Method_basic_init
(module)
dic_models.py:435
Method_scale_timesteps
(self, t)
diffusion/respace.py:112
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
diffusion/gaussian_diffusion.py:805
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:99
Methodcondition_score
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:102
Functioncontinuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
diffusion/diffusion_utils.py:47
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
diffusion/timestep_sampler.py:13
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
diffusion/gaussian_diffusion.py:562
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
diffusion/gaussian_diffusion.py:600
Methodevaluate
Evaluate if new feature vectors are at the manifold.
evaluator.py:283
Methodextra_repr
(self)
dic_models.py:43
Methodforward
(self, t)
models.py:61
Methodforward
(self, labels, train, force_drop_ids=None)
models.py:89
Methodforward
(self, x, c)
models.py:118
Methodforward
(self, x, c)
models.py:138
Methodforward
(self, x: torch.Tensor)
dic_models.py:26
Methodforward
(self, x)
dic_models.py:40
Methodforward
(self, t)
dic_models.py:152
Methodforward
(self, labels, train, force_drop_ids=None)
dic_models.py:180
Methodforward
(self, x, c)
dic_models.py:200
Methodforward
(self, x)
dic_models.py:212
Methodforward
(self, x)
dic_models.py:225
Methodforward
(self, x)
dic_models.py:235
Methodforward
(self, x, emb)
dic_models.py:289
Methodforward
(self, x, c)
dic_models.py:334
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
models.py:250
Methodforward_with_cfg
(self, x, t, y, cfg_scale)
dic_models.py:554
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the limi
diffusion/gaussian_diffusion.py:98
Methodis_vb
(self)
diffusion/gaussian_diffusion.py:54
Methodp_mean_variance
( self, model, *args, **kwargs )
diffusion/respace.py:89
Methodprocess_xstart
(x)
diffusion/gaussian_diffusion.py:310
Methodread_batch
(self, batch_size: int)
evaluator.py:474
Methodread_batch
(self, batch_size: int)
evaluator.py:504
Methodremaining
(self)
evaluator.py:489
Methodremaining
(self)
evaluator.py:512
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
diffusion/gaussian_diffusion.py:715
Functiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. From: https://github.com/rwightman/pytorch-image-models
dic_models.py:86
Methodupdate_with_all_losses
(self, ts, losses)
diffusion/timestep_sampler.py:139
Methodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
diffusion/timestep_sampler.py:72
Methodwarmup
(self)
evaluator.py:241
Methodweights
(self)
diffusion/timestep_sampler.py:67
Methodweights
(self)
diffusion/timestep_sampler.py:130
← previous101–186 of 186, ranked by callers