MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:171
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:220
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:323
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:365
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:415
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:464
↓ 1 callersMethodact_quant_int8_perchannel_sym_iluvatar
(self, x)
lightx2v_platform/ops/mm/iluvatar_cuda/mm_weight.py:83
↓ 1 callersMethodaction_with_video_cache
(self, weights, action_pre, video_kv_cache, video_seq_len, attention_mask)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:96
↓ 1 callersMethodadaLN_modulation
(self, weights, c)
lightx2v/models/networks/hunyuan_video/infer/pre_infer.py:214
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
lightx2v/models/video_encoders/hf/seedvr/color_fix.py:56
↓ 1 callersMethodadd_dual_lora
( self, rank, alpha, target_modules, student_adapter="student",
lightx2v_train/lightx2v_train/model_zoo/base.py:42
↓ 1 callersMethodadd_instance
Add instance address to the matching scheduling policy by type.
lightx2v/disagg/services/controller.py:1844
↓ 1 callersMethodadd_lora
(self, rank, alpha, target_modules)
lightx2v_train/lightx2v_train/model_zoo/base.py:33
↓ 1 callersMethodadd_mask
Add mask to frames
lightx2v/models/runners/wan/wan_audio_runner.py:166
↓ 1 callersMethodadd_noise
Add noise to frames
lightx2v/models/runners/wan/wan_audio_runner.py:148
↓ 1 callersMethodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
lightx2v/models/schedulers/hidream_o1_image/fm_solvers_unipc.py:700
↓ 1 callersMethodadd_noise
(self, original_samples, noise, timesteps)
lightx2v/models/schedulers/wan/infinitetalk/scheduler.py:68
↓ 1 callersMethodadd_noise
(self, original_samples, noise, timesteps)
lightx2v/models/schedulers/wan/changing_resolution/scheduler.py:95
↓ 1 callersMethodadd_noise_to_lq
(self, lq_latents, strength=0.7)
lightx2v/models/schedulers/hunyuan_video/scheduler.py:212
↓ 1 callersFunctionadd_outer_border_keep_size
Draw a border inside the image without changing its size.
lightx2v/models/networks/hidream_o1_image/utils.py:190
↓ 1 callersFunctionadd_python_path
(path)
lightx2v_ros/src/simulator/simulator/libero_node/observer.py:12
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
lightx2v/models/networks/worldmirror/models/layers/block.py:149
↓ 1 callersFunctionadd_special_token
Add special tokens for color and font to tokenizer and text encoder. Args: tokenizer: Huggingface tokenizer. text_encoder: H
lightx2v/models/input_encoders/hf/hunyuan15/byt5/model.py:21
↓ 1 callersFunctionadd_special_tokens
(tokenizer)
lightx2v/models/networks/bagel/data_utils.py:128
↓ 1 callersMethodafter_patch_embedding
(self, weights, x, pose_latents, face_pixel_values)
lightx2v/models/networks/wan/infer/animate/pre_infer.py:20
↓ 1 callersFunctionalign_hidden_states_and_mask
(n_query_tokens, hidden_states, person_mask_latens)
lightx2v/models/input_encoders/hf/seko_audio/audio_adapter.py:89
↓ 1 callersFunctionall_gather
(tensor, gather_dim, cur_group, async_op)
lightx2v/models/networks/worldmirror/comm/communication.py:22
↓ 1 callersFunctionall_tiles
(first_chunk: torch.Tensor, tiles_generator: Generator[tuple[torch.Tensor, int], None, None])
lightx2v/utils/ltx2_media_io.py:209
↓ 1 callersMethodalloc_memory
(self, request: AllocationRequest)
lightx2v/disagg/services/decoder.py:178
↓ 1 callersMethodalloc_memory
Args: request: AllocationRequest containing precomputed buffer sizes. Returns: MemoryHandle with RDMA-regist
lightx2v/disagg/services/transformer.py:512
↓ 1 callersMethodalloc_memory
Args: request: AllocationRequest containing precomputed buffer sizes. Returns: MemoryHandle with RDMA-regist
lightx2v/disagg/services/encoder.py:489
↓ 1 callersFunctionanalyze_trace_events
(events: Sequence[dict])
tools/profile/analyze_torch_trace_gap.py:142
↓ 1 callersFunctionanalyze_trace_file
(path: Path)
tools/profile/analyze_torch_trace_gap.py:188
↓ 1 callersFunctionangle_diff_vec3_numpy
Compute angle difference between 3D vectors using NumPy. Args: v1 (np.ndarray): First vector of shape (..., 3) v2 (np.ndarra
lightx2v/models/networks/worldmirror/utils/geometry.py:43
↓ 1 callersMethodapply
执行 Ulysses 注意力机制,结合图像和文本的查询、键和值。 参数: q (torch.Tensor): 查询张量,形状为 [shard_seqlen, q_heads, hidden_dims]。
lightx2v/common/ops/attn/ulysses_attn.py:25
↓ 1 callersMethodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/svg2_attn.py:190
↓ 1 callersFunctionapply_2d_rotary_pos_emb
应用2D RoPE到输入张量x。
lightx2v/models/networks/neopp/infer/pre_infer.py:75
↓ 1 callersMethodapply_adaptive_modulation
Apply adaptive modulation to input tensor using scaling and shifting parameters
lightx2v/models/networks/worldmirror/models/heads/camera_head.py:175
↓ 1 callersFunctionapply_audio_cache_rope
( x: torch.Tensor, freqs: torch.Tensor, *, h: int, w: int, token_start: int, ref_t
lightx2v/models/networks/wan/infer/triton_ops.py:410
↓ 1 callersMethodapply_bf16_cast
Cast non-critical fp32 params/buffers to bf16 on both containers.
lightx2v/models/networks/worldmirror/model.py:1010
↓ 1 callersMethodapply_camera_parameter_activation
Apply activation functions to camera parameter components Args: params: Tensor containing camera parameters [translation
lightx2v/models/networks/worldmirror/models/heads/camera_head.py:120
↓ 1 callersFunctionapply_causal_audio_encoder
( encoder_weights, features, num_heads, enable_adain, audio_dim=1024, out_dim=5120,
lightx2v/models/networks/wan/infer/s2v/causal_audio_encoder.py:51
↓ 1 callersMethodapply_confidence_filter
Apply confidence filtering to Gaussian splats before pruning. Discard bottom p% confidence points, keep top (100-p)%. Args:
lightx2v/models/networks/worldmirror/models/models/rasterization.py:278
↓ 1 callersFunctionapply_ddp
(model, config)
lightx2v_train/lightx2v_train/runtime/ddp.py:93
↓ 1 callersMethodapply_disagg_request_overrides
Mirror flat disagg request fields into ``disagg_config`` in disagg mode only.
lightx2v/models/runners/base_runner.py:60
↓ 1 callersFunctionapply_fix
()
tools/postprocess/torchvision_fix.py:72
↓ 1 callersFunctionapply_fix
Apply the torchvision compatibility fix
lightx2v/models/networks/hunyuan3d/utils/torchvision_fix.py:95
↓ 1 callersFunctionapply_fls_enhancement
( latents: torch.Tensor, noise_pred: torch.Tensor, step: int, total_steps: int, state: FLS
lightx2v/models/schedulers/fls_enhance.py:226
↓ 1 callersFunctionapply_framepack_motion
(frame_packer, motion_latents, freqs, num_heads, inner_dim, add_last_motion, drop_mode)
lightx2v/models/networks/wan/infer/s2v/framepack.py:6
↓ 1 callersMethodapply_input_encoder
(self, state_tokens, action_tokens)
lightx2v/models/networks/wan/weights/motus/pre_weights.py:135
↓ 1 callersFunctionapply_interleaved_mrope
(freqs, rope_axes_dim)
lightx2v/models/networks/cosmos3/infer/utils.py:185
↓ 1 callersMethodapply_interleaved_mrope
(self, freqs, mrope_section)
lightx2v/models/networks/hidream_o1_image/qwen3_vl.py:41
↓ 1 callersFunctionapply_interleaved_rotary_emb
(input_tensor: torch.Tensor, cos_freqs: torch.Tensor, sin_freqs: torch.Tensor)
lightx2v/models/networks/ltx2/infer/utils.py:86
↓ 1 callersFunctionapply_interleaved_rotary_emb
(input_tensor: torch.Tensor, cos_freqs: torch.Tensor, sin_freqs: torch.Tensor)
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:29
↓ 1 callersMethodapply_inverse_logarithm_transform
Apply inverse logarithm transform: sign(y) * (exp(|y|) - 1) Args: x: Input tensor Returns: Transfor
lightx2v/models/networks/worldmirror/models/heads/camera_head.py:163
↓ 1 callersFunctionapply_inverse_permutation_triton
Triton implementation of inverse permutation. Inverse the permutation applied by `permute_tensor_by_labels`. Args: permuted_tensor:
lightx2v/common/ops/attn/svg2_attn.py:136
↓ 1 callersMethodapply_lora
Apply LoRA weights to text encoder's feature extractor. Args: lora_configs: List of LoRA configuration dicts, each conta
lightx2v/models/input_encoders/hf/ltx2/model.py:187
↓ 1 callersFunctionapply_model_with_memblocks
Apply a sequential model with memblocks to the given input. Args: - model: nn.Sequential of blocks to apply - x: input data, of dimen
lightx2v/models/runners/vsr/utils/TCDecoder.py:102
↓ 1 callersMethodapply_output
(self, action_tokens, time_emb)
lightx2v/models/networks/motus/model.py:116
↓ 1 callersMethodapply_output_head
(self, video_tokens, video_time_emb, grid_sizes)
lightx2v/models/networks/motus/model.py:89
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids=None, unsqueeze_dim=1)
lightx2v/models/networks/hidream_o1_image/qwen3_vl.py:76
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
lightx2v/models/networks/bagel/infer/transformer_infer.py:28
↓ 1 callersFunctionapply_rotary_pos_emb_vision
(q, k, cos, sin)
lightx2v/models/networks/hidream_o1_image/infer/vision_infer.py:11
↓ 1 callersFunctionapply_scheduler_fls_enhancement
( scheduler, latents: torch.Tensor, noise_pred: torch.Tensor, *, layout: str, height:
lightx2v/models/schedulers/fls_enhance.py:275
↓ 1 callersFunctionapply_split_rotary_emb
(input_tensor: torch.Tensor, cos_freqs: torch.Tensor, sin_freqs: torch.Tensor)
lightx2v/models/networks/ltx2/infer/utils.py:97
↓ 1 callersFunctionapply_split_rotary_emb
(input_tensor: torch.Tensor, cos_freqs: torch.Tensor, sin_freqs: torch.Tensor)
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:40
↓ 1 callersFunctionapply_timesteps_embedding
(timesteps, num_channels, downscale_freq_shift=0.0, scale=1, max_period=10000)
lightx2v/models/networks/hunyuan3d/infer/utils.py:6
↓ 1 callersMethodapply_to_key
Apply the mapping to the given name.
lightx2v/utils/ltx2_utils.py:101
↓ 1 callersMethodapply_to_key_value
Apply the value operation to the given name and associated value.
lightx2v/utils/ltx2_utils.py:115
↓ 1 callersFunctionarray_to_video
( image_array: np.ndarray, output_path: str, fps: Union[int, float] = 30, resolution: Optional
lightx2v/shot_runner/utils.py:87
↓ 1 callersMethodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:175
↓ 1 callersFunctionassert_close_enough
(actual, expected)
lightx2v_kernel/test/mxfp8_mxfp8/bench_fused_ffn.py:50
↓ 1 callersFunctionassert_schedule_timesteps_compatible
(schedule, timesteps)
lightx2v/models/schedulers/seedvr/utils.py:27
↓ 1 callersFunctionattention
Perform QKV self attention. Args: q (torch.Tensor): Query tensor with shape [b, s, a, d], where a is the number of heads. k
lightx2v/models/input_encoders/hf/animate/face_encoder.py:30
↓ 1 callersFunctionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0.0, softmax_scale=None, q_scal
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/attention.py:133
↓ 1 callersMethodattention
(self, h_: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:50
↓ 1 callersMethodattention_percentile_mask_headwise
Build a mask per head so that each head keeps its top-r fraction of entries as True. Args: attn_map: Tensor of shape [H, S,
lightx2v/common/ops/attn/draft_attn.py:166
↓ 1 callersFunctionattn_video_vae_v3_s8_c16_t4_inflation_sd3_init
Example: initialize VideoAutoencoderKLWrapper with SD3 inflation config params.
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1645
↓ 1 callersMethodbackward
(self, x)
lightx2v/models/runners/wan/fastwam_runner.py:45
↓ 1 callersMethodbackward
(ctx: Any, grad_output: Tensor)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:124
↓ 1 callersMethodbasic_forward
(self, input: Tensor, memory_state: MemoryState = MemoryState.UNSET)
lightx2v/models/video_encoders/hf/seedvr/causal_inflation_lib.py:162
↓ 1 callersMethodbefore_control
(self)
lightx2v/utils/va_controller.py:169
↓ 1 callersFunctionbench
( M: int, N: int, K: int, label: str, dtype: torch.dtype = torch.float16, iters: int =
lightx2v_kernel_xpu/test/test_fp8.py:137
↓ 1 callersFunctionbenchmark_cuda
(fn, warmup=10, repeat=100)
lightx2v_kernel/test/kvcache/test_nvfp4_kv.py:63
↓ 1 callersFunctionbenchmark_wall
(fn, warmup=2, repeat=5)
lightx2v_kernel/test/kvcache/test_nvfp4_kv.py:77
↓ 1 callersFunctionbest_output_size
(w, h, dw, dh, expected_area)
lightx2v/utils/utils.py:596
↓ 1 callersFunctionblocked_scale_index
(row: int, scale_col: int, scale_cols: int)
lightx2v_kernel/test/kvcache/test_nvfp4_kv.py:29
↓ 1 callersFunctionbox_convert_simple
(box, convert_type="xyxy2xywh")
tools/preprocess/pose2d_utils.py:10
↓ 1 callersMethodbpe
(self, token)
lightx2v/models/networks/bagel/tokenization_qwen2.py:186
↓ 1 callersMethodbraodcast_audio_data
(self, audio_data)
lightx2v/utils/va_reader_omni.py:375
↓ 1 callersMethodbraodcast_audio_data
(self, audio_data)
lightx2v/utils/va_reader.py:174
↓ 1 callersMethodbraodcast_valid_duration
(self, valid_duration)
lightx2v/utils/va_reader_omni.py:394
↓ 1 callersFunctionbreak_fp4_bytes
(a, dtype)
lightx2v_kernel/test/nvfp4_nvfp4/test_bench1.py:41
↓ 1 callersMethodbuffer_stream
(self, images: torch.Tensor, audios: torch.Tensor, gen_video: torch.Tensor, valid_duration=1e9)
lightx2v/utils/va_recorder.py:418
↓ 1 callersFunctionbuild_abs_positions_from_grid_hw
Compute patch coordinates (x, y) Args: grid_hw: (B, 2) tensor representing (H, W) per image
lightx2v/models/networks/neopp/infer/pre_infer.py:18
↓ 1 callersFunctionbuild_action_expert_config
(config)
lightx2v/models/networks/wan/weights/motus/pre_weights.py:46
↓ 1 callersMethodbuild_bucket_map
(self, lr_base_size, hr_base_size, lr_patch_size, hr_patch_size)
lightx2v/models/runners/hunyuan_video/hunyuan_video_15_runner.py:378
↓ 1 callersMethodbuild_cond_latents
(self, height, width)
lightx2v/models/runners/wan/wan_s2v_runner.py:108
↓ 1 callersFunctionbuild_config
(args)
examples/worldmirror/run_worldmirror.py:121
↓ 1 callersFunctionbuild_downsampling_path
Build the downsampling path with residual blocks, attention, and downsampling layers.
lightx2v/models/video_encoders/hf/ltx2/audio_vae/downsample.py:60
← previousnext →3,201–3,300 of 8,429, ranked by callers