MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethod_make_aligned
(self, alignment: int = 32)
lightx2v/utils/ggml_tensor.py:130
↓ 1 callersFunction_make_decoder_block
( block_name: str, block_config: dict[str, Any], in_channels: int, convolution_dimensions: int
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:410
↓ 1 callersFunction_make_encoder_block
( block_name: str, block_config: dict[str, Any], in_channels: int, convolution_dimensions: int
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:130
↓ 1 callersMethod_make_event_tree
(self, shape: tuple[int, ...])
lightx2v/common/kvcache/rolling.py:187
↓ 1 callersFunction_make_parser
()
lightx2v/disagg/examples/run_controller.py:48
↓ 1 callersFunction_make_scratch
(in_shape: List[int], out_shape: int, groups: int = 1, expand: bool = False)
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:446
↓ 1 callersFunction_map_lightvae_key_to_wanvae
(key)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:36
↓ 1 callersMethod_match_noise_pred_to_latents
(self)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:282
↓ 1 callersMethod_materialize_self_attn_kv
(self, cache, block_idx, k, v, action_k=None, action_v=None)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:102
↓ 1 callersFunction_matrix_game3_combine_data
(data, num_frames=57, keyboard_dim=4, mouse=True)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:92
↓ 1 callersFunction_matrix_game3_create_meshgrid
(n_frames, height, width, bias=0.5, device="cuda", dtype=torch.float32)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:313
↓ 1 callersFunction_matrix_game3_interpolate_camera_poses
(src_indices, src_rot_mat, src_trans_vec, tgt_indices)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:258
↓ 1 callersMethod_maybe_freeze_gc
Move the steady-state object graph into the GC's permanent generation once.
lightx2v/models/runners/base_runner.py:41
↓ 1 callersMethod_maybe_wrap_service_command_with_nsys
( self, *, host: str, instance_type: str, engine_rank: int, in
lightx2v/disagg/services/controller.py:177
↓ 1 callersMethod_merge_and_save
(gen_video_list, cut_audio_list, target_fps, save_result_path)
lightx2v/shot_runner/rs2v_infer.py:139
↓ 1 callersMethod_merge_context
Merge context frame data with current chunk data. For BI model, context frames are concatenated with current frames and proc
lightx2v/models/networks/worldplay/bi_model.py:207
↓ 1 callersMethod_merge_dit_config
(model_path, config)
lightx2v/models/networks/hunyuan3d/model.py:48
↓ 1 callersFunction_merge_intervals
(intervals: Sequence[Interval])
tools/profile/analyze_torch_trace_gap.py:87
↓ 1 callersMethod_merge_pretrained_video_weights
(self, weight_dict)
lightx2v/models/networks/motus/model.py:370
↓ 1 callersFunction_merge_search_windows
Merge adjacent search windows to reduce disk seeks. Returns list of (start_idx, end_idx, target_indices) tuples.
lightx2v/models/networks/worldmirror/utils/video_utils.py:231
↓ 1 callersFunction_merge_wan_dense_defaults
(config)
lightx2v/models/runners/motus/motus_runner.py:23
↓ 1 callersMethod_mlp
(weights, hidden_states)
lightx2v/models/networks/ernie_image/infer/transformer_infer.py:45
↓ 1 callersMethod_modify_qp_to_rts
(self, qp, remote_info, local_psn)
lightx2v/disagg/rdma_server.py:217
↓ 1 callersMethod_modify_qp_to_rts
(self)
lightx2v/disagg/rdma_client.py:208
↓ 1 callersMethod_moe_route
(self, moe_w, hidden_states)
lightx2v/models/networks/neopp/infer/transformer_infer.py:379
↓ 1 callersMethod_monitor_node_from_instance_address
(self, instance_address: str)
lightx2v/disagg/services/controller.py:1195
↓ 1 callersFunction_multiclass_nms
Per-class NMS; returns ``[x1, y1, x2, y2, score, cls]`` array.
tools/preprocess/dwpose_onnx.py:85
↓ 1 callersMethod_mux_audio
(video_path, audio_path)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:811
↓ 1 callersMethod_mux_generated_audio
(self, video_path, audio)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:597
↓ 1 callersMethod_mxfp8_apply
(self, module, input_tensor)
lightx2v/models/networks/wan/infer/mxfp8_fuse.py:132
↓ 1 callersMethod_new_caches
(self, batch_size, dtype, device, num_frames, frame_seq_length)
lightx2v_train/lightx2v_train/trainers/dmd.py:1088
↓ 1 callersMethod_next_cache_id
(self, layer_id: int)
lightx2v/common/kvcache/fifo.py:73
↓ 1 callersMethod_nhd_to_bhdt
(nhd: torch.Tensor)
lightx2v/common/kvcache/quant.py:60
↓ 1 callersFunction_nms
Pure-NumPy NMS, returns kept indices.
tools/preprocess/dwpose_onnx.py:64
↓ 1 callersMethod_norm
(self, x)
lightx2v/common/ops/norm/rms_norm_weight.py:390
↓ 1 callersMethod_norm
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:76
↓ 1 callersFunction_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,
lightx2v/models/input_encoders/hf/ltx2/gemma/feature_extractor.py:12
↓ 1 callersMethod_normalize_intrinsics
Accept either flattened `[fx, fy, cx, cy]` or 3x3 intrinsics matrices.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1539
↓ 1 callersMethod_normalize_keyboard_cond
Normalize keyboard controls into `[1, T, keyboard_dim_in]`.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1511
↓ 1 callersMethod_normalize_latents
Normalize encoder latents using per-channel statistics. When the encoder is configured with ``double_z=True``, the final conv
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:298
↓ 1 callersFunction_normalize_layout
(layout: str, tensor: torch.Tensor)
lightx2v/models/schedulers/fls_enhance.py:82
↓ 1 callersMethod_normalize_mouse_cond
Normalize mouse controls into `[1, T, mouse_dim_in]`.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1525
↓ 1 callersMethod_normalize_patch_latents
(self, latents)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:67
↓ 1 callersMethod_normalize_patch_latents
(self, latents)
lightx2v_train/lightx2v_train/model_zoo/flux2_dev.py:79
↓ 1 callersMethod_normalize_poses
Normalize poses into `[T, 4, 4]` camera-to-world extrinsics.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1555
↓ 1 callersMethod_normalize_record
(self, record, data_dir)
lightx2v_train/lightx2v_train/data/image_dataset.py:58
↓ 1 callersFunction_ntuple
(n)
lightx2v/models/networks/worldmirror/models/layers/patch_embed.py:121
↓ 1 callersMethod_offload_index
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:201
↓ 1 callersMethod_override_target_hw_from_ref_video
v2av: set ``input_info.target_shape`` from probed ``video_path`` (control mp4). Skip if ``target_shape`` already set. Base H/W = final//2 whe
lightx2v/models/runners/ltx2/ltx2_runner.py:330
↓ 1 callersMethod_pad_contexts
(self, contexts, device, dtype)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:363
↓ 1 callersFunction_pad_inputs_for_attention_alignment
Pad sequence length to multiple of alignment for Flash Attention compatibility.
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/base_encoder.py:176
↓ 1 callersFunction_pad_tokens_for_grouped_mm
(x_perm, counts)
lightx2v/models/networks/neopp/infer/transformer_infer.py:45
↓ 1 callersMethod_parse_audio_path
(audio_path)
lightx2v/shot_runner/rs2v_infer.py:33
↓ 1 callersFunction_parse_gpus
(raw: str)
lightx2v/disagg/examples/run_controller.py:20
↓ 1 callersMethod_parse_prompt_travel_segments
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:1087
↓ 1 callersFunction_parse_step_id
(name: str)
tools/profile/analyze_torch_trace_gap.py:105
↓ 1 callersMethod_patch_in
(self, weights, vid, vid_shape, cache: Cache)
lightx2v/models/networks/seedvr/infer/pre_infer.py:43
↓ 1 callersMethod_patch_out
(self, weights, vid, vid_shape, cache)
lightx2v/models/networks/seedvr/infer/post_infer.py:17
↓ 1 callersMethod_patch_qwen3_vl_rope_index
(self, root: Any)
lightx2v/models/networks/motus/model.py:442
↓ 1 callersMethod_patchify_and_pack_latents
(self, latents)
lightx2v/models/networks/cosmos3/infer/pre_infer.py:26
↓ 1 callersFunction_pil_resampling
(name)
lightx2v_train/lightx2v_train/data/video_dataset.py:19
↓ 1 callersMethod_pin_memory
(self)
lightx2v/utils/ggml_tensor.py:146
↓ 1 callersMethod_pixels_to_tensor
(self, frames)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:388
↓ 1 callersMethod_poll_one
(self, address: str)
lightx2v/disagg/monitor.py:110
↓ 1 callersMethod_poll_transformer_output_watch
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:298
↓ 1 callersFunction_populate_legacy_rotary_buffers
(l_model: torch.nn.Module, config: Gemma3Config)
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/encoder_configurator.py:151
↓ 1 callersMethod_populate_model_config
(self, config, qwen_config)
lightx2v/models/networks/hidream_o1_image/model.py:43
↓ 1 callersMethod_pos_embed
(self, ids: torch.Tensor)
lightx2v/models/networks/ernie_image/infer/pre_infer.py:55
↓ 1 callersMethod_postprocess_action
(self, action)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:492
↓ 1 callersMethod_postprocess_action
(self, action)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:306
↓ 1 callersMethod_postprocess_videos
(self, videos)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:437
↓ 1 callersFunction_preferred_rdma_ipv4
RoCE GID row to prefer when auto-picking gid_index (multi-node / multi-homing).
lightx2v/disagg/rdma_utils.py:74
↓ 1 callersMethod_prepare_action_condition_latents
(self)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:470
↓ 1 callersMethod_prepare_action_context
(self)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:190
↓ 1 callersMethod_prepare_action_segment
(self, action_latents, text_segment, vision_segment, sound_segment, device, condition_frame_indexes=None)
lightx2v/models/networks/cosmos3/infer/pre_infer.py:148
↓ 1 callersMethod_prepare_action_tokens
(self, pre_infer_out, action_latents)
lightx2v/models/networks/motus/infer/transformer_infer.py:337
↓ 1 callersFunction_prepare_apply_fns_all_dim
Prepare transforms for PRoPE-style positional encoding.
lightx2v/models/networks/worldplay/prope/camera_rope.py:88
↓ 1 callersMethod_prepare_audio_embeddings
(self, input_data)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:388
↓ 1 callersMethod_prepare_audio_latents
Prepare audio latents for denoising. Args: audio_latent_shape: Shape of audio latents (C, F, M) - batch dimension remove
lightx2v/models/schedulers/ltx2/scheduler.py:717
↓ 1 callersFunction_prepare_audio_stream
Prepare the audio stream for writing.
lightx2v/utils/ltx2_media_io.py:148
↓ 1 callersMethod_prepare_base_sigmas
(self)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:39
↓ 1 callersMethod_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
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:394
↓ 1 callersMethod_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
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:516
↓ 1 callersMethod_prepare_branch_inputs
(self, inputs, infer_condition=True, update_cache=False, cache_name="pos")
lightx2v/models/networks/wan/dreamzero_model.py:43
↓ 1 callersMethod_prepare_byt5_embeddings
(self, prompts)
lightx2v/models/input_encoders/hf/hunyuan15/byt5/model.py:318
↓ 1 callersMethod_prepare_cond_video_path
(self, cond_video)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:357
↓ 1 callersMethod_prepare_denoise_schedule
(self)
lightx2v/models/schedulers/wan/self_forcing/scheduler.py:53
↓ 1 callersMethod_prepare_i2v_condition_latents
(self)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:363
↓ 1 callersMethod_prepare_i2v_mask
Prepare I2V mask for conditional generation. For I2V task, the first frame is conditioned (mask=0), and remaining frames are
lightx2v/data/worldplay_ar_dataset.py:346
↓ 1 callersMethod_prepare_image_rotary_emb
(self, image_rotary_emb, num_txt_tokens)
lightx2v/models/networks/flux2/infer/transformer_infer.py:244
↓ 1 callersMethod_prepare_index_schedule
(self)
lightx2v/models/schedulers/wan/self_forcing/scheduler.py:40
↓ 1 callersMethod_prepare_inpaint_mask
(self, mask)
lightx2v/models/runners/flux2/flux2_runner.py:176
↓ 1 callersMethod_prepare_kv_tensors
准备 K 和 V 张量,根据是否使用 KV 融合返回适当的张量 参数: k: 键张量 v: 值张量 use_kv_fusion: 是否使用 KV 融合 返回:
lightx2v/common/ops/attn/ring_attn.py:300
↓ 1 callersMethod_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
lightx2v/models/schedulers/qwen_image/scheduler.py:478
↓ 1 callersMethod_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
lightx2v/models/schedulers/z_image/scheduler.py:414
↓ 1 callersMethod_prepare_latents_lightx2v
Original LightX2V latent generation: noise in [B, T, C, H, W] then pack.
lightx2v/models/schedulers/qwen_image/scheduler.py:489
↓ 1 callersMethod_prepare_latents_zoe
Zoe-aligned latent generation: noise in packed format [B, C*4, T, H//2, W//2]. Ensures the same random sampling order as Zoe for bit-exact ali
lightx2v/models/schedulers/qwen_image/scheduler.py:498
↓ 1 callersMethod_prepare_matrix_game3_session
(self, pil_image: Image.Image, latent_shape: list[int], vae_encoder_out: torch.Tensor)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1322
↓ 1 callersMethod_prepare_prompt_travel
(self, input_info)
lightx2v/models/runners/wan/wan_audio_runner.py:1177
↓ 1 callersMethod_prepare_rope_cos_sin
(self, position_ids, inputs_embeds)
lightx2v/models/networks/hidream_o1_image/infer/pre_infer.py:142
← previousnext →2,801–2,900 of 8,429, ranked by callers