MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 2 callersFunctionmerge_via_lora
通用LoRA合并函数:合并base + lora via converter.py
tools/convert/seko_talk_converter.py:141
↓ 2 callersFunctionmodulate
(x, shift, scale)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:5
↓ 2 callersFunctionmove_tensor_to_device
Move the specified tensor attribute of an object to the target device, with support for pinned memory tensors for faster transfer. Args:
lightx2v/common/ops/utils.py:211
↓ 2 callersMethodmust_calc
(self, step_index)
lightx2v/models/networks/flux2/infer/feature_caching/transformer_infer.py:13
↓ 2 callersFunctionnorm_infer
( x: Tensor, weight: Optional[Tensor], bias: Optional[Tensor], eps: float, is_rms_norm: bo
lightx2v/common/ops/norm/triton_ops.py:827
↓ 2 callersFunctionnormalize_and_scale
(column, source_range, target_range, epsilon=1e-8)
lightx2v/models/networks/wan/infer/infinitetalk/transformer_infer.py:22
↓ 2 callersFunctionnormalize_latent
(latent: torch.Tensor, device: torch.device, dtype: torch.dtype)
lightx2v/utils/ltx2_media_io.py:79
↓ 2 callersFunctionone_hot_to_one_dimension
Convert one-hot action vectors to discrete labels.
lightx2v/models/networks/worldplay/pose_utils.py:46
↓ 2 callersMethodpadding_video_frames
(self, frames: torch.Tensor)
lightx2v/utils/va_recorder.py:364
↓ 2 callersMethodpatchify
images: (N, 3, H, W) x: (N, L, patch_size**2 *3)
lightx2v/models/networks/neopp/infer/pre_infer.py:141
↓ 2 callersFunctionpercentile
(values: List[float], p: float)
scripts/server/benchmark_sync_s3_latency.py:19
↓ 2 callersFunctionpil_to_bagel_tensor
(image)
lightx2v/models/runners/bagel/i2i_utils.py:79
↓ 2 callersMethodpop_completed_outputs
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:926
↓ 2 callersMethodpop_failed_inputs
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:923
↓ 2 callersMethodpop_ready_inputs
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:920
↓ 2 callersFunctionpose_string_to_json
Convert pose string to pose JSON format. Args: pose_string: str, comma-separated pose commands Returns: dict: pose JSON
lightx2v/models/networks/worldplay/pose_utils.py:207
↓ 2 callersMethodpost_process
(self)
lightx2v/common/ops/mm/mm_weight.py:465
↓ 2 callersMethodpost_process
(self, x, y, c_gate_msa, pre_infer_out=None)
lightx2v/models/networks/wan/infer/transformer_infer.py:389
↓ 2 callersMethodpost_process_latent
Blend denoised output with clean state based on mask.
lightx2v/models/schedulers/ltx2/scheduler.py:855
↓ 2 callersFunctionprecompute_rope_freqs_sincos
预计算 RoPE 的 cos 和 sin 值 (1D)。
lightx2v/models/networks/neopp/infer/pre_infer.py:10
↓ 2 callersMethodpredict_action_chunk
(self, agentview_rgb, wrist_rgb, state, task_description, seed=None)
lightx2v/models/runners/wan/fastwam_runner.py:200
↓ 2 callersMethodprepare
(cls, head_num, head_dim, sample_mse_max_row, num_sampled_rows, context_length, sparsity)
lightx2v/common/ops/attn/svg_attn.py:330
↓ 2 callersMethodprepare
Allocate a fresh KV buffer for this step and copy the prefix. Args: past_key_values: [num_layers, 2, past_seq, num_kv_heads, head
lightx2v/models/networks/neopp/infer/kv_cache_manager.py:18
↓ 2 callersMethodprepare
(self, seed, latent_shape, image_encoder_output=None)
lightx2v/models/schedulers/wan/scheduler.py:55
↓ 2 callersMethodprepare
(self, input_info)
lightx2v/models/schedulers/flux2/scheduler.py:84
↓ 2 callersMethodprepare_audio_data
(self, chat_audio_result)
lightx2v/utils/va_reader_omni.py:424
↓ 2 callersMethodprepare_contexts
Prepare context views for GS rendering (training only, passthrough in inference).
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:697
↓ 2 callersMethodprepare_dopsd_initial_latents
(self, height, width, batch_size, generator=None)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:177
↓ 2 callersMethodprepare_i2i
(self, input_info, input_image, vae, inpaint_mask=None)
lightx2v/models/schedulers/flux2/scheduler.py:198
↓ 2 callersMethodprepare_inputs
(self, input_info, scheduler, vae_model=None)
lightx2v/models/networks/bagel/model.py:574
↓ 2 callersMethodprepare_latents
Prepare random latents for denoising.
lightx2v/models/schedulers/longcat_image/scheduler.py:315
↓ 2 callersMethodprepare_prev_latents
Prepare previous latents for conditioning
lightx2v/models/runners/wan/wan_audio_runner.py:524
↓ 2 callersMethodprepare_reference_image_latents
(self, images)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:168
↓ 2 callersMethodprepare_vae_latent_cfg
(self, curr_kvlens, curr_rope, image_sizes)
lightx2v/models/schedulers/bagel/scheduler.py:110
↓ 2 callersMethodpreprocess
Preprocesses the input image before performing inference. Returns: image_data: Preprocessed image data ready for inferen
tools/preprocess/pose2d.py:89
↓ 2 callersMethodpreprocess_image
预处理图像 (带简单缓存)
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_service.py:387
↓ 2 callersMethodpreprocess_image
Preprocess image
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_kernel.py:302
↓ 2 callersMethodpreprocess_image
(self, image)
lightx2v/models/input_encoders/hf/qwen25/qwen25_vlforconditionalgeneration.py:128
↓ 2 callersMethodprocess_images_after_vae_decoder
(self)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:785
↓ 2 callersMethodprocess_images_after_vae_decoder
(self)
lightx2v/models/runners/ltx2/ltx2_runner.py:909
↓ 2 callersMethodprocess_request
(self, task_data: Dict[str, Any])
lightx2v/server/services/inference/worker.py:68
↓ 2 callersMethodprocess_single_mask
(self, mask_file)
lightx2v/models/runners/wan/wan_audio_runner.py:384
↓ 2 callersMethodprune_gs
Prune Gaussian splats by optional mask filtering + voxel merging. Args: splats: Dictionary containing Gaussian parameter
lightx2v/models/networks/worldmirror/models/models/rasterization.py:331
↓ 2 callersFunctionpseudo_random
(a, b)
lightx2v/utils/va_recorder.py:16
↓ 2 callersMethodpub_video
(self, images: torch.Tensor)
lightx2v/utils/video_recorder.py:274
↓ 2 callersMethodquant
(self, tensor, scales, zeros, qmax, qmin)
lightx2v/utils/quant_utils.py:177
↓ 2 callersFunctionquat_to_rotmat
Quaternion Order: XYZW or say ijkr, scalar-last Convert rotations given as quaternions to rotation matrices. Args: quaternions:
lightx2v/models/networks/worldmirror/models/utils/rotation.py:7
↓ 2 callersFunctionrandn_tensor
A helper function to create random tensors on the desired `device` with the desired `dtype`. When passing a list of generators, you can seed each
lightx2v/models/schedulers/qwen_image/scheduler.py:102
↓ 2 callersMethodrasterize_batches
(self, means, quats, scales, opacities, colors, viewmats, Ks, width, height, **kwargs)
lightx2v/models/networks/worldmirror/models/models/rasterization.py:67
↓ 2 callersMethodread_audio_input
Read audio input - handles both single and multi-person scenarios
lightx2v/models/runners/wan/wan_audio_runner.py:300
↓ 2 callersFunctionread_image_input
(image_path)
lightx2v/disagg/utils.py:27
↓ 2 callersFunctionread_ply_xyz
Minimal PLY (ascii or little-endian binary) x/y/z reader.
scripts/worldmirror/compare_to_reference.py:57
↓ 2 callersFunctionread_video
(filename, start_pts=0, end_pts=None, pts_unit="pts", output_format="THWC")
lightx2v/models/runners/seedvr/seedvr_runner.py:49
↓ 2 callersMethodreceive_encoder_outputs
Poll for data from Encoder and reconstruct standard inputs dict.
lightx2v/disagg/disagg_mixin.py:868
↓ 2 callersMethodreceive_transformer_outputs
Poll Phase 2 and reconstruct latents tensor from RDMA buffer.
lightx2v/disagg/disagg_mixin.py:1107
↓ 2 callersMethodrecenter
recenter an image to leave some empty space at the image border. Args: image (ndarray): input image, float/uint8 [H, W, 3/4]
lightx2v/models/input_encoders/hf/hunyuan3d/image_processor.py:36
↓ 2 callersMethodreclaim_instance
Reclaim one managed instance and return its GPU back to idle pool.
lightx2v/disagg/services/controller.py:1510
↓ 2 callersFunctionrecv_json_from_stream
Read one JSON object from a TCP stream (handles split packets).
lightx2v/disagg/rdma_utils.py:156
↓ 2 callersFunctionreference_dequant
(values, scales, amax, *, num_heads, block_token_size, e2m1_max, e4m3_max, dtype)
lightx2v_kernel/test/kvcache/test_nvfp4_kv.py:39
↓ 2 callersFunctionreference_impl
(x, scale, shift, eps)
lightx2v/models/networks/ltx2/infer/triton_ops.py:237
↓ 2 callersMethodrefresh_from_config
(self, config)
lightx2v/models/schedulers/wan/scheduler.py:32
↓ 2 callersMethodregister
(self, target, key=None)
lightx2v_platform/registry_factory.py:12
↓ 2 callersMethodregister
(self, target, key=None)
lightx2v/utils/registry_factory.py:15
↓ 2 callersMethodregister
(self, target, key=None)
lightx2v_train/lightx2v_train/utils/registry.py:12
↓ 2 callersMethodregister_diff
(self, weight_dict)
lightx2v/common/ops/mm/mm_weight.py:211
↓ 2 callersMethodrelease
(self)
lightx2v/disagg/services/decoder.py:333
↓ 2 callersFunctionremove_substrings_from_keys
(original_dict, substr)
lightx2v/utils/utils.py:430
↓ 2 callersMethodremove_transformer_output_room
(self, room: int)
lightx2v/disagg/services/data_mgr_sidecar.py:954
↓ 2 callersMethodrender
Returns predictions with the following fields filled: - rendered_colors / rendered_depths / (rendered_alphas during training)
lightx2v/models/networks/worldmirror/models/models/rasterization.py:140
↓ 2 callersMethodreparameterize
(self, mu, log_var)
lightx2v/models/video_encoders/hf/wan/vae.py:800
↓ 2 callersMethodreset
(self)
lightx2v/common/kvcache/base.py:50
↓ 2 callersMethodreset
(self)
lightx2v/models/runners/wan/fastwam_runner.py:188
↓ 2 callersMethodreset_infer_states
Reset inference states for cumulative sequence lengths.
lightx2v/models/networks/ltx2/infer/transformer_infer.py:82
↓ 2 callersMethodreset_infer_states
(self)
lightx2v/models/networks/motus/infer/transformer_infer.py:83
↓ 2 callersFunctionreset_scheduler_fls_state
(scheduler)
lightx2v/models/schedulers/fls_enhance.py:62
↓ 2 callersMethodreset_sigmas
(self, sigmas: torch.Tensor)
lightx2v/models/schedulers/ltx2/scheduler.py:931
↓ 2 callersFunctionreshape_for_broadcast
Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor to have the same shape as the
lightx2v/models/networks/wan/infer/matrix_game2/posemb_layers.py:66
↓ 2 callersFunctionreshape_for_broadcast
Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor to have the same shape as the
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:68
↓ 2 callersFunctionresize_image
(img, resize_mode="adaptive", bucket_shape=None, fixed_area=None, fixed_shape=None)
lightx2v/models/runners/wan/wan_audio_runner.py:41
↓ 2 callersFunctionresize_pil_for_vit
(image, max_size=980, min_size=224, stride=14, max_pixels=14 * 14 * 9 * 1024)
lightx2v/models/runners/bagel/i2i_utils.py:85
↓ 2 callersFunctionresize_rgb
(image, width, height)
lightx2v/models/runners/wan/fastwam_runner.py:23
↓ 2 callersFunctionresolve_gid_index
(ctx, port_num: int, env_var_name: str = "RDMA_GID_INDEX")
lightx2v/disagg/rdma_utils.py:82
↓ 2 callersFunctionresolve_hy3dpaint_root
(hy_repo: str | None = None)
tools/postprocess/paint_pipeline.py:25
↓ 2 callersFunctionresolve_output_dir
Find a dir that contains camera_params.json / depth/ / normal/ / *.ply.
scripts/worldmirror/compare_to_reference.py:42
↓ 2 callersMethodrestore_tensor
(self, tensor, shape)
lightx2v/utils/quant_utils.py:84
↓ 2 callersFunctionretrieve_timesteps
r""" Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwa
lightx2v/models/schedulers/z_image/scheduler.py:42
↓ 2 callersFunctionretrieve_timesteps
( scheduler, num_inference_steps=None, device=None, timesteps=None, sigmas=None, **kwa
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:27
↓ 2 callersMethodrgb2gray
(self, rgb)
lightx2v/models/vfi/rife/model/loss.py:35
↓ 2 callersFunctionrms_norm_kernel
(x: torch.Tensor, w: torch.Tensor, eps: float = 1e-6)
lightx2v/common/ops/norm/triton_ops.py:958
↓ 2 callersFunctionrope_apply
(x, freqs)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:9
↓ 2 callersFunctionrope_apply
x: [B, L, N, C]. grid_sizes: [B, 3]. freqs: [M, C // 2].
lightx2v_train/lightx2v_train/model_zoo/native/wan/distributed/xdit_context_parallel.py:19
↓ 2 callersFunctionrope_precompute
(x, grid_sizes, freqs, start=None)
lightx2v/models/networks/wan/infer/s2v/rope.py:7
↓ 2 callersFunctionrotate
(x)
lightx2v/models/networks/z_image/infer/utils.py:47
↓ 2 callersFunctionrotate_half
(x)
lightx2v/models/networks/hidream_o1_image/qwen3_vl.py:11
↓ 2 callersFunctionrotate_half
(x)
lightx2v/models/networks/hidream_o1_image/infer/vision_infer.py:5
↓ 2 callersFunctionrotate_half
(x)
lightx2v/models/networks/wan/infer/matrix_game2/posemb_layers.py:129
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
lightx2v/models/networks/bagel/infer/transformer_infer.py:20
↓ 2 callersFunctionrotate_half
(x)
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:99
↓ 2 callersFunctionrotate_half
(x: torch.Tensor)
lightx2v/models/networks/cosmos3/infer/utils.py:19
↓ 2 callersFunctionrotate_half_force_bf16
(x)
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:135
← previousnext →1,901–2,000 of 8,429, ranked by callers