MCPcopy Create free account

hub / github.com/AlayaLab/AlayaRenderer / functions

Functions1,613 in github.com/AlayaLab/AlayaRenderer

↓ 2 callersMethodonload
(self)
game_editing/diffsynth/core/vram/layers.py:76
↓ 2 callersMethodparam_name
(self, name)
game_editing/diffsynth/core/vram/layers.py:81
↓ 2 callersMethodparse_vram_config
(self, fp8=False, offload=False, device="cpu")
game_editing/diffsynth/diffusion/training_module.py:87
↓ 2 callersMethodpatchify
Flattens the audio latent tensor along time. Use `get_patch_grid_bounds` to derive timestamps for each latent frame based on the conf
game_editing/diffsynth/models/ltx2_audio_vae.py:123
↓ 2 callersMethodpatchify
(self, x: torch.Tensor)
game_editing/diffsynth/models/wan_video_dit_s2v.py:424
↓ 2 callersMethodpatchify
(self, hidden_states)
game_editing/diffsynth/models/flux_controlnet.py:99
↓ 2 callersMethodpatchify_and_embed
( self, all_image: List[torch.Tensor], all_cap_feats: List[torch.Tensor], patc
game_editing/diffsynth/models/z_image_dit.py:511
↓ 2 callersMethodprocess_audio
(self, pipe: WanVideoPipeline, input_audio, audio_sample_rate, num_frames, fps=16, audio_embeds=None, return_a
game_editing/diffsynth/pipelines/wan_video.py:820
↓ 2 callersMethodprocess_entity_masks
(self, hidden_states, prompt_emb, entity_prompt_emb, entity_masks, text_ids, image_ids, repeat_dim)
game_editing/diffsynth/models/flux_dit.py:358
↓ 2 callersMethodprocess_pose_cond
(self, pipe: WanVideoPipeline, s2v_pose_video, num_frames, height, width, tiled, tile_size, tile_stride, s2v_p
game_editing/diffsynth/pipelines/wan_video.py:845
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
game_editing/diffsynth/models/nexus_gen_projector.py:93
↓ 2 callersFunctionrope_apply
(x, freqs, num_heads)
game_editing/diffsynth/utils/xfuser/xdit_context_parallel.py:48
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
game_editing/diffsynth/models/nexus_gen_projector.py:8
↓ 2 callersFunctionrotate_half
(x)
game_editing/diffsynth/models/longcat_video_dit.py:49
↓ 2 callersMethodrun
(self, model_fn, sliding_window_size, sliding_window_stride, computation_device, computation_dtype, model_kwar
game_editing/diffsynth/pipelines/wan_video.py:1096
↓ 2 callersFunctionrun_mid_block
Run features through the middle block.
game_editing/diffsynth/models/ltx2_audio_vae.py:809
↓ 2 callersMethodsave_model
(self, accelerator: Accelerator, model: torch.nn.Module, file_name)
game_editing/diffsynth/diffusion/logger.py:35
↓ 2 callersFunctionsave_video
(frames, save_path, fps, quality=9, ffmpeg_params=None)
game_editing/diffsynth/utils/data/__init__.py:140
↓ 2 callersMethodset_dtype_and_device
( self, offload_dtype: torch.dtype = None, offload_device: Union[str, torch.device] =
game_editing/diffsynth/core/vram/layers.py:38
↓ 2 callersFunctionsplit_in_spatial
(size: int, overlap: int)
game_editing/diffsynth/models/ltx2_video_vae.py:2248
↓ 2 callersMethodstate_dict_converter
()
game_editing/diffsynth/models/wan_video_vae.py:1251
↓ 2 callersMethodtile
(self, model_input, tile_size, tile_stride, tile_device, tile_dtype)
game_editing/diffsynth/models/flux_vae.py:20
↓ 2 callersMethodtiled_decode
Decode a latent tensor into video frames using tiled processing. Splits the latent tensor into tiles, decodes each tile individually,
game_editing/diffsynth/models/ltx2_video_vae.py:2017
↓ 2 callersMethodtiled_forward
(self, forward_fn, model_input, tile_size, tile_stride, tile_batch_size=1, tile_device="cpu", tile_dtype=torch
game_editing/diffsynth/models/flux_vae.py:83
↓ 2 callersFunctionto_mapping_operation
( map_func: Callable[[int, int, int, int, int], Tuple[slice, torch.Tensor]], scale: int, )
game_editing/diffsynth/models/ltx2_video_vae.py:2280
↓ 2 callersFunctiontorch_sdpa
(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, q_pattern="b n s d", k_pattern="b n s d", v_pattern="b n s
game_editing/diffsynth/core/attention/attention.py:66
↓ 2 callersMethodtraining_weight
(self, timestep)
game_editing/diffsynth/diffusion/flow_match.py:233
↓ 2 callersMethodunpatchify
Restores the `(B, C, T, F)` spectrogram tensor from flattened patches. Use `get_patch_grid_bounds` to recompute the timestamps that d
game_editing/diffsynth/models/ltx2_audio_vae.py:144
↓ 2 callersFunctionwhitespace_clean
(text)
game_editing/diffsynth/models/wan_video_text_encoder.py:266
↓ 1 callersFunctionFeedForward
(dim, mult=4)
game_editing/diffsynth/models/flux_infiniteyou.py:7
↓ 1 callersMethod__getattr__
(self, name)
game_editing/diffsynth/core/vram/layers.py:200
↓ 1 callersMethod__init__
( self, seperate_cfg: bool = False, take_over: bool = False, input_params: tup
game_editing/diffsynth/diffusion/base_pipeline.py:15
↓ 1 callersMethod__init__
(self, *, dim, dim_head=64, heads=8)
game_editing/diffsynth/models/flux_infiniteyou.py:30
↓ 1 callersMethod__init__
(self, encoders=())
game_editing/diffsynth/models/flux_value_control.py:6
↓ 1 callersMethod__init__
(self, dim: int = 3072)
game_editing/diffsynth/models/qwen_image_controlnet.py:8
↓ 1 callersMethod__init__
( self, vace_layers=(0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28), vace_in_d
game_editing/diffsynth/models/wan_video_vace.py:28
↓ 1 callersMethod__init__
(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs)
game_editing/diffsynth/models/nexus_gen_ar_model.py:970
↓ 1 callersMethod__init__
(self)
game_editing/diffsynth/models/siglip2_image_encoder.py:9
↓ 1 callersMethod__init__
( self, control_layers_places=(0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28),
game_editing/diffsynth/models/z_image_controlnet.py:42
↓ 1 callersMethod__rshift__
(self, pipe)
game_editing/diffsynth/core/data/operators.py:15
↓ 1 callersMethod_accumulate_temporal_group_into_buffer
Decode and accumulate all tiles of a temporal group into a local buffer. The buffer is local to the group and always starts at time 0
game_editing/diffsynth/models/ltx2_video_vae.py:2131
↓ 1 callersMethod_adjust_output_shape
Adjust output shape to match target dimensions for variable-length audio. This function handles the common case where decoded audio s
game_editing/diffsynth/models/ltx2_audio_vae.py:1155
↓ 1 callersMethod_build_unified_sequence
Build unified sequence: x, cap, and optionally siglip. Basic mode order: [x, cap]; Omni mode order: [cap, x, siglip]
game_editing/diffsynth/models/z_image_dit.py:725
↓ 1 callersMethod_clean
(self, text)
game_editing/diffsynth/models/wan_video_text_encoder.py:323
↓ 1 callersFunction_clip
(pretrained=False, pretrained_name=None, model_cls=CLIP, return_transforms=False
game_editing/diffsynth/models/wan_video_image_encoder.py:738
↓ 1 callersMethod_compute_audio_timings
Builds a `(B, 1, T, 2)` tensor containing timestamps for each latent frame. This helper method underpins `get_patch_grid_bounds` for
game_editing/diffsynth/models/ltx2_audio_vae.py:87
↓ 1 callersMethod_compute_condition_freqs
(self, frame, height, width)
game_editing/diffsynth/models/qwen_image_dit.py:324
↓ 1 callersMethod_compute_video_freqs
(self, frame, height, width, idx=0)
game_editing/diffsynth/models/qwen_image_dit.py:305
↓ 1 callersMethod_convert_to_additive_mask
(self, attention_mask: torch.Tensor, dtype: torch.dtype)
game_editing/diffsynth/pipelines/ltx2_audio_video.py:294
↓ 1 callersMethod_create_multi_lora_forward
(self, module, loras)
game_editing/diffsynth/models/longcat_video_dit.py:720
↓ 1 callersMethod_denormalize_latents
(self, sample: torch.Tensor)
game_editing/diffsynth/models/ltx2_audio_vae.py:1130
↓ 1 callersMethod_detect_face
(self, id_image_cv2)
game_editing/diffsynth/pipelines/flux_image.py:812
↓ 1 callersMethod_dynamic_frequency_update
dynamic RoPE layers should recompute `inv_freq` in the following situations: 1 - growing beyond the cached sequence length (allow sca
game_editing/diffsynth/models/nexus_gen_projector.py:49
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
game_editing/diffsynth/models/ltx2_audio_vae.py:974
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
game_editing/diffsynth/models/ltx2_audio_vae.py:1215
↓ 1 callersMethod_forward
Forward pass for LTX models. Returns: Processed output tensors
game_editing/diffsynth/models/ltx2_dit.py:1400
↓ 1 callersMethod_forward_silu_gating
(self, x1, x3)
game_editing/diffsynth/models/z_image_dit.py:67
↓ 1 callersMethod_get_image_nums_and_video_nums
Get the number of images and videos for each sample to calculate the separation length of the sample tensor. These parameters are not
game_editing/diffsynth/models/nexus_gen_ar_model.py:809
↓ 1 callersMethod_get_module_by_name
(self, module_name)
game_editing/diffsynth/models/longcat_video_dit.py:737
↓ 1 callersFunction_get_projections
(attn: "Flux2Attention", hidden_states, encoder_hidden_states=None)
game_editing/diffsynth/models/flux2_dit.py:297
↓ 1 callersFunction_get_qkv_projections
(attn: "Flux2Attention", hidden_states, encoder_hidden_states=None)
game_editing/diffsynth/models/flux2_dit.py:321
↓ 1 callersMethod_group_tiles_by_temporal_slice
Group tiles by their temporal output slice.
game_editing/diffsynth/models/ltx2_video_vae.py:2107
↓ 1 callersMethod_init_audio
Initialize audio-specific components.
game_editing/diffsynth/models/ltx2_dit.py:1173
↓ 1 callersMethod_init_audio_video
Initialize audio-video cross-attention components.
game_editing/diffsynth/models/ltx2_dit.py:1200
↓ 1 callersMethod_init_transformer_blocks
Initialize transformer blocks for LTX.
game_editing/diffsynth/models/ltx2_dit.py:1297
↓ 1 callersMethod_init_video
Initialize video-specific components.
game_editing/diffsynth/models/ltx2_dit.py:1149
↓ 1 callersFunction_make_decoder_block
( block_name: str, block_config: dict[str, Any], in_channels: int, convolution_dimensions: int
game_editing/diffsynth/models/ltx2_video_vae.py:1666
↓ 1 callersFunction_make_encoder_block
( block_name: str, block_config: dict[str, Any], in_channels: int, convolution_dimensions: int
game_editing/diffsynth/models/ltx2_video_vae.py:1191
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
game_editing/diffsynth/models/step1x_connector.py:216
↓ 1 callersMethod_norm
(self, x)
game_editing/diffsynth/models/longcat_video_dit.py:22
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
game_editing/diffsynth/models/wan_video_animate_adapter.py:145
↓ 1 callersMethod_norm_and_concat_padded_batch
Normalize and flatten multi-layer hidden states, respecting padding. Performs per-batch, per-layer normalization using masked mean and range,
game_editing/diffsynth/pipelines/ltx2_audio_video.py:317
↓ 1 callersMethod_normalize_latents
Normalize encoder latents using per-channel statistics. When the encoder is configured with ``double_z=True``, the final conv
game_editing/diffsynth/models/ltx2_audio_vae.py:979
↓ 1 callersMethod_patchify_image
Patchify a single image tensor: (C, F, H, W) -> (num_patches, patch_dim).
game_editing/diffsynth/models/z_image_dit.py:843
↓ 1 callersMethod_prepare_attention_mask
Prepare attention mask.
game_editing/diffsynth/models/ltx2_dit.py:619
↓ 1 callersFunction_prepare_audio_stream
Prepare the audio stream for writing.
game_editing/diffsynth/utils/data/media_io_ltx2.py:68
↓ 1 callersMethod_prepare_context
Prepare context for transformer blocks.
game_editing/diffsynth/models/ltx2_dit.py:606
↓ 1 callersMethod_prepare_cross_attention_timestep
Prepare cross attention timestep embeddings.
game_editing/diffsynth/models/ltx2_dit.py:749
↓ 1 callersMethod_prepare_tiles
( self, latent: torch.Tensor, tiling_config: TilingConfig | None = None, )
game_editing/diffsynth/models/ltx2_video_vae.py:1985
↓ 1 callersMethod_prepare_timestep
Prepare timestep embeddings.
game_editing/diffsynth/models/ltx2_dit.py:590
↓ 1 callersMethod_preprocess_text
Encode a given string into feature tensors suitable for downstream tasks. Args: text (str): Input string to encode.
game_editing/diffsynth/pipelines/ltx2_audio_video.py:382
↓ 1 callersMethod_process_transformer_blocks
Process transformer blocks for LTXAV.
game_editing/diffsynth/models/ltx2_dit.py:1350
↓ 1 callersFunction_rational_for_scale
(scale: float)
game_editing/diffsynth/models/ltx2_upsampler.py:142
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
game_editing/diffsynth/models/wan_video_text_encoder.py:174
↓ 1 callersMethod_replace_padded_with_learnable_registers
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor )
game_editing/diffsynth/models/ltx2_text_encoder.py:295
↓ 1 callersFunction_resample_audio
( container: av.container.Container, audio_stream: av.audio.AudioStream, frame_in: av.AudioFrame )
game_editing/diffsynth/utils/data/media_io_ltx2.py:12
↓ 1 callersMethod_run_connectors
(self, pipe, encoded_input: torch.Tensor, attention_mask: torch.Tensor)
game_editing/diffsynth/pipelines/ltx2_audio_video.py:298
↓ 1 callersMethod_run_downsampling_path
(self, h: torch.Tensor)
game_editing/diffsynth/models/ltx2_audio_vae.py:961
↓ 1 callersMethod_run_feature_extractor
(self, pipe, hidden_states: torch.Tensor,
game_editing/diffsynth/pipelines/ltx2_audio_video.py:367
↓ 1 callersMethod_run_upsampling_path
(self, h: torch.Tensor)
game_editing/diffsynth/models/ltx2_audio_vae.py:1202
↓ 1 callersMethod_tiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
game_editing/diffsynth/models/flux2_vae.py:2148
↓ 1 callersFunction_write_audio
( container: av.container.Container, audio_stream: av.audio.AudioStream, samples: torch.Tensor, audio_samp
game_editing/diffsynth/utils/data/media_io_ltx2.py:41
↓ 1 callersFunctionadd_dataset_base_config
(parser: argparse.ArgumentParser)
game_editing/diffsynth/diffusion/parsers.py:4
↓ 1 callersFunctionadd_gradient_config
(parser: argparse.ArgumentParser)
game_editing/diffsynth/diffusion/parsers.py:58
↓ 1 callersFunctionadd_lora_config
(parser: argparse.ArgumentParser)
game_editing/diffsynth/diffusion/parsers.py:49
↓ 1 callersMethodadd_lora_to_model
(self, model, target_modules, lora_rank, lora_alpha=None, upcast_dtype=None)
game_editing/diffsynth/diffusion/training_module.py:29
↓ 1 callersFunctionadd_model_config
(parser: argparse.ArgumentParser)
game_editing/diffsynth/diffusion/parsers.py:25
↓ 1 callersFunctionadd_output_config
(parser: argparse.ArgumentParser)
game_editing/diffsynth/diffusion/parsers.py:42
↓ 1 callersMethodadd_to_text_embedding
(self, prompt_emb, text_ids, value_emb)
game_editing/diffsynth/pipelines/flux_image.py:776
↓ 1 callersMethodadd_to_text_embedding
(self, prompt_emb, text_ids, lora_emb)
game_editing/diffsynth/pipelines/flux_image.py:881
← previousnext →201–300 of 1,613, ranked by callers