Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba-damo-academy/DyDiT
/ functions
Functions
281 in github.com/alibaba-damo-academy/DyDiT
⨍
Functions
281
◇
Types & classes
50
Method
backward
(ctx, g)
DyDiT/dynamic_model.py:105
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
DyDiT/diffusion/gaussian_diffusion.py:918
Function
cleanup
End DDP training.
DyDiT/utils.py:213
Function
collect_env
()
DyDiT/utils.py:298
Method
condition_mean
(self, cond_fn, *args, **kwargs)
DyDiT/diffusion/respace.py:104
Method
condition_score
(self, cond_fn, *args, **kwargs)
DyDiT/diffusion/respace.py:107
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
DyDiT/diffusion/diffusion_utils.py:47
Function
convert_list_to_tensor
(list_convert)
DyDiT/dynamic_model.py:11
Function
create_logger
Create a logger that writes to a log file and stdout.
DyDiT/utils.py:152
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
DyDiT/diffusion/timestep_sampler.py:13
Function
create_tensorboard
Create a tensorboard that saves losses.
DyDiT/utils.py:172
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
DyDiT/diffusion/gaussian_diffusion.py:562
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
DyDiT/diffusion/gaussian_diffusion.py:600
Method
evaluate
Evaluate if new feature vectors are at the manifold.
DyDiT/evaluator.py:295
Method
forward
head_select: (b, num_layers, num_head)
DyDiT/loss.py:52
Method
forward
(self, x)
DyDiT/dynamic_model.py:75
Method
forward
(ctx, x_in1, x_in2, x_in3=math.inf)
DyDiT/dynamic_model.py:90
Method
forward
(ctx, x_in)
DyDiT/dynamic_model.py:100
Method
forward
(self, x)
DyDiT/dynamic_model.py:125
Method
forward
(self, input_x)
DyDiT/models.py:43
Method
forward
(self, input_x)
DyDiT/models.py:68
Method
forward
(self, x: torch.Tensor, channel_mask=None)
DyDiT/models.py:120
Method
forward
(self, x, channel_mask=None)
DyDiT/models.py:179
Method
forward
(self, t)
DyDiT/models.py:236
Method
forward
(self, labels, train, force_drop_ids=None)
DyDiT/models.py:264
Method
forward
(self, x, c, t, complete_model)
DyDiT/models.py:296
Method
forward
(self, x, c)
DyDiT/models.py:336
Method
forward
r""" The forward method of the `Attention` class. Args: hidden_states (`torch.Tensor`): The hidden states
DyFLUX/flux_models/attention_processor_dyn.py:465
Method
forward
(self, x, temb, text, tau=5.0)
DyFLUX/flux_models/dy_utils.py:57
Method
forward
(self, tokens, token_len=1024, channel_mask_attn=None, channel_mask_ffn=None)
DyFLUX/flux_models/dy_utils.py:120
Method
forward
(self, hidden_states: torch.Tensor, channel_mask: torch.Tensor,
DyFLUX/flux_models/dy_utils.py:219
Method
forward
(self, ids: torch.Tensor)
DyFLUX/flux_models/transformer_flux_dyn.py:67
Method
forward
( self, hidden_states: torch.FloatTensor, temb: torch.FloatTensor, image_rotar
DyFLUX/flux_models/transformer_flux_dyn.py:114
Method
forward
( self, hidden_states: torch.FloatTensor, encoder_hidden_states: torch.FloatTensor,
DyFLUX/flux_models/transformer_flux_dyn.py:250
Method
forward
( self, hidden_states: torch.Tensor, encoder_hidden_states: torch.Tensor = None,
DyFLUX/flux_models/transformer_flux_dyn.py:429
Method
forward_inference
(self, input_x, channel_mask=None)
DyFLUX/flux_models/dy_utils.py:100
Method
forward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
DyDiT/models.py:468
Method
fuse_projections
(self, fuse=True)
DyFLUX/flux_models/attention_processor_dyn.py:682
Function
get_experiment_dir
(root_dir, args)
DyDiT/utils.py:131
Function
get_grad_norm
r""" Copy from torch.nn.utils.clip_grad_norm_ Clips gradient norm of an iterable of parameters. The norm is computed over all gradients
DyDiT/utils.py:36
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
DyDiT/diffusion/gaussian_diffusion.py:98
Method
get_processor
r""" Get the attention processor in use. Args: return_deprecated_lora (`bool`, *optional*, defaults to `False`):
DyFLUX/flux_models/attention_processor_dyn.py:451
Method
global_avg
(self)
DyDiT/misc.py:66
Method
guidance_scale
(self)
DyFLUX/flux_models/pipeline_flux_dyn.py:491
Function
gumbel_softmax
(logits, tau=5.0, dim = -1)
DyDiT/dynamic_model.py:50
Function
init_distributed_mode
(args)
DyDiT/misc.py:217
Method
interrupt
(self)
DyFLUX/flux_models/pipeline_flux_dyn.py:503
Method
is_vb
(self)
DyDiT/diffusion/gaussian_diffusion.py:54
Method
joint_attention_kwargs
(self)
DyFLUX/flux_models/pipeline_flux_dyn.py:495
Function
load_model
(args, model_without_ddp, optimizer, loss_scaler)
DyDiT/misc.py:324
Method
log_every
(self, iterable, print_freq, header=None)
DyDiT/misc.py:124
Method
median
(self)
DyDiT/misc.py:56
Method
num_timesteps
(self)
DyFLUX/flux_models/pipeline_flux_dyn.py:499
Method
p_mean_variance
( self, model, *args, **kwargs )
DyDiT/diffusion/respace.py:89
Method
process_xstart
(x)
DyDiT/diffusion/gaussian_diffusion.py:310
Method
read_batch
(self, batch_size: int)
DyDiT/evaluator.py:486
Method
read_batch
(self, batch_size: int)
DyDiT/evaluator.py:516
Method
remaining
(self)
DyDiT/evaluator.py:501
Method
remaining
(self)
DyDiT/evaluator.py:524
Function
requires_grad
Set requires_grad flag for all parameters in a model.
DyDiT/utils.py:206
Function
save_model
(args, epoch, model, model_without_ddp, optimizer, loss_scaler, save_force=False)
DyDiT/misc.py:288
Function
save_video_grid
(video, nrow=None)
DyDiT/utils.py:259
Method
set_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
DyFLUX/flux_models/attention_processor_dyn.py:403
Method
set_tau
(self, tau)
DyDiT/dynamic_model.py:72
Method
set_use_memory_efficient_attention_xformers
r""" Set whether to use memory efficient attention from `xformers` or not. Args: use_memory_efficient_attention_xformers
DyFLUX/flux_models/attention_processor_dyn.py:296
Method
set_use_npu_flash_attention
r""" Set whether to use npu flash attention from `torch_npu` or not.
DyFLUX/flux_models/attention_processor_dyn.py:279
Function
setup_distributed
Initialize distributed training environment. support both slurm and torch.distributed.launch see torch.distributed.init_process_group() for mo
DyDiT/utils.py:220
Method
synchronize_between_processes
Warning: does not synchronize the deque!
DyDiT/misc.py:42
Method
synchronize_between_processes
(self)
DyDiT/misc.py:117
Function
teacache_forward
( self, hidden_states: torch.Tensor, encoder_hidden_states: torch.Tensor = None, pooled_projec
DyFLUX/teacache_forward_utils.py:7
Function
text_preprocessing
(text, clean_caption=False)
DyDiT/utils.py:322
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 ...]
DyDiT/diffusion/gaussian_diffusion.py:715
Method
training_losses_without_completemodel
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
DyDiT/diffusion/gaussian_diffusion.py:817
Function
update_ema
Step the EMA model towards the current model.
DyDiT/utils.py:195
Method
update_with_all_losses
(self, ts, losses)
DyDiT/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
DyDiT/diffusion/timestep_sampler.py:72
Method
value
(self)
DyDiT/misc.py:74
Method
warmup
(self)
DyDiT/evaluator.py:253
Method
weights
(self)
DyDiT/diffusion/timestep_sampler.py:67
Method
weights
(self)
DyDiT/diffusion/timestep_sampler.py:130
Function
write_tensorboard
write the loss information to a tensorboard file. Only for pytorch DDP mode.
DyDiT/utils.py:182
← previous
201–281 of 281, ranked by callers