MCPcopy Create free account

hub / github.com/QuanjianSong/FashionChameleon / functions

Functions300 in github.com/QuanjianSong/FashionChameleon

Method__init__
( self, meta_paths, aspect_ratios={'1.78': [1280.0, 704.0],}, num_frames=81,
datasets/fashion_dataset.py:59
Method__init__
( self, bucket_indexs, aspect_ratios, batch_size: int, shuffle: bool =
datasets/sampler.py:7
Method__init__
Initialize the DMD (Distribution Matching Distillation) module. This class is self-contained and compute generator and fake score los
models/gr_dmd_ic.py:11
Method__init__
(self, args, device)
models/base.py:12
Method__init__
Initialize the ODERegression module. This class is self-contained and compute generator losses in the forward pass given prec
models/teacher_forcing_ic.py:10
Method__init__
Initialize the ODERegression module. This class is self-contained and compute generator losses in the forward pass given prec
models/diffusion_ic.py:10
Method__iter__
(self)
datasets/sampler.py:23
Method__len__
(self)
utils/fm_solvers_unipc.py:796
Method__len__
(self)
datasets/fashion_dataset.py:116
Method__len__
(self)
datasets/sampler.py:43
Method_convert_x0_to_flow_pred
Convert x0 prediction to flow matching's prediction. x0_pred: the x0 prediction with shape [B, C, H, W] xt: the input noisy d
backbones/wan_wrapper.py:197
Method_prepare_blockwise_causal_attn_mask
we will divide the token sequence into the following format [1 latent frame] [1 latent frame] ... [1 latent frame] We use fle
backbones/wan22/modules/causal_model.py:573
Method_prepare_blockwise_causal_attn_mask_i2v
we will divide the token sequence into the following format [1 latent frame] [N latent frame] ... [N latent frame] The first
backbones/wan22/modules/causal_model.py:645
Method_set_gradient_checkpointing
(self, module, value=False)
backbones/wan22/modules/causal_model.py:569
Method_set_gradient_checkpointing
(self, module, value=False)
backbones/wan22/modules/model.py:425
Method_sigma_to_t
(self, sigma)
utils/fm_solvers_unipc.py:266
Methodadd_noise
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [B*T, C, H, W] - noi
utils/scheduler.py:158
Methodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
utils/fm_solvers_unipc.py:755
Functionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0., softmax_scale=None, q_scale
backbones/wan22/modules/attention.py:133
Methodattention_mask
(b, h, q_idx, kv_idx)
backbones/wan22/modules/causal_model.py:608
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
utils/fm_solvers_unipc.py:139
Methodcollate_fn
(self, batchs)
datasets/fashion_dataset.py:196
Methodconvert_noise_to_x0
Convert the diffusion network's noise prediction to x0 predidction. noise: the predicted noise with shape [B, C, H, W] xt: th
utils/scheduler.py:52
Methodconvert_velocity_to_x0
Convert the diffusion network's velocity prediction to x0 predidction. velocity: the predicted noise with shape [B, C, H, W]
utils/scheduler.py:77
Methodcreate_custom_forward
(module)
backbones/wan22/modules/causal_model.py:903
Methodcreate_custom_forward
(module)
backbones/wan22/modules/model.py:524
Methodcross_attn_ffn
(x, context, context_lens, e, crossattn_cache=None)
backbones/wan22/modules/causal_model.py:392
Methodcross_attn_ffn
(x, context, context_lens, e)
backbones/wan22/modules/model.py:263
Methodcustom_forward
(*inputs, **kwargs)
backbones/wan22/modules/causal_model.py:904
Methodcustom_forward
(*inputs, **kwargs)
backbones/wan22/modules/model.py:525
Methoddecode
(self, zs)
backbones/wan22/modules/vae2_2.py:1024
Methoddecode
(self, zs)
backbones/wan22/modules/vae2_1.py:656
Methodencode
(self, videos)
backbones/wan22/modules/vae2_2.py:1010
Methodencode
videos: A list of videos each with shape [C, T, H, W].
backbones/wan22/modules/vae2_1.py:646
Methodforward
(self, text_prompts: List[str])
backbones/wan_wrapper.py:38
Methodforward
( self, noisy_image_or_video: torch.Tensor, conditional_dict: dict, timestep:
backbones/wan_wrapper.py:219
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
backbones/wan22/modules/causal_model.py:85
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
backbones/wan22/modules/causal_model.py:279
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, F, 6, C] seq_lens(Tensor): Shape [B], length of
backbones/wan22/modules/causal_model.py:354
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, F, 1, C]
backbones/wan22/modules/causal_model.py:425
Methodforward
( self, *args, **kwargs )
backbones/wan22/modules/causal_model.py:1087
Methodforward
(self, x)
backbones/wan22/modules/t5.py:48
Methodforward
(self, x)
backbones/wan22/modules/t5.py:61
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
backbones/wan22/modules/t5.py:86
Methodforward
(self, x)
backbones/wan22/modules/t5.py:136
Methodforward
(self, x, mask=None, pos_bias=None)
backbones/wan22/modules/t5.py:170
Methodforward
(self, x, mask=None, encoder_states=None, enco
backbones/wan22/modules/t5.py:206
Methodforward
(self, lq, lk)
backbones/wan22/modules/t5.py:233
Methodforward
(self, ids, mask=None)
backbones/wan22/modules/t5.py:303
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
backbones/wan22/modules/t5.py:351
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
backbones/wan22/modules/t5.py:408
Methodforward
(self, x, cache_x=None)
backbones/wan22/modules/vae2_2.py:33
Methodforward
(self, x)
backbones/wan22/modules/vae2_2.py:55
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
backbones/wan22/modules/vae2_2.py:61
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_2.py:108
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_2.py:209
Methodforward
(self, x)
backbones/wan22/modules/vae2_2.py:249
Methodforward
(self, x: torch.Tensor)
backbones/wan22/modules/vae2_2.py:328
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_2.py:438
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
backbones/wan22/modules/vae2_2.py:479
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_2.py:548
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
backbones/wan22/modules/vae2_2.py:659
Methodforward
(self, x, scale=[0, 1])
backbones/wan22/modules/vae2_2.py:764
Methodforward
(self, x, cache_x=None)
backbones/wan22/modules/vae2_1.py:27
Methodforward
(self, x)
backbones/wan22/modules/vae2_1.py:50
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
backbones/wan22/modules/vae2_1.py:58
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_1.py:100
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_1.py:201
Methodforward
(self, x)
backbones/wan22/modules/vae2_1.py:239
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_1.py:317
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
backbones/wan22/modules/vae2_1.py:422
Methodforward
(self, x, T, H, W)
backbones/wan22/modules/model.py:77
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
backbones/wan22/modules/model.py:92
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
backbones/wan22/modules/model.py:107
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
backbones/wan22/modules/model.py:139
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
backbones/wan22/modules/model.py:173
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, L1, 6, C] seq_lens(Tensor): Shape [B], length o
backbones/wan22/modules/model.py:232
Methodforward
( self, *args, **kwargs )
backbones/wan22/modules/model.py:428
Methodforward
(self, embed)
utils/aesthetic_scorer.py:22
Methodgenerator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
models/gr_dmd_ic.py:265
Methodgenerator_loss
(self, clean_latent: torch.Tensor, conditional_dict: dict)
models/teacher_forcing_ic.py:112
Methodinit_weight
(self, conv)
backbones/wan22/modules/vae2_2.py:167
Methodinit_weight
(self, conv)
backbones/wan22/modules/vae2_1.py:161
Methodinit_weight2
(self, conv)
backbones/wan22/modules/vae2_2.py:178
Methodinit_weight2
(self, conv)
backbones/wan22/modules/vae2_1.py:173
Functioninit_weights
(m)
backbones/wan22/modules/t5.py:27
Methodlr_lambda
(current_step)
trainer/sft_ic.py:149
Functionmasks_like
(tensor, zero=False, generator=None, p=0.2)
backbones/util.py:6
Methodqkv_fn
(x)
backbones/wan22/modules/causal_model.py:106
Methodqkv_fn
(x)
backbones/wan22/modules/model.py:150
Methodreparameterize
(self, mu, log_var)
backbones/wan22/modules/vae2_2.py:827
Methodsample
(self, imgs, deterministic=False)
backbones/wan22/modules/vae2_2.py:832
Methodsample
(self, imgs, deterministic=False)
backbones/wan22/modules/vae2_1.py:574
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
utils/fm_solvers_unipc.py:738
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
utils/fm_solvers_unipc.py:146
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
utils/fm_solvers_unipc.py:132
Methodtrain
(self)
trainer/distill_ic.py:338
Methodtrain
(self)
trainer/sft_ic.py:260
Methodvalidate
( self, noisy_image_or_video: torch.Tensor, **conditional_dict, )
pipelines/self_forcing_wan22_ic_training.py:252
Functionzero_module
(module)
backbones/wan22/modules/model.py:14
← previous201–300 of 300, ranked by callers