MCPcopy Create free account

hub / github.com/chuanyangjin/fast-DiT / functions

Functions171 in github.com/chuanyangjin/fast-DiT

FunctionDiT_L_2
(**kwargs)
train_options/models_original.py:337
FunctionDiT_L_4
(**kwargs)
models.py:346
FunctionDiT_L_4
(**kwargs)
train_options/models_original.py:340
FunctionDiT_L_8
(**kwargs)
models.py:349
FunctionDiT_L_8
(**kwargs)
train_options/models_original.py:343
FunctionDiT_S_2
(**kwargs)
models.py:361
FunctionDiT_S_2
(**kwargs)
train_options/models_original.py:355
FunctionDiT_S_4
(**kwargs)
models.py:364
FunctionDiT_S_4
(**kwargs)
train_options/models_original.py:358
FunctionDiT_S_8
(**kwargs)
models.py:367
FunctionDiT_S_8
(**kwargs)
train_options/models_original.py:361
FunctionDiT_XL_2
(**kwargs)
models.py:334
FunctionDiT_XL_2
(**kwargs)
train_options/models_original.py:328
FunctionDiT_XL_4
(**kwargs)
models.py:337
FunctionDiT_XL_4
(**kwargs)
train_options/models_original.py:331
FunctionDiT_XL_8
(**kwargs)
models.py:340
FunctionDiT_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
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
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
train.py:76
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
train_options/train_features.py:85
Methodckpt_forward
(*inputs)
models.py:234
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_logger
Create a logger that writes to a log file and stdout.
extract_features.py:68
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
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, t)
train_options/models_original.py:61
Methodforward
(self, labels, train, force_drop_ids=None)
train_options/models_original.py:89
Methodforward
(self, x, c)
train_options/models_original.py:118
Methodforward
(self, x, c)
train_options/models_original.py:138
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
models.py:256
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
train_options/models_original.py:250
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
Functionrequires_grad
Set requires_grad flag for all parameters in a model.
extract_features.py:53
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
Functionupdate_ema
Step the EMA model towards the current model.
extract_features.py:41
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
Methodweights
(self)
diffusion/timestep_sampler.py:67
Methodweights
(self)
diffusion/timestep_sampler.py:130
← previous101–171 of 171, ranked by callers