MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 3 callersFunctionis_distill_model_from_name
根据模型名称判断是否是 distill 模型
app/utils/model_utils.py:458
↓ 3 callersFunctionis_fsdp2_module
(module)
lightx2v_train/lightx2v_train/runtime/fsdp.py:14
↓ 3 callersFunctionisotropic_crop_resize
frames: (C, H, W) or (T, C, H, W) or (N, C, H, W) size: (H, W)
lightx2v/utils/utils.py:660
↓ 3 callersMethodllm2vae
(self, x)
lightx2v/models/networks/bagel/model.py:729
↓ 3 callersMethodload_audio_encoder
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:819
↓ 3 callersFunctionload_image
(img, reverse=False)
tools/preprocess/human_visualization.py:1018
↓ 3 callersMethodload_lora_weights_for_resume
(self, lora_path, adapter_name=None, weights_subdir=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:234
↓ 3 callersFunctionload_prefixed_submodules
(root, weight_dict, prefix_by_name)
lightx2v/models/networks/wan/weights/motus/_shared.py:15
↓ 3 callersMethodload_text_encoder
(self)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:73
↓ 3 callersMethodload_text_encoder
(self)
lightx2v/models/runners/flux2/flux2_runner.py:437
↓ 3 callersMethodload_transformer
(self)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:109
↓ 3 callersMethodload_transformer
(self)
lightx2v/models/runners/z_image/z_image_runner.py:66
↓ 3 callersMethodload_transformer
(self)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:69
↓ 3 callersMethodload_transformer
(self)
lightx2v/models/runners/flux2/flux2_runner.py:429
↓ 3 callersMethodload_vae
(self)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:81
↓ 3 callersMethodload_vae_decoder
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:949
↓ 3 callersMethodload_vae_encoder
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:966
↓ 3 callersMethodload_vae_encoder
(self)
lightx2v/models/runners/wan/wan_runner.py:180
↓ 3 callersMethodload_vfi_model
(self)
lightx2v/models/runners/default_runner.py:138
↓ 3 callersFunctionload_wan_text_encoder
(config: Dict[str, Any])
lightx2v/disagg/utils.py:166
↓ 3 callersFunctionload_wan_transformer
(config: Dict[str, Any])
lightx2v/disagg/utils.py:334
↓ 3 callersFunctionload_wan_vae_decoder
(config: Dict[str, Any])
lightx2v/disagg/utils.py:292
↓ 3 callersFunctionmake_attn
( in_channels: int, attn_type: AttentionType = AttentionType.VANILLA, norm_type: NormType = NormTy
lightx2v/models/video_encoders/hf/ltx2/audio_vae/attention.py:58
↓ 3 callersMethodmap_to_args_to_float
(args, kwargs)
lightx2v/models/networks/worldmirror/models/layers/mlp.py:41
↓ 3 callersFunctionmaybe_contiguous
(x)
lightx2v/common/ops/norm/triton_ops.py:342
↓ 3 callersFunctionmaybe_contiguous
(x)
lightx2v/models/networks/wan/infer/triton_ops.py:464
↓ 3 callersFunctionmaybe_contiguous
(x)
lightx2v/models/networks/qwen_image/infer/triton_ops.py:600
↓ 3 callersFunctionmaybe_contiguous
(x)
lightx2v/models/networks/hunyuan_video/infer/triton_ops.py:337
↓ 3 callersFunctionmaybe_contiguous_lastdim
(x)
lightx2v/common/ops/norm/triton_ops.py:338
↓ 3 callersFunctionmaybe_contiguous_lastdim
(x)
lightx2v/models/networks/wan/infer/triton_ops.py:460
↓ 3 callersFunctionmaybe_contiguous_lastdim
(x)
lightx2v/models/networks/qwen_image/infer/triton_ops.py:596
↓ 3 callersFunctionmaybe_contiguous_lastdim
(x)
lightx2v/models/networks/hunyuan_video/infer/triton_ops.py:333
↓ 3 callersMethodmode
(self)
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/model.py:108
↓ 3 callersFunctionmux_audio_from_video
Mux audio from source_video_path into target_video_path. Args: source_video_path: Video file that contains the audio to copy. tar
lightx2v/utils/utils.py:356
↓ 3 callersMethodneg_temporal_rope_params
(self, max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/audio/pre_infer.py:26
↓ 3 callersFunctionno_sync_profiling
Scope where ProfilingContext* skip cuda.synchronize on enter/exit. Use around AR segment loops with async VAE so nested profilers (step_pre,
lightx2v/utils/profiler.py:30
↓ 3 callersMethodnon_block_weights_to_cpu
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/transformer_weights.py:304
↓ 3 callersMethodnon_block_weights_to_cuda
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/transformer_weights.py:299
↓ 3 callersFunctionpermute_tensor_by_labels_triton
Permute `tensor` along `dim` according to ascending order of `labels`. This is a Triton-accelerated replacement for the original implementat
lightx2v/common/ops/attn/svg2_attn.py:56
↓ 3 callersFunctionpose_to_input
Convert pose data to input tensors. Args: pose_data: str or dict - If str ending with '.json': path to JSON file
lightx2v/models/networks/worldplay/pose_utils.py:248
↓ 3 callersMethodpredict_velocity
(self, packed_latents, timestep, condition, latent_ids, adapter_name, teacher_image_latents=None, teacher_imag
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:191
↓ 3 callersMethodprefetch_phase
(self, block_idx, phase_idx, blocks, adapter_block_idx=None)
lightx2v/common/offload/manager.py:84
↓ 3 callersMethodprepare_cameras
(self, views, nums)
lightx2v/models/networks/worldmirror/models/models/rasterization.py:508
↓ 3 callersMethodprepare_cos_sin
Store full cos_sin for AR without seq_parallel splitting. Per-chunk splitting happens at inference time in ar_model.py.
lightx2v/models/schedulers/worldplay/ar_scheduler.py:192
↓ 3 callersMethodprepare_infer_latents
(self, height, width, generator=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:163
↓ 3 callersMethodprepare_splats
Prepare Gaussian splats from model predictions and input data. Args: views: Dictionary containing view data (camera pose
lightx2v/models/networks/worldmirror/models/models/rasterization.py:442
↓ 3 callersMethodpreprocess
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1533
↓ 3 callersFunctionprint_config
(config)
lightx2v/utils/set_config.py:285
↓ 3 callersFunctionprocess_tasks_async
Process a list of tasks asynchronously across multiple servers
scripts/server/post_multi_servers.py:110
↓ 3 callersFunctionprope_qkv
Similar to torch.nn.functional.scaled_dot_product_attention, but applies PRoPE-style positional encoding. Currently, we assume that the seque
lightx2v/models/networks/worldplay/prope/camera_rope.py:30
↓ 3 callersFunctionprune_checkpoints
(output_dir, total_limit)
lightx2v_train/lightx2v_train/runtime/checkpoint.py:5
↓ 3 callersMethodpublish_observation
(self)
lightx2v_ros/src/simulator/simulator/libero_node/main.py:87
↓ 3 callersFunctionqkv_fn
(x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/distributed/xdit_context_parallel.py:128
↓ 3 callersFunctionquant_fp8_per_n
Per-output-channel absmax quantisation → FP8 E4M3. weight : [N, K] any float dtype returns : qweight : [N, K] torch.float8_e4m3
lightx2v_kernel_xpu/test/test_fp8.py:32
↓ 3 callersFunctionrandn_tensor
(shape, generator=None, device=None, dtype=None)
lightx2v/models/schedulers/flux2/scheduler.py:57
↓ 3 callersMethodread_image_input
(self, img_path)
lightx2v/models/runners/default_runner.py:285
↓ 3 callersMethodreceive
(self, port: int)
lightx2v/disagg/conn.py:638
↓ 3 callersMethodregister
(self, ptr, length)
lightx2v/disagg/mooncake.py:160
↓ 3 callersMethodregister_lora
(self, weight_dict, lora_strength=1)
lightx2v/common/ops/mm/mm_weight.py:222
↓ 3 callersFunctionrel_rms
(a: torch.Tensor, b: torch.Tensor)
lightx2v_kernel_xpu/test/test_fp8.py:49
↓ 3 callersMethodremove_lora
(self)
lightx2v/common/ops/mm/mm_weight.py:256
↓ 3 callersMethodreset_guidance_perturbation
Clear STG / isolated-modality flags (ltx_core PerturbationType parity).
lightx2v/models/networks/ltx2/infer/transformer_infer.py:89
↓ 3 callersFunctionresize_and_center_crop
Resize tensor preserving aspect ratio (filling target), then center crop to exact dimensions. Args: latent: Input tensor with shape (
lightx2v/utils/ltx2_media_io.py:44
↓ 3 callersFunctionresize_pilimage
(pil_image, image_size, patch_size=16, resampler=Image.BICUBIC)
lightx2v/models/networks/hidream_o1_image/utils.py:247
↓ 3 callersFunctionrms_norm
Root-mean-square (RMS) normalize `x` over its last dimension. Thin wrapper around `torch.nn.functional.rms_norm` that infers the normalized sh
lightx2v/models/input_encoders/hf/ltx2/gemma/rms_norm.py:4
↓ 3 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/matrix_game2/pre_infer.py:33
↓ 3 callersMethodrope_params
(self, max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/pre_infer.py:43
↓ 3 callersMethodrun
Initialize controller buffers, stream request configs from workload, then wait for all callbacks.
lightx2v/disagg/services/controller.py:1926
↓ 3 callersMethodrun_image_encoder
(self, first_frame, last_frame=None)
lightx2v/models/runners/wan/wan_audio_runner.py:428
↓ 3 callersFunctionrun_inference
( prompt="", negative_prompt="", save_result_path="", infer_steps=4, num_frames=81, re
app/gradio_demo.py:52
↓ 3 callersMethodrun_main
(self)
lightx2v/models/runners/neopp/neopp_runner.py:281
↓ 3 callersMethodrun_segment
(self, segment_idx=0)
lightx2v/models/runners/wan/wan_sf_runner.py:74
↓ 3 callersMethodrun_segment
Run denoising loop for a segment. Args: segment_idx: Segment index (0-based). Use None for upsampler stage.
lightx2v/models/runners/ltx2/ltx2_runner.py:938
↓ 3 callersMethodrun_vae_decoder
(self, latents)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:308
↓ 3 callersMethodrun_vae_encoder
Run VAE encoder Args: img: Input image Returns: Tuple of VAE encoding result and additional parameters
lightx2v/models/runners/base_runner.py:148
↓ 3 callersMethodrun_vae_encoder
(self, img)
lightx2v/models/runners/wan/wan_audio_runner.py:444
↓ 3 callersMethodrun_vae_encoder
(self, first_frame, last_frame=None)
lightx2v/models/runners/wan/wan_runner.py:503
↓ 3 callersMethodrun_vae_encoder
Prepare image conditioning by loading images and encoding them to latents. Returns: tuple: (video_denoise_mask, initial_
lightx2v/models/runners/ltx2/ltx2_runner.py:560
↓ 3 callersFunctionsafe_pad_operation
Safe padding operation that handles Half precision only for problematic modes
lightx2v/models/video_encoders/hf/seedvr/common/utils.py:4
↓ 3 callersFunctionsage2_block_sparse_attn
(q, k, v, lut, valid_block_num, BLKQ, BLKK, arch)
lightx2v/common/ops/attn/utils/sparge_util.py:263
↓ 3 callersMethodsample_renoise_sigma
(self, batch_size, device=None, dtype=None)
lightx2v_train/lightx2v_train/schedulers/dmd_scheduler.py:80
↓ 3 callersMethodsave_checkpoint
(self, iteration, save_total_limit)
lightx2v_train/lightx2v_train/trainers/dmd.py:542
↓ 3 callersFunctionsave_file_async
(file: UploadFile, target_dir: Path)
lightx2v/server/api/tasks/video.py:61
↓ 3 callersMethodsave_lora_weights
(self, save_dir, adapter_name=None, weights_subdir=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:204
↓ 3 callersMethodscale_noise
Forward process in flow-matching Args: sample (`torch.FloatTensor`): The input sample. times
lightx2v/models/schedulers/hunyuan3d/flow_match_euler.py:127
↓ 3 callersFunctionscaled_mxfp8_gelu_quant
(input: torch.Tensor)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:97
↓ 3 callersMethodschedule
Return one selected instance address.
lightx2v/disagg/scheduler/base.py:32
↓ 3 callersMethodsend
(self, ip: str, port: int, config: Any)
lightx2v/disagg/conn.py:620
↓ 3 callersMethodsend_recv
(self, to_send: torch.Tensor, recv_tensor: Optional[torch.Tensor] = None)
lightx2v/common/ops/attn/utils/ring_comm.py:22
↓ 3 callersMethodset_action_weights
Set action weights for ProPE projection access.
lightx2v/models/networks/worldplay/infer/transformer_infer.py:407
↓ 3 callersMethodset_active_adapter
(self, adapter_name)
lightx2v_train/lightx2v_train/model_zoo/base.py:75
↓ 3 callersMethodset_audio_adapter
(self, audio_adapter)
lightx2v/models/schedulers/wan/audio/scheduler.py:48
↓ 3 callersMethodset_dual_lora_trainable
(self, student_adapter="student", teacher_adapter="teacher")
lightx2v_train/lightx2v_train/model_zoo/base.py:78
↓ 3 callersMethodset_extra_metrics_provider
(self, provider: Optional[Callable[[], Dict[str, Any]]])
lightx2v/disagg/monitor.py:32
↓ 3 callersMethodset_img_shapes
(self)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:416
↓ 3 callersFunctionset_parallel_gradient_sync
(model, enabled)
lightx2v_train/lightx2v_train/runtime/parallel.py:24
↓ 3 callersMethodset_target_shape
(self)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:381
↓ 3 callersMethodset_timesteps
( self, num_inference_steps: Union[int, None] = None, device: Union[str, torch.device]
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:545
↓ 3 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
lightx2v/models/schedulers/hunyuan3d/flow_match_euler.py:181
↓ 3 callersMethodset_video_size
(self, width: int, height: int)
lightx2v/utils/va_recorder.py:378
← previousnext →1,001–1,100 of 8,429, ranked by callers