MCPcopy Create free account

hub / github.com/QuanjianSong/FashionChameleon / functions

Functions300 in github.com/QuanjianSong/FashionChameleon

↓ 16 callersMethodencode_to_latent
(self, pixel: torch.Tensor)
backbones/wan_wrapper.py:87
↓ 16 callersMethodupdate
(self, fsdp_module)
utils/distributed.py:107
↓ 13 callersMethodload_state_dict
(self, sd)
utils/distributed.py:115
↓ 11 callersMethod__init__
( self, in_channels: int, out_channels: int, factor_t, factor_s=1,
backbones/wan22/modules/vae2_2.py:364
↓ 9 callersMethodadd_noise
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [B, C, H, W] - noise
utils/scheduler.py:12
↓ 9 callersMethoddecode_to_pixel
(self, latent: torch.Tensor, use_cache: bool = False)
backbones/wan_wrapper.py:104
↓ 8 callersMethod__init__
(self, vocab_size, dim, dim_attn, dim_ffn,
backbones/wan22/modules/t5.py:374
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
utils/fm_solvers_unipc.py:269
↓ 8 callersFunctionfsdp_wrap
(module, sharding_strategy="full", mixed_precision=False, wrap_strategy="size", min_num_params=int(5e7), trans
utils/distributed.py:23
↓ 7 callersMethod__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
backbones/wan22/modules/vae2_1.py:484
↓ 7 callersMethodstep
(self, model_output, timestep, sample, to_final=False)
utils/scheduler.py:142
↓ 6 callersMethodget_scheduler
Update the current scheduler with the interface's static method
backbones/wan_wrapper.py:298
↓ 6 callersFunctionhalf
(x)
backbones/wan22/modules/attention.py:59
↓ 6 callersFunctionrope_apply
(x, grid_sizes, freqs)
backbones/wan22/modules/model.py:46
↓ 6 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
backbones/wan22/modules/model.py:34
↓ 5 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
backbones/wan22/modules/model.py:277
↓ 5 callersFunctionflash_attention
q: [B, Lq, Nq, C1]. k: [B, Lk, Nk, C1]. v: [B, Lk, Nk, C2]. Nq must be divisible by Nk. q_lens
backbones/wan22/modules/attention.py:24
↓ 5 callersFunctionfp16_clamp
(x)
backbones/wan22/modules/t5.py:20
↓ 4 callersMethodclear_cache
(self)
backbones/wan22/modules/vae2_2.py:839
↓ 4 callersMethodclear_cache
(self)
backbones/wan22/modules/vae2_1.py:581
↓ 4 callersMethoddevice
(self)
backbones/wan_wrapper.py:34
↓ 4 callersMethodenable_gradient_checkpointing
(self)
backbones/wan_wrapper.py:167
↓ 4 callersMethodencode
(self, x, scale)
backbones/wan22/modules/vae2_2.py:769
↓ 4 callersFunctionfsdp_state_dict
(model)
utils/distributed.py:11
↓ 4 callersFunctionsinusoidal_embedding_1d
(dim, position)
backbones/wan22/modules/model.py:19
↓ 3 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
backbones/wan22/modules/causal_model.py:410
↓ 3 callersFunctionbasic_clean
(text)
backbones/wan22/modules/tokenizers.py:12
↓ 3 callersFunctioncycle
(dl)
datasets/util.py:3
↓ 3 callersMethodencode
(self, x, scale)
backbones/wan22/modules/vae2_1.py:515
↓ 3 callersMethodgenerator_loss
(self, clean_latent: torch.Tensor, conditional_dict: dict)
models/diffusion_ic.py:64
↓ 3 callersFunctionlaunch_distributed_job
(backend: str = "nccl")
utils/distributed.py:71
↓ 3 callersFunctionset_seed
Helper function for reproducible behavior to set the seed in `random`, `numpy`, `torch`. Args: seed (`int`): The seed to
utils/util.py:6
↓ 2 callersMethod__init__
(self, model_name="./checkpoints/wan_models/Wan2.2-TI2V-5B")
backbones/wan_wrapper.py:55
↓ 2 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
trainer/distill_ic.py:123
↓ 2 callersMethod_get_closest_ratio
(self, idx)
datasets/fashion_dataset.py:108
↓ 2 callersMethod_get_timestep
Randomly generate a timestep tensor based on the generator's task type. It uniformly samples a timestep from the range [min_timestep,
models/gr_dmd_ic.py:39
↓ 2 callersMethod_initialize_crossattn_cache
Initialize a Per-GPU cross-attention cache for the Wan model.
pipelines/self_forcing_wan22_ic_training.py:430
↓ 2 callersMethod_initialize_inference_pipeline
Lazy initialize the inference pipeline during the first backward simulation run. Here we encapsulate the inference code with a model-
models/base.py:160
↓ 2 callersMethod_initialize_kv_cache
Initialize a Per-GPU KV cache for the Wan model.
pipelines/self_forcing_wan22_ic_training.py:403
↓ 2 callersMethod_run_generator
Optionally simulate the generator's input from noise using backward simulation and then run the generator for one-step. Input
models/base.py:86
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
utils/fm_solvers_unipc.py:227
↓ 2 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
backbones/wan22/modules/vae2_1.py:591
↓ 2 callersFunctioncausal_rope_apply
(x, grid_sizes, freqs, start_frame=0)
backbones/wan22/modules/causal_model.py:26
↓ 2 callersFunctioncount_conv3d
(model)
backbones/wan22/modules/vae2_2.py:713
↓ 2 callersFunctioncount_conv3d
(model)
backbones/wan22/modules/vae2_1.py:474
↓ 2 callersMethoddecode
(self, z, scale)
backbones/wan22/modules/vae2_2.py:798
↓ 2 callersMethoddecode
(self, z, scale)
backbones/wan22/modules/vae2_1.py:543
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
backbones/wan22/modules/vae2_2.py:382
↓ 2 callersMethodforward
(self, x)
backbones/wan22/modules/vae2_1.py:509
↓ 2 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, L1, C]
backbones/wan22/modules/model.py:292
↓ 2 callersMethodfwdbwd_one_step
(self, train_generator)
trainer/distill_ic.py:264
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
utils/fm_solvers_unipc.py:625
↓ 2 callersMethodset_timesteps
(self, num_inference_steps=100, denoising_strength=1.0, training=False)
utils/scheduler.py:117
↓ 2 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
utils/fm_solvers_unipc.py:157
↓ 2 callersMethodstate_dict
(self)
utils/distributed.py:112
↓ 2 callersMethodtraining_target
(self, sample, noise, timestep)
utils/scheduler.py:178
↓ 2 callersMethodtraining_weight
Input: - timestep: the timestep with shape [B*T] Output: the corresponding weighting [B*T]
utils/scheduler.py:182
↓ 2 callersFunctionumt5_xxl
(**kwargs)
backbones/wan22/modules/t5.py:456
↓ 2 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
backbones/wan22/modules/causal_model.py:1097
↓ 2 callersFunctionwhitespace_clean
(text)
backbones/wan22/modules/tokenizers.py:18
↓ 1 callersMethod__init__
(self)
utils/aesthetic_scorer.py:8
↓ 1 callersMethod_build_bucket_indexs
(self)
datasets/fashion_dataset.py:96
↓ 1 callersMethod_clean
(self, text)
backbones/wan22/modules/tokenizers.py:75
↓ 1 callersMethod_compute_kl_grad
Compute the KL grad (eq 7 in https://arxiv.org/abs/2311.18828). Input: - noisy_image_or_video: a tensor with shape [B, F,
models/gr_dmd_ic.py:89
↓ 1 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
pipelines/causal_wan22_ic_inference.py:61
↓ 1 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
pipelines/stream_wan22_ic_inference.py:60
↓ 1 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
pipelines/wan22_ic_inference.py:36
↓ 1 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
trainer/sft_ic.py:79
↓ 1 callersMethod_configure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model
trainer/tf_ic.py:78
↓ 1 callersMethod_consistency_backward_simulation
Simulate the generator's input from noise to avoid training/inference mismatch. See Sec 4.5 of the DMD2 paper (https://arxiv.org/abs/
models/base.py:136
↓ 1 callersMethod_convert_flow_pred_to_x0
Convert flow matching's prediction to x0 prediction. flow_pred: the prediction with shape [B, C, H, W] xt: the input noisy da
backbones/wan_wrapper.py:170
↓ 1 callersMethod_forward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
backbones/wan22/modules/model.py:435
↓ 1 callersMethod_forward_inference
r""" Run the diffusion model with kv caching. See Algorithm 2 of CausVid paper https://arxiv.org/abs/2412.07772 for details. T
backbones/wan22/modules/causal_model.py:811
↓ 1 callersMethod_forward_train
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
backbones/wan22/modules/causal_model.py:939
↓ 1 callersMethod_get_timestep
Randomly generate a timestep tensor based on the generator's task type. It uniformly samples a timestep from the range [min_timestep,
models/teacher_forcing_ic.py:63
↓ 1 callersMethod_init_shadow
(self, fsdp_module)
utils/distributed.py:101
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
utils/fm_solvers_unipc.py:640
↓ 1 callersMethod_initialize_crossattn_cache
Initialize a Per-GPU cross-attention cache for the Wan model.
pipelines/causal_wan22_ic_inference.py:344
↓ 1 callersMethod_initialize_crossattn_cache
Initialize a Per-GPU cross-attention cache for the Wan model.
pipelines/stream_wan22_ic_inference.py:286
↓ 1 callersMethod_initialize_kv_cache
Initialize a Per-GPU KV cache for the Wan model.
pipelines/causal_wan22_ic_inference.py:303
↓ 1 callersMethod_initialize_kv_cache
Initialize a Per-GPU KV cache for the Wan model.
pipelines/stream_wan22_ic_inference.py:259
↓ 1 callersMethod_initialize_models
(self)
models/base.py:34
↓ 1 callersMethod_initialize_models
(self)
models/teacher_forcing_ic.py:36
↓ 1 callersMethod_initialize_models
(self)
models/diffusion_ic.py:36
↓ 1 callersMethod_initialize_sample_scheduler
(self, noise)
pipelines/causal_wan22_ic_inference.py:292
↓ 1 callersMethod_initialize_sample_scheduler
(self, noise)
pipelines/wan22_ic_inference.py:130
↓ 1 callersMethod_norm
(self, x)
backbones/wan22/modules/model.py:99
↓ 1 callersMethod_prepare_in_context_teacher_forcing_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:716
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
backbones/wan22/modules/t5.py:245
↓ 1 callersFunction_t5
(name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokeniz
backbones/wan22/modules/t5.py:415
↓ 1 callersFunction_video_vae_2_2
(pretrained_path=None, z_dim=16, dim=160, device="cpu", **kwargs)
backbones/wan22/modules/vae2_2.py:849
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
backbones/wan22/modules/tokenizers.py:24
↓ 1 callersMethodcausal_inference
( self, noisy_image_or_video, text_prompts, src_data=None, cloth_data=
pipelines/causal_wan22_ic_inference.py:100
↓ 1 callersMethodcomplete_fields
(self, data)
datasets/fashion_dataset.py:119
↓ 1 callersMethodcompute_distribution_matching_loss
Compute the DMD loss (eq 7 in https://arxiv.org/abs/2311.18828). Input: - image_or_video: a tensor with shape [B, F, C, H
models/gr_dmd_ic.py:178
↓ 1 callersMethodconfigure_dataloader
(self)
trainer/distill_ic.py:204
↓ 1 callersMethodconfigure_dataloader
(self)
trainer/sft_ic.py:163
↓ 1 callersMethodconfigure_dataloader
(self)
trainer/tf_ic.py:151
↓ 1 callersMethodconfigure_logger
(self)
trainer/distill_ic.py:165
↓ 1 callersMethodconfigure_logger
(self)
trainer/sft_ic.py:120
next →1–100 of 300, ranked by callers