Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chuanyangjin/fast-DiT
/ functions
Functions
171 in github.com/chuanyangjin/fast-DiT
⨍
Functions
171
◇
Types & classes
22
Function
DiT_L_2
(**kwargs)
train_options/models_original.py:337
Function
DiT_L_4
(**kwargs)
models.py:346
Function
DiT_L_4
(**kwargs)
train_options/models_original.py:340
Function
DiT_L_8
(**kwargs)
models.py:349
Function
DiT_L_8
(**kwargs)
train_options/models_original.py:343
Function
DiT_S_2
(**kwargs)
models.py:361
Function
DiT_S_2
(**kwargs)
train_options/models_original.py:355
Function
DiT_S_4
(**kwargs)
models.py:364
Function
DiT_S_4
(**kwargs)
train_options/models_original.py:358
Function
DiT_S_8
(**kwargs)
models.py:367
Function
DiT_S_8
(**kwargs)
train_options/models_original.py:361
Function
DiT_XL_2
(**kwargs)
models.py:334
Function
DiT_XL_2
(**kwargs)
train_options/models_original.py:328
Function
DiT_XL_4
(**kwargs)
models.py:337
Function
DiT_XL_4
(**kwargs)
train_options/models_original.py:331
Function
DiT_XL_8
(**kwargs)
models.py:340
Function
DiT_XL_8
(**kwargs)
train_options/models_original.py:334
Method
__call__
(self, x, ts, **kwargs)
diffusion/respace.py:124
Method
__getitem__
(self, idx)
train.py:110
Method
__getitem__
(self, idx)
train_options/train_features.py:119
Method
__init__
(self, features_dir, labels_dir)
train.py:98
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, 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, hidden_size, frequency_embedding_size=256)
train_options/models_original.py:31
Method
__init__
(self, num_classes, hidden_size, dropout_prob)
train_options/models_original.py:71
Method
__init__
(self, hidden_size, num_heads, mlp_ratio=4.0, **block_kwargs)
train_options/models_original.py:105
Method
__init__
(self, hidden_size, patch_size, out_channels)
train_options/models_original.py:129
Method
__init__
(self, features_dir, labels_dir)
train_options/train_features.py:107
Method
__len__
(self)
train.py:105
Method
__len__
(self)
train_options/train_features.py:114
Method
_basic_init
(module)
models.py:184
Method
_basic_init
(module)
train_options/models_original.py:184
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
Function
center_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
train.py:76
Function
center_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
train_options/train_features.py:85
Method
ckpt_forward
(*inputs)
models.py:234
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_logger
Create a logger that writes to a log file and stdout.
extract_features.py:68
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
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, t)
train_options/models_original.py:61
Method
forward
(self, labels, train, force_drop_ids=None)
train_options/models_original.py:89
Method
forward
(self, x, c)
train_options/models_original.py:118
Method
forward
(self, x, c)
train_options/models_original.py:138
Method
forward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
models.py:256
Method
forward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
train_options/models_original.py:250
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
Function
requires_grad
Set requires_grad flag for all parameters in a model.
extract_features.py:53
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
update_ema
Step the EMA model towards the current model.
extract_features.py:41
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
weights
(self)
diffusion/timestep_sampler.py:67
Method
weights
(self)
diffusion/timestep_sampler.py:130
← previous
101–171 of 171, ranked by callers