MCPcopy Create free account

hub / github.com/alibaba-damo-academy/DyDiT / functions

Functions281 in github.com/alibaba-damo-academy/DyDiT

↓ 1 callersMethodinitialize_weights
(self)
DyDiT/models.py:380
↓ 1 callersFunctionis_main_process
()
DyDiT/misc.py:208
↓ 1 callersMethodless_thans
(self, batch_1, radii_1, batch_2, radii_2)
DyDiT/evaluator.py:414
↓ 1 callersFunctionload_txt_to_list
(file_path)
DyFLUX/utils.py:4
↓ 1 callersFunctionmain
Trains a new DiT model.
DyDiT/train.py:76
↓ 1 callersFunctionmain
()
DyDiT/evaluator.py:28
↓ 1 callersFunctionmain
(args)
DyDiT/sample.py:21
↓ 1 callersFunctionmain
Trains a new DiT model.
DyDiT/train_without_completemodel.py:78
↓ 1 callersFunctionmain
Run sampling.
DyDiT/sample_ddp.py:45
↓ 1 callersMethodnorm_encoder_hidden_states
r""" Normalize the encoder hidden states. Requires `self.norm_cross` to be specified when constructing the `Attention` class.
DyFLUX/flux_models/attention_processor_dyn.py:652
↓ 1 callersFunctionopen_npz_array
(path: str, arr_name: str)
DyDiT/evaluator.py:529
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
DyDiT/diffusion/gaussian_diffusion.py:376
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_s
DyDiT/diffusion/gaussian_diffusion.py:464
↓ 1 callersFunctionparse_args
(input_args=None)
DyFLUX/test_dynamic_demo.py:11
↓ 1 callersMethodprepare_attention_mask
r""" Prepare the attention mask for the attention computation. Args: attention_mask (`torch.Tensor`): The
DyFLUX/flux_models/attention_processor_dyn.py:605
↓ 1 callersMethodprepare_latents
( self, batch_size, num_channels_latents, height, width, dtype
DyFLUX/flux_models/pipeline_flux_dyn.py:457
↓ 1 callersFunctionprocess
(text: str)
DyDiT/utils.py:332
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
DyDiT/diffusion/gaussian_diffusion.py:203
↓ 1 callersMethodread_batch
(self, batch_size: int)
DyDiT/evaluator.py:447
↓ 1 callersMethodread_batches
(self, batch_size: int)
DyDiT/evaluator.py:454
↓ 1 callersMethodremaining
(self)
DyDiT/evaluator.py:451
↓ 1 callersFunctionrequires_grad
Set requires_grad flag for all parameters in a model.
DyDiT/train.py:56
↓ 1 callersFunctionrequires_grad
Set requires_grad flag for all parameters in a model.
DyDiT/train_without_completemodel.py:58
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
DyFLUX/flux_models/pipeline_flux_dyn.py:81
↓ 1 callersFunctionrope
(pos: torch.Tensor, dim: int, theta: int)
DyFLUX/flux_models/transformer_flux_dyn.py:43
↓ 1 callersFunctionsave_on_master
(*args, **kwargs)
DyDiT/misc.py:212
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
DyDiT/diffusion/respace.py:12
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
DyDiT/models.py:216
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
DyDiT/models.py:253
↓ 1 callersMethodtraining_losses
( self, model, *args, **kwargs )
DyDiT/diffusion/respace.py:94
↓ 1 callersMethodtraining_losses_without_completemodel
( self, model, *args, **kwargs )
DyDiT/diffusion/respace.py:99
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
DyDiT/models.py:423
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using los
DyDiT/diffusion/timestep_sampler.py:106
↓ 1 callersMethodwarmup
(self)
DyDiT/evaluator.py:147
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
DyDiT/diffusion/timestep_sampler.py:38
FunctionDiT_B_2
(**kwargs)
DyDiT/models.py:568
FunctionDiT_B_4
(**kwargs)
DyDiT/models.py:571
FunctionDiT_B_8
(**kwargs)
DyDiT/models.py:574
FunctionDiT_L_2
(**kwargs)
DyDiT/models.py:559
FunctionDiT_L_4
(**kwargs)
DyDiT/models.py:562
FunctionDiT_L_8
(**kwargs)
DyDiT/models.py:565
FunctionDiT_S_2
(**kwargs)
DyDiT/models.py:577
FunctionDiT_S_4
(**kwargs)
DyDiT/models.py:580
FunctionDiT_S_8
(**kwargs)
DyDiT/models.py:583
FunctionDiT_XL_2
(**kwargs)
DyDiT/models.py:550
FunctionDiT_XL_4
(**kwargs)
DyDiT/models.py:553
FunctionDiT_XL_8
(**kwargs)
DyDiT/models.py:556
Method__call__
(self, loss, optimizer, clip_grad=None, parameters=None, create_graph=False, update_grad=True)
DyDiT/misc.py:250
Method__call__
(self, x, ts, **kwargs)
DyDiT/diffusion/respace.py:129
Method__call__
( self, attn: Attention, hidden_states: torch.Tensor, encoder_hidden_states: O
DyFLUX/flux_models/attention_processor_dyn.py:736
Method__call__
( self, attn: Attention, hidden_states: torch.Tensor, channel_mask_attn: torch
DyFLUX/flux_models/attention_processor_dyn.py:821
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, channel_mask_attn:
DyFLUX/flux_models/attention_processor_dyn.py:893
Method__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
DyFLUX/flux_models/pipeline_flux_dyn.py:508
Method__getattr__
(self, attr)
DyDiT/misc.py:101
Method__init__
(self, token_target_ratio=0.5, token_loss_ratio=2., token_mi
DyDiT/loss.py:32
Method__init__
(self, dim_in, num_sub_layer, tau=5, is_hard=True, threshold=0.5, bias=True)
DyDiT/dynamic_model.py:61
Method__init__
(self, window_size=20, fmt=None)
DyDiT/misc.py:29
Method__init__
(self, delimiter="\t", logger=None)
DyDiT/misc.py:87
Method__init__
(self)
DyDiT/misc.py:247
Method__init__
(self, mu: np.ndarray, sigma: np.ndarray)
DyDiT/evaluator.py:80
Method__init__
( self, session, batch_size=64, softmax_batch_size=512, )
DyDiT/evaluator.py:131
Method__init__
Estimate the manifold of given feature vectors. :param session: the TensorFlow session. :param row_batch_size: row batch siz
DyDiT/evaluator.py:224
Method__init__
(self, session)
DyDiT/evaluator.py:381
Method__init__
(self, gen_fn, length)
DyDiT/evaluator.py:468
Method__init__
(self, arr_f, shape, dtype)
DyDiT/evaluator.py:480
Method__init__
(self, arr)
DyDiT/evaluator.py:506
Method__init__
(self, in_features, out_features, num_heads, head_dim, bias=True, dyna_dim=[True, True], width_mult=1.)
DyDiT/models.py:33
Method__init__
(self, in_features, out_features, num_heads, head_dim, bias=True, dyna_dim=[True, True], width_mult=1.)
DyDiT/models.py:58
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False,
DyDiT/models.py:92
Method__init__
(self, hidden_size, frequency_embedding_size=256)
DyDiT/models.py:206
Method__init__
(self, num_classes, hidden_size, dropout_prob)
DyDiT/models.py:246
Method__init__
(self, hidden_size, num_heads, mlp_ratio=4.0, **block_kwargs)
DyDiT/models.py:280
Method__init__
(self, hidden_size, patch_size, out_channels)
DyDiT/models.py:327
Method__init__
( self, input_size=32, patch_size=2, in_channels=4, hidden_size=1152,
DyDiT/models.py:347
Method__init__
(self, diffusion)
DyDiT/diffusion/timestep_sampler.py:63
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
DyDiT/diffusion/timestep_sampler.py:121
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type
DyDiT/diffusion/gaussian_diffusion.py:153
Method__init__
(self, use_timesteps, **kwargs)
DyDiT/diffusion/respace.py:73
Method__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
DyFLUX/flux_models/attention_processor_dyn.py:98
Method__init__
(self)
DyFLUX/flux_models/attention_processor_dyn.py:817
Method__init__
(self)
DyFLUX/flux_models/attention_processor_dyn.py:889
Method__init__
( self, scheduler: FlowMatchEulerDiscreteScheduler, vae: AutoencoderKL, text_e
DyFLUX/flux_models/pipeline_flux_dyn.py:171
Method__init__
(self, dim_in, conditioning_dim, is_hard=True, threshold=0.5, elementwise_affine: bool = True
DyFLUX/flux_models/dy_utils.py:42
Method__init__
(self, in_features, out_features, num_heads, head_dim, bias=True, dyna_dim=[False, False])
DyFLUX/flux_models/dy_utils.py:78
Method__init__
(self, in_features, out_features, num_heads, head_dim, bias=True, dyna_dim=[True, False])
DyFLUX/flux_models/dy_utils.py:108
Method__init__
( self, dim: int, dim_out: Optional[int] = None, mult: int = 4, dropou
DyFLUX/flux_models/dy_utils.py:177
Method__init__
(self, dim, num_attention_heads, attention_head_dim, mlp_ratio=4.0, do_token_select=True)
DyFLUX/flux_models/transformer_flux_dyn.py:79
Method__init__
(self, dim, num_attention_heads, attention_head_dim, qk_norm="rms_norm", eps=1e-6, do_token_s
DyFLUX/flux_models/transformer_flux_dyn.py:204
Method__init__
( self, patch_size: int = 1, in_channels: int = 64, num_layers: int = 19,
DyFLUX/flux_models/transformer_flux_dyn.py:352
Method__iter__
(self)
DyDiT/evaluator.py:475
Method__len__
(self)
DyDiT/evaluator.py:472
Method__str__
(self)
DyDiT/misc.py:77
Method__str__
(self)
DyDiT/misc.py:109
Method_basic_init
(module)
DyDiT/models.py:382
Method_scale_timesteps
(self, t)
DyDiT/diffusion/respace.py:117
Method_set_gradient_checkpointing
(self, module, value=False)
DyFLUX/flux_models/transformer_flux_dyn.py:415
Methodadd_meter
(self, name, meter)
DyDiT/misc.py:121
Functionall_reduce
(x, op)
DyDiT/misc.py:357
Functionall_reduce_mean
(x)
DyDiT/misc.py:347
Methodavg
(self)
DyDiT/misc.py:61
← previousnext →101–200 of 281, ranked by callers