MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethoddisable_heads
Disable and free the given output heads.
lightx2v/models/networks/worldmirror/model.py:984
↓ 1 callersMethoddisable_slicing
(self)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:606
↓ 1 callersMethoddisable_spatial_tiling
(self)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:594
↓ 1 callersMethoddisable_tiling
(self)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:600
↓ 1 callersMethoddmd_latent_shape
(self, batch_size, height, width)
lightx2v_train/lightx2v_train/model_zoo/base.py:166
↓ 1 callersFunctiondownload_file
Download file
tools/download_rife.py:19
↓ 1 callersFunctiondownload_file_from_url
Downloads a file from a Hugging Face model repo, handling redirects.
lightx2v/models/networks/worldmirror/utils/visual_util.py:95
↓ 1 callersFunctiondownload_model_from_hf
从 Hugging Face 下载模型(支持文件和目录) Args: repo_id: 仓库 ID model_name: 模型名称(文件或目录名) model_path: 模型保存路径 progress: Gradio 进度
app/utils/model_handlers.py:25
↓ 1 callersFunctiondownload_model_from_ms
从 ModelScope 下载模型(支持文件和目录) Args: repo_id: 仓库 ID model_name: 模型名称(文件或目录名) model_path: 模型保存路径 progress: Gradio 进度条
app/utils/model_handlers.py:155
↓ 1 callersFunctiondownload_result
(base_url: str, task_id: str, output: str)
scripts/server/post_async_t2i_and_wait.py:67
↓ 1 callersFunctiondownload_result
(base_url: str, task_id: str, output: str)
scripts/server/post_seko_talk_ar.py:71
↓ 1 callersFunctiondownload_uploaded_image
(download_url: str, output_path: str, timeout_seconds: int)
scripts/server/post_sync_t2i_presigned.py:101
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The dir
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:375
↓ 1 callersFunctiondraw_M
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
tools/preprocess/human_visualization.py:255
↓ 1 callersFunctiondraw_aapose_by_meta
(img, meta: AAPoseMeta, threshold=0.5, stick_width_norm=200, draw_hand=True, draw_head=True)
tools/preprocess/human_visualization.py:211
↓ 1 callersFunctiondraw_aapose_new
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
tools/preprocess/human_visualization.py:728
↓ 1 callersFunctiondraw_attention_weights
q k v : [seq_len, num_heads, head_dim]
lightx2v/utils/print_atten_score.py:58
↓ 1 callersFunctiondraw_bbox_layout
Draw a black layout image with colored boxes, matching the training-side layout style.
lightx2v/models/networks/hidream_o1_image/utils.py:157
↓ 1 callersFunctiondraw_ellipse_by_2kp
(img, keypoint1, keypoint2, color, threshold=0.6)
tools/preprocess/human_visualization.py:178
↓ 1 callersFunctiondraw_matrix
(weights, save_path)
lightx2v/utils/print_atten_score.py:39
↓ 1 callersFunctiondraw_nose
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
tools/preprocess/human_visualization.py:411
↓ 1 callersFunctiondraw_traj
(metas: List[AAPoseMeta], threshold=0.6)
tools/preprocess/human_visualization.py:1135
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
lightx2v/models/networks/worldmirror/models/layers/drop_path.py:9
↓ 1 callersMethodduration
(self)
lightx2v/utils/va_reader_omni.py:38
↓ 1 callersMethoddynamic_block_sparse_fwd_flashinfer
Launcher for the Flashinfer dynamic block sparse attention kernel. Args: q (torch.Tensor): Query tensor, shape [B, H, S,
lightx2v/common/ops/attn/svg2_attn.py:213
↓ 1 callersMethodema_update_lora_adapter
(self, src_adapter="student", dst_adapter="teacher", ema_decay=0.999)
lightx2v_train/lightx2v_train/model_zoo/base.py:89
↓ 1 callersMethodenable_compile_mode
(self, method_name: str = None)
lightx2v/utils/custom_compiler.py:128
↓ 1 callersMethodenable_slicing
(self)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:603
↓ 1 callersMethodenable_temporal_tiling
(self, use_tiling: bool = True)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:585
↓ 1 callersMethodenc_motion
(self, x)
lightx2v/models/input_encoders/hf/animate/motion_encoder.py:259
↓ 1 callersMethodencode
(self, x: Tensor, return_dict: bool = True)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:744
↓ 1 callersMethodencode
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:315
↓ 1 callersFunctionencode_audio
Encode audio waveform into latent representation. Args: audio: Audio container with waveform tensor of shape (batch, channels, samples) an
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:324
↓ 1 callersMethodencode_audio
(self, audio_path, infer_frames)
lightx2v/models/runners/wan/wan_s2v_runner.py:174
↓ 1 callersMethodencode_cond
( self, image_tensor: torch.Tensor, additional_cond_inputs: dict[str, Any], do
lightx2v/models/input_encoders/hf/hunyuan3d/encoder.py:78
↓ 1 callersMethodencode_condition
(self, sample)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:231
↓ 1 callersMethodencode_dist_2d
(self, video, world_size_h, world_size_w, cur_rank_h, cur_rank_w)
lightx2v/models/video_encoders/hf/wan/vae.py:1105
↓ 1 callersMethodencode_image_latents
(self, image)
lightx2v/models/runners/wan/fastwam_runner.py:249
↓ 1 callersMethodencode_latents_to_images
Convert latents to images using VAE decoder. Args: latents: Input latents tensor vae: VAE model for decoding
lightx2v/models/input_encoders/hf/hunyuan15/siglip/model.py:135
↓ 1 callersFunctionencode_pipeline_return_to_png_bytes
Convert run_pipeline return value to a single PNG byte string, or None if not applicable.
lightx2v/server/services/inference/pipeline_image_encode.py:120
↓ 1 callersMethodencode_prompt_condition
(self, prompt)
lightx2v_train/lightx2v_train/model_zoo/longcat_image.py:94
↓ 1 callersMethodencode_prompt_condition
(self, prompt)
lightx2v_train/lightx2v_train/model_zoo/flux2_dev.py:100
↓ 1 callersMethodencode_prompt_condition
(self, prompt)
lightx2v_train/lightx2v_train/model_zoo/qwen_image.py:86
↓ 1 callersFunctionencode_single_frame
(output_file: str, image_array: np.ndarray, crf: float)
lightx2v/utils/ltx2_media_io.py:347
↓ 1 callersMethodencode_text
Encode a list of prompts using the provided Gemma text encoder. Args: text_encoder: The Gemma text encoder instance.
lightx2v/models/input_encoders/hf/ltx2/model.py:137
↓ 1 callersMethodencode_to_latent
(self, sample)
lightx2v_train/lightx2v_train/model_zoo/base.py:148
↓ 1 callersFunctionencode_video
( video: torch.Tensor | Iterator[torch.Tensor], fps: int, audio: Audio | None, output_path: st
lightx2v/utils/ltx2_media_io.py:186
↓ 1 callersMethodencode_video
(self, x, scale=[0, 1])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:976
↓ 1 callersMethodencode_video
(self, vid)
lightx2v/models/video_encoders/hf/wan/vae_tiny.py:75
↓ 1 callersMethodend_phase1_encode_thread
(self, room: int)
lightx2v/disagg/conn.py:401
↓ 1 callersMethodend_phase1_transformer_thread
(self, room: int)
lightx2v/disagg/conn.py:424
↓ 1 callersMethodend_phase2_decode_thread
(self, room: int)
lightx2v/disagg/conn.py:499
↓ 1 callersMethodend_phase2_transformer_thread
(self, room: int)
lightx2v/disagg/conn.py:476
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/default_runner.py:256
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/hunyuan3d/hunyuan3d_shape_runner.py:214
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:840
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:702
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:445
↓ 1 callersMethodend_run
(self)
lightx2v/models/runners/worldmirror/worldmirror_runner.py:657
↓ 1 callersMethodend_run_segment
(self, segment_idx=None)
lightx2v/models/runners/base_runner.py:217
↓ 1 callersMethodend_run_segment
(self, segment_idx, latents)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:739
↓ 1 callersMethodend_run_segment
Carry segment outputs forward and remove overlap from decoded frames.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:2124
↓ 1 callersMethodend_run_segment
(self, segment_idx=None)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:404
↓ 1 callersMethodend_run_segment_stream
(self, latents, valid_duration=1e9)
lightx2v/models/runners/wan/wan_audio_runner.py:696
↓ 1 callersFunctionestimate_pose
Run DWPose on each detected person. Returns: keypoints: ``(N, 133, 2)`` in image coords (xy). scores: ``(N, 133)``.
tools/preprocess/dwpose_onnx.py:201
↓ 1 callersFunctioneuclid_assign_triton
Return nearest-centroid indices using Triton kernel. Args: x : (B, N, D) float16 / float32 (on CUDA) centroids : (B, K, D
lightx2v/common/ops/attn/svg2_attn_utils.py:550
↓ 1 callersMethodexport_calibration
Write per-layer input_scale safetensors for the WM leaves. Called after one or more inference runs performed with ``run_calib=True``.
lightx2v/models/networks/worldmirror/weights/transformer_weights.py:469
↓ 1 callersFunctionexport_to_trimesh
(mesh_output)
lightx2v/models/video_encoders/hf/hunyuan3d/decoder.py:25
↓ 1 callersMethodextend_with_img
(self, prompt, system_prompt, image=None, seed=-1, *args, **kwargs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/prompt_extend.py:123
↓ 1 callersMethodextract_audio_feat
(self, audio_path, return_all_layers=False, dtype=torch.float32)
lightx2v/models/input_encoders/hf/wan/s2v/audio_encoder.py:62
↓ 1 callersMethodextract_base64_data
(self, data: str)
lightx2v/server/media/base.py:50
↓ 1 callersMethodextract_feature
(self, weights, pixel_values: torch.FloatTensor, grid_hw=None)
lightx2v/models/networks/neopp/infer/pre_infer.py:173
↓ 1 callersMethodextract_image_context
(self, vlm_inputs)
lightx2v/models/networks/motus/model.py:192
↓ 1 callersMethodextract_lora_alphas
Extract LoRA alpha values from the state dict.
lightx2v/utils/lora_loader.py:255
↓ 1 callersMethodextract_lora_diffs
Extract diff-style LoRA weights (direct addition, not matrix multiplication). Args: lora_weights: The LoRA state diction
lightx2v/utils/lora_loader.py:307
↓ 1 callersFunctionextract_lora_from_diff
Extract LoRA weights from model difference Args: source_weights: Source model weights target_weights: Target model weights
tools/extract/lora_extractor.py:287
↓ 1 callersMethodextract_lora_pair
Extract a complete LoRA pair (up and down weights) from the state dict. Args: key: The up weight key lora_we
lightx2v/utils/lora_loader.py:127
↓ 1 callersMethodextract_lora_pairs
Extract all LoRA pairs from the state dict, mapping to model keys. Args: lora_weights: The LoRA state dictionary
lightx2v/utils/lora_loader.py:264
↓ 1 callersMethodextract_und_features
(self, vlm_inputs)
lightx2v/models/networks/motus/model.py:172
↓ 1 callersFunctionextract_vision_info
(conversations: list[dict] | list[list[dict]])
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py:298
↓ 1 callersFunctionextract_zip
Extract zip file
tools/download_rife.py:40
↓ 1 callersFunctionextrinsics_to_vector
Convert extrinsics to [t, q] vector.
lightx2v/models/networks/worldmirror/models/utils/camera_utils.py:21
↓ 1 callersMethodfast_sparse_head_placement
(self, query, key, value, query_out, key_out, value_out, best_mask_idx, context_length, num_frame, frame_size)
lightx2v/common/ops/attn/svg_attn.py:393
↓ 1 callersMethodfetch_audio_data
Fetch audio data from ffmpeg process
lightx2v/utils/va_reader.py:141
↓ 1 callersFunctionfetch_video
(ele: dict, image_factor: int = IMAGE_FACTOR)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py:255
↓ 1 callersFunctionfi_autotune_cache_path
(cache_namespace: str, model_sig: str)
lightx2v/common/flashinfer_autotune.py:29
↓ 1 callersFunctionfi_sm_arch
()
lightx2v/common/flashinfer_autotune.py:22
↓ 1 callersFunctionfile_stream_generator
(file_path: str, chunk_size: int = 1024 * 1024)
lightx2v/server/api/files.py:40
↓ 1 callersFunctionfile_stream_generator
(file_path: str, chunk_size: int = 1024 * 1024)
lightx2v/server/api/tasks/common.py:44
↓ 1 callersFunctionfill_block_map_triton
(final_map, num_to_select, sorted_indices)
lightx2v/common/ops/attn/utils/sparge_util.py:176
↓ 1 callersFunctionfill_causal_mask_triton
(mask, BqdivBk: float)
lightx2v/common/ops/attn/utils/sparge_util.py:196
↓ 1 callersFunctionfill_input_info_from_defaults
(input_info, defaults)
lightx2v/utils/input_info.py:589
↓ 1 callersFunctionfind_flownet_pkl
Find flownet.pkl file in extracted directory
tools/download_rife.py:48
↓ 1 callersFunctionfind_idle_server
Find an idle server from available URLs
scripts/server/post_multi_servers.py:97
↓ 1 callersMethodfind_split_indices
(self, seq_len, part_num)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:66
↓ 1 callersFunctionfirst_visible_sm120_device
()
lightx2v_kernel/test/mxfp8_mxfp8/bench_fused_ffn.py:12
↓ 1 callersFunctionfix_torchvision_functional_tensor
()
tools/postprocess/torchvision_fix.py:7
↓ 1 callersFunctionfix_torchvision_functional_tensor
Fix torchvision.transforms.functional_tensor import issue
lightx2v/models/networks/hunyuan3d/utils/torchvision_fix.py:10
↓ 1 callersFunctionflashAttnBMha128Bf16IoPrecomputed
lightx2v_kernel_xpu/lgrf_uni/single_kernels/flash.attn.b.mha128.bf16io.h:14
↓ 1 callersFunctionflashAttnBMha128Fp16OptPrecomputed
lightx2v_kernel_xpu/lgrf_uni/single_kernels/flash.attn.b.mha128.fp16.opt.h:8
← previousnext →3,501–3,600 of 8,429, ranked by callers