MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersFunctionpad_freqs
(original_tensor, target_len)
lightx2v_train/lightx2v_train/model_zoo/native/wan/distributed/xdit_context_parallel.py:10
↓ 1 callersMethodpadded_timesteps
(self, device=AI_DEVICE, pad_value=0)
lightx2v/models/schedulers/wan/lingbot_va/scheduler.py:111
↓ 1 callersMethodpadding_resize
( self, img_ori, height=512, width=512, padding_color=(0, 0, 0),
lightx2v/models/runners/wan/wan_animate_runner.py:70
↓ 1 callersFunctionpairwise_distance
Computes pairwise squared Euclidean distance between two sets of points.
lightx2v/common/ops/attn/svg2_attn_utils.py:38
↓ 1 callersFunctionparse_args
Parse command line arguments
tools/extract/lora_merger.py:43
↓ 1 callersFunctionparse_args
Parse command line arguments
tools/extract/convert_lightning_to_x2v_lora.py:24
↓ 1 callersFunctionparse_args
Parse command line arguments
tools/extract/convert_vigen_to_x2v_model.py:62
↓ 1 callersFunctionparse_args
Parse command line arguments
tools/extract/lora_extractor.py:43
↓ 1 callersFunctionparse_args
()
scripts/worldmirror/run_calibration.py:44
↓ 1 callersFunctionparse_args
()
scripts/disagg/extract_disagg_utilization.py:18
↓ 1 callersFunctionparse_args
()
scripts/disagg/extract_base_latency.py:17
↓ 1 callersFunctionparse_args
()
scripts/disagg/extract_base_utilization.py:18
↓ 1 callersFunctionparse_args
()
scripts/disagg/extract_dynamic_latency.py:47
↓ 1 callersFunctionparse_args
()
scripts/server/post_seko_talk_ar.py:82
↓ 1 callersFunctionparse_args
()
lightx2v_train/train.py:11
↓ 1 callersFunctionparse_args
()
lightx2v_train/infer.py:14
↓ 1 callersFunctionparse_layout_bboxes
Convert xxyy relative layout boxes into the training-side bbox layout format.
lightx2v/models/networks/hidream_o1_image/utils.py:124
↓ 1 callersFunctionparse_pose_string
Parse pose string to motions list. Format: "w-3, right-0.5, d-4" - w: forward movement - s: backward movement - a: left movement
lightx2v/models/networks/worldplay/pose_utils.py:123
↓ 1 callersMethodpatch_tgrow_layers
Patch TGrow layers to use a smaller kernel if needed (decoder-only).
lightx2v/models/runners/vsr/utils/TCDecoder.py:249
↓ 1 callersMethodpatch_tgrow_layers
Patch TGrow layers to use a smaller kernel if needed. Args: sd: state dict to patch
lightx2v/models/video_encoders/hf/tae.py:247
↓ 1 callersFunctionpatchify
(image, patch_size)
lightx2v/models/networks/bagel/data_utils.py:43
↓ 1 callersFunctionpatchify
(hidden_states: torch.Tensor, patch_size: int = 2, f_patch_size: int = 1)
lightx2v/models/networks/z_image/infer/utils.py:58
↓ 1 callersFunctionpatchify
(x, patch_size)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:411
↓ 1 callersFunctionpatchify
Rearrange spatial dimensions into channels. Divides image into patch_size x patch_size blocks and moves pixels from each block into separate
lightx2v/models/video_encoders/hf/ltx2/video_vae/ops.py:6
↓ 1 callersFunctionpatchify
(x, patch_size)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:422
↓ 1 callersMethodpending_count
Return current queue length inferred from ring tail/head counters.
lightx2v/disagg/rdma_buffer.py:362
↓ 1 callersMethodper_block_cast_to_fp8
(self, x)
lightx2v_platform/ops/mm/template.py:343
↓ 1 callersMethodper_block_cast_to_fp8
(self, x)
lightx2v/common/ops/mm/mm_weight.py:599
↓ 1 callersMethodperceiver_attention_ca
(self, phase, audio_encoder_output, latents, t_emb)
lightx2v/models/networks/wan/infer/audio/transformer_infer.py:86
↓ 1 callersMethodphi
(u, shift)
lightx2v/models/schedulers/wan/fastwam/scheduler.py:14
↓ 1 callersFunctionpick_latest_subdir
Return most recent <timestamp>-like subdir, or `path` itself.
scripts/worldmirror/compare_to_reference.py:32
↓ 1 callersFunctionpil_img2rgb
(image)
lightx2v/models/networks/bagel/data_utils.py:116
↓ 1 callersFunctionpixel_space_to_camera_space
Convert pixel space points to camera space points. Args: pixel_space_points (torch.Tensor): Pixel space points with shape (h, w, 2)
lightx2v/models/networks/worldmirror/models/utils/frustum.py:96
↓ 1 callersFunctionpng_u8_mae
Compare {subdir}/{prefix}_*.png; return per-file MAE normalized to [0,1].
scripts/worldmirror/compare_to_reference.py:153
↓ 1 callersFunctionpoint_cloud_stats
Return (ref_n, cand_n, count_diff_pct, bbox_vol_diff_pct, centroid_diff_norm).
scripts/worldmirror/compare_to_reference.py:176
↓ 1 callersMethodpoll_once
(self)
lightx2v/disagg/monitor.py:137
↓ 1 callersFunctionpoll_task
(url, task_id, timeout=600, interval=5)
scripts/server/disagg/wan/post_wan_t2v.py:28
↓ 1 callersFunctionpoll_task
(url, task_id, timeout=600, interval=5)
scripts/server/disagg/wan/post_wan_i2v.py:29
↓ 1 callersFunctionpoll_task
(url, task_id, timeout=300, interval=5)
scripts/server/disagg/qwen/post_qwen_t2i.py:32
↓ 1 callersFunctionpoll_task
(url, task_id, timeout=300, interval=5)
scripts/server/disagg/qwen/post_qwen_i2i.py:30
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
lightx2v/models/input_encoders/hf/wan/xlm_roberta/model.py:36
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:22
↓ 1 callersFunctionposition_grid_to_embed
Convert 2D position grid (HxWx2) to sinusoidal embeddings (HxWxC) Args: pos_grid: Tensor of shape (H, W, 2) containing 2D coordinate
lightx2v/models/networks/worldmirror/models/utils/grid.py:4
↓ 1 callersFunctionpost_dark_udp
DARK post-pocessing. Implemented by udp. Paper ref: Huang et al. The Devil is in the Details: Delving into Unbiased Data Processing for Human
tools/preprocess/pose2d_utils.py:637
↓ 1 callersMethodpost_process
(self, x, y, c_gate_msa, pre_infer_out=None)
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:452
↓ 1 callersMethodpostprocess
Performs post-processing on the model's output to extract bounding boxes, scores, and class IDs. Args: input_image (nump
tools/preprocess/pose2d.py:111
↓ 1 callersMethodpostprocess_actions
(self)
lightx2v/models/networks/motus/model.py:631
↓ 1 callersMethodpostprocess_threading
(self, outputs, shape_raw, person_results, i, single_person=True, **kwargs)
tools/preprocess/pose2d.py:280
↓ 1 callersMethodpre_process
(self, modulation, embed0)
lightx2v/models/networks/wan/infer/transformer_infer.py:166
↓ 1 callersMethodprecompute
Blocks 1+2: Gemma model -> feature extraction. Used by process_captions.py for offline precomputation. Returns (video_features, audio_
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/base_encoder.py:45
↓ 1 callersFunctionprecompute_freqs_cis
( indices_grid: torch.Tensor, dim: int, out_dtype: torch.dtype, theta: float = 10000.0, ma
lightx2v/models/networks/ltx2/infer/utils.py:223
↓ 1 callersFunctionprecompute_freqs_cis
( indices_grid: torch.Tensor, dim: int, out_dtype: torch.dtype, theta: float = 10000.0, ma
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:166
↓ 1 callersFunctionprecompute_freqs_cis_3d
(dim, end=1024, theta=10000.0)
lightx2v/models/networks/wan/infer/fastwam/pre_infer.py:24
↓ 1 callersMethodprecompute_freqs_cos_sin
(dim: List[int], end: List[int], theta: float = 256.0, device: torch.device = None)
lightx2v/models/schedulers/z_image/scheduler.py:331
↓ 1 callersMethodprefill_reference_kv
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:1287
↓ 1 callersMethodprefill_video_cache
(self, weights, video_pre)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:69
↓ 1 callersMethodprepare
(self)
lightx2v/models/schedulers/bagel/scheduler.py:143
↓ 1 callersMethodprepare_action_inputs
( self, first_frame_latents, context, context_mask, action_chunk_size,
lightx2v/models/networks/wan/fastwam_model.py:123
↓ 1 callersFunctionprepare_causal_attention_mask
Prepare a causal attention mask for 3D videos. Args: n_frame (int): Number of frames (temporal length). n_hw (int): Product of he
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:191
↓ 1 callersMethodprepare_chunk
Prepare scheduler state for a specific chunk. Args: chunk_idx: Index of the chunk to prepare Returns:
lightx2v/models/schedulers/worldplay/ar_scheduler.py:115
↓ 1 callersMethodprepare_clip
(self, seed, latent_shape, dtype)
lightx2v/models/schedulers/wan/s2v/s2v_scheduler.py:19
↓ 1 callersMethodprepare_cos_sin
(self, rope_sizes)
lightx2v/models/networks/hunyuan_video/infer/pre_infer.py:47
↓ 1 callersFunctionprepare_flexattention
(cfg_size, num_head, head_dim, dtype, device, context_length, prompt_length, num_frame, frame_size, diag_width
lightx2v/common/ops/attn/svg_attn.py:240
↓ 1 callersMethodprepare_frame
(self, image_path)
lightx2v/models/networks/motus/model.py:529
↓ 1 callersMethodprepare_i2i_denoise_strength_latents
(self, inputs)
lightx2v/models/schedulers/hidream_o1_image/scheduler.py:154
↓ 1 callersMethodprepare_i2i_denoise_strength_latents
(self, input_info)
lightx2v/models/schedulers/qwen_image/scheduler.py:567
↓ 1 callersMethodprepare_i2i_denoise_strength_latents
(self, input_info)
lightx2v/models/schedulers/z_image/scheduler.py:476
↓ 1 callersMethodprepare_image
(self, image: Image.Image | list[Image.Image], mask=None)
lightx2v/models/input_encoders/hf/hunyuan3d/encoder.py:64
↓ 1 callersFunctionprepare_images_to_tensor
Process image files into uniform tensor batch [1, N, 3, H, W].
lightx2v/models/networks/worldmirror/utils/inference_utils.py:77
↓ 1 callersFunctionprepare_input
Read images or extract video frames. Returns (img_paths, subdir_name).
lightx2v/models/networks/worldmirror/utils/inference_utils.py:123
↓ 1 callersMethodprepare_input
(self)
lightx2v/models/runners/wan/wan_animate_runner.py:294
↓ 1 callersMethodprepare_input
(self, noisy_video_latent)
lightx2v/models/networks/motus/model.py:54
↓ 1 callersFunctionprepare_input_tensor
视频预处理: [T,H,W,3] -> [1,C,F,H,W] 1. GPU 上完成插值 + 中心裁剪 2. 自动 pad 帧数到 8n-3
lightx2v/models/runners/vsr/vsr_wrapper.py:42
↓ 1 callersMethodprepare_latents
(self, seed, latent_shape, device, dtype)
lightx2v/models/schedulers/wan/lingbot_va/scheduler.py:69
↓ 1 callersMethodprepare_latents
(self, seed, latent_shape, dtype=torch.bfloat16)
lightx2v/models/schedulers/neopp/scheduler.py:27
↓ 1 callersMethodprepare_latents
(self, input_info)
lightx2v/models/schedulers/qwen_image/scheduler.py:584
↓ 1 callersMethodprepare_latents
(self, input_info)
lightx2v/models/schedulers/z_image/scheduler.py:488
↓ 1 callersMethodprepare_latents
(self, seed, latent_shape, dtype=torch.bfloat16)
lightx2v/models/schedulers/hunyuan_video/scheduler.py:53
↓ 1 callersMethodprepare_latents
(self, seed, latent_shape, lq_latents, dtype=torch.bfloat16)
lightx2v/models/schedulers/hunyuan_video/scheduler.py:178
↓ 1 callersMethodprepare_latents
(self, input_info)
lightx2v/models/schedulers/ernie_image/scheduler.py:22
↓ 1 callersMethodprepare_latents
Prepare initial latents for denoising and patchify them. This method follows LTX2's create_initial_state logic: 1. Create un
lightx2v/models/schedulers/ltx2/scheduler.py:440
↓ 1 callersMethodprepare_latents
(self, input_info)
lightx2v/models/schedulers/cosmos3/scheduler.py:515
↓ 1 callersMethodprepare_latents
(self, seed, latent_shape, dtype=torch.float32)
lightx2v/models/schedulers/motus/scheduler.py:48
↓ 1 callersMethodprepare_mask
(cls, seqlen)
lightx2v/common/ops/attn/svg_attn.py:348
↓ 1 callersMethodprepare_mask
(cls, seqlen)
lightx2v/common/ops/attn/radial_attn.py:141
↓ 1 callersMethodprepare_mask
(self, q)
lightx2v/common/ops/attn/sparse_mask_generator.py:108
↓ 1 callersMethodprepare_mask
(cls, seqlen, head_num)
lightx2v/common/ops/attn/nbhd_attn.py:87
↓ 1 callersMethodprepare_mask
(cls, seqlen, head_num, head_dim)
lightx2v/common/ops/attn/nbhd_attn.py:158
↓ 1 callersMethodprepare_prompts
(self, curr_kvlens, curr_rope, prompts, tokenizer, new_token_ids)
lightx2v/models/networks/bagel/model.py:144
↓ 1 callersMethodprepare_reorg_idx_and_bucket_offset
(cls, seqlen, frame_h, frame_w, pool_h, pool_w, device)
lightx2v/common/ops/attn/draft_attn.py:93
↓ 1 callersMethodprepare_runtime_inputs
(self, inputs, image_path, prompt, state_value)
lightx2v/models/networks/motus/model.py:581
↓ 1 callersMethodprepare_source
(self, src_pose_path, src_face_path, src_ref_path)
lightx2v/models/runners/wan/wan_animate_runner.py:146
↓ 1 callersMethodprepare_source
(self, src_video, src_mask, src_ref_images, image_size, device=torch.device("cuda"))
lightx2v/models/runners/wan/wan_vace_runner.py:42
↓ 1 callersMethodprepare_source_for_replace
(self, src_bg_path, src_mask_path)
lightx2v/models/runners/wan/wan_animate_runner.py:172
↓ 1 callersMethodprepare_state
(self, state_value)
lightx2v/models/networks/motus/model.py:540
↓ 1 callersMethodprepare_tokens
(self, state_tokens, action_tokens)
lightx2v/models/networks/motus/model.py:106
↓ 1 callersMethodprepare_vae
Pin VAE on GPU for async overlap when ``cpu_offload`` would block overlap.
lightx2v/utils/async_vae.py:63
↓ 1 callersMethodprepare_vae_images
(self, curr_kvlens, curr_rope, images, new_token_ids, timestep=0)
lightx2v/models/networks/bagel/model.py:398
↓ 1 callersMethodprepare_vit_images
(self, curr_kvlens, curr_rope, images, new_token_ids)
lightx2v/models/networks/bagel/model.py:282
↓ 1 callersFunctionpreprocess
(image: np.array, crf: float = DEFAULT_IMAGE_CRF)
lightx2v/utils/ltx2_media_io.py:379
← previousnext →4,201–4,300 of 8,429, ranked by callers