Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YuchuanTian/DiC
/ functions
Functions
186 in github.com/YuchuanTian/DiC
⨍
Functions
186
◇
Types & classes
36
Function
DiT_B_2
(**kwargs)
models.py:346
Function
DiT_B_4
(**kwargs)
models.py:349
Function
DiT_B_8
(**kwargs)
models.py:352
Function
DiT_L_2
(**kwargs)
models.py:337
Function
DiT_L_4
(**kwargs)
models.py:340
Function
DiT_L_8
(**kwargs)
models.py:343
Function
DiT_S_2
(**kwargs)
models.py:355
Function
DiT_S_4
(**kwargs)
models.py:358
Function
DiT_S_8
(**kwargs)
models.py:361
Function
DiT_XL_2
(**kwargs)
models.py:328
Function
DiT_XL_4
(**kwargs)
models.py:331
Function
DiT_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
Method
calc_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
Method
condition_mean
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:99
Method
condition_score
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:102
Function
continuous_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
Function
create_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
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
diffusion/gaussian_diffusion.py:562
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
diffusion/gaussian_diffusion.py:600
Method
evaluate
Evaluate if new feature vectors are at the manifold.
evaluator.py:283
Method
extra_repr
(self)
dic_models.py:43
Method
forward
(self, t)
models.py:61
Method
forward
(self, labels, train, force_drop_ids=None)
models.py:89
Method
forward
(self, x, c)
models.py:118
Method
forward
(self, x, c)
models.py:138
Method
forward
(self, x: torch.Tensor)
dic_models.py:26
Method
forward
(self, x)
dic_models.py:40
Method
forward
(self, t)
dic_models.py:152
Method
forward
(self, labels, train, force_drop_ids=None)
dic_models.py:180
Method
forward
(self, x, c)
dic_models.py:200
Method
forward
(self, x)
dic_models.py:212
Method
forward
(self, x)
dic_models.py:225
Method
forward
(self, x)
dic_models.py:235
Method
forward
(self, x, emb)
dic_models.py:289
Method
forward
(self, x, c)
dic_models.py:334
Method
forward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
models.py:250
Method
forward_with_cfg
(self, x, t, y, cfg_scale)
dic_models.py:554
Function
get_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
Method
is_vb
(self)
diffusion/gaussian_diffusion.py:54
Method
p_mean_variance
( self, model, *args, **kwargs )
diffusion/respace.py:89
Method
process_xstart
(x)
diffusion/gaussian_diffusion.py:310
Method
read_batch
(self, batch_size: int)
evaluator.py:474
Method
read_batch
(self, batch_size: int)
evaluator.py:504
Method
remaining
(self)
evaluator.py:489
Method
remaining
(self)
evaluator.py:512
Method
training_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
Function
trunc_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
Method
update_with_all_losses
(self, ts, losses)
diffusion/timestep_sampler.py:139
Method
update_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
Method
warmup
(self)
evaluator.py:241
Method
weights
(self)
diffusion/timestep_sampler.py:67
Method
weights
(self)
diffusion/timestep_sampler.py:130
← previous
101–186 of 186, ranked by callers