MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 2 callersMethodrotate_queries_or_keys
(self, t, seq_dim=None, offset=0, scale=None)
lightx2v/models/networks/seedvr/utils/rotary_embedding_torch.py:181
↓ 2 callersFunctionrotation_matrix_to_quaternion
Convert rotation matrix to quaternion (scalar-first: [w, x, y, z]). Note: This uses the Hamilton convention [w, x, y, z], which differs from
lightx2v/models/networks/worldmirror/utils/render_utils.py:18
↓ 2 callersFunctionrotmat_to_quat
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
lightx2v/models/networks/worldmirror/models/utils/rotation.py:40
↓ 2 callersFunctionrtr_ah_dest_dlid
Destination LID for RC QP RTR when using GRH. RoCE (Ethernet link layer) expects dlid 0 with a valid dgid in the GRH; some drivers still repo
lightx2v/disagg/rdma_utils.py:181
↓ 2 callersFunctionrtr_path_mtu_negotiated
path_mtu for RTR must not exceed either peer's active MTU (IB enum ordering).
lightx2v/disagg/rdma_utils.py:225
↓ 2 callersMethodrun
(self, step_fn: Callable[[], T])
lightx2v/utils/torch_trace_profiler.py:145
↓ 2 callersMethodrun
(self, stop_event=None)
lightx2v/disagg/services/transformer.py:962
↓ 2 callersMethodrun
(self, stop_event=None)
lightx2v/disagg/services/encoder.py:727
↓ 2 callersMethodrun
(self, total_steps=None)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:666
↓ 2 callersMethodrun
(self, total_steps=None)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:281
↓ 2 callersMethodrun
(self, total_steps=None)
lightx2v/models/runners/flux2/flux2_runner.py:245
↓ 2 callersMethodrun_clip_main
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:895
↓ 2 callersFunctionrun_generate
(client: Any, args: argparse.Namespace, prompt: str | None = None, output_path: Path | None = None)
scripts/hidream_o1_image/test_openai_images_client.py:187
↓ 2 callersMethodrun_image_encoder
Run image encoder Args: img: Input image Returns: Image encoding result
lightx2v/models/runners/base_runner.py:137
↓ 2 callersMethodrun_inference
(self, current_iter)
lightx2v_train/lightx2v_train/trainers/dopsd.py:580
↓ 2 callersMethodrun_main
(self)
lightx2v/models/runners/default_runner.py:415
↓ 2 callersMethodrun_main
(self)
lightx2v/models/runners/ltx2/ltx2_runner.py:872
↓ 2 callersFunctionrun_mid_block
Run features through the middle block.
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:128
↓ 2 callersFunctionrun_one
(runner, input_path, strict_output_path, output_path, task_name="recon")
examples/worldmirror/run_worldmirror.py:185
↓ 2 callersMethodrun_segment
(self, segment_idx=0)
lightx2v/models/runners/wan/wan_audio_runner.py:1299
↓ 2 callersFunctionrun_test
(label, q_len, kv_len, num_heads=12, warmup=10, iters=50)
lightx2v_kernel_xpu/test/test_sdp.py:53
↓ 2 callersMethodrun_text_encoder
(self, text, image_list=None, neg_prompt=None)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:268
↓ 2 callersMethodrun_text_encoder
(self, text, image_list=None, neg_prompt=None)
lightx2v/models/runners/z_image/z_image_runner.py:190
↓ 2 callersMethodrun_text_encoder
(self, input_info)
lightx2v/models/runners/hunyuan_video/hunyuan_video_15_runner.py:271
↓ 2 callersMethodrun_text_encoder
(self, text, image_list=None, neg_prompt=None)
lightx2v/models/runners/flux2/flux2_runner.py:451
↓ 2 callersMethodrun_vae_decoder
(self, pred_latent)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:641
↓ 2 callersMethodrun_vae_decoder
Decode video and audio latents to frames and waveform.
lightx2v/models/runners/ltx2/ltx2_runner.py:724
↓ 2 callersMethodrun_vae_decoder
(self, latents)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:562
↓ 2 callersFunctionsafe_interpolate_operation
Safe interpolate operation that handles Half precision for problematic modes
lightx2v/models/video_encoders/hf/seedvr/common/utils.py:23
↓ 2 callersMethodsample
Sample from the diagonal Gaussian distribution. Returns: torch.Tensor: A sample tensor with the same shape as the mean.
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/model.py:70
↓ 2 callersMethodsample_end_step
(self)
lightx2v_train/lightx2v_train/trainers/dmd.py:233
↓ 2 callersFunctionsave_audio
( audio_array, audio_name: str, video_name: str, sr: int = 16000, output_path: Optional[st
lightx2v/shot_runner/utils.py:220
↓ 2 callersMethodsave_base64
(self, base64_data: str, output_dir: str)
lightx2v/server/media/base.py:66
↓ 2 callersFunctionsave_base64_audio
(base64_data: str, output_dir: str)
lightx2v/server/media/audio.py:73
↓ 2 callersFunctionsave_base64_image
(base64_data: str, output_dir: str)
lightx2v/server/media/image.py:67
↓ 2 callersFunctionsave_to_video
(gen_lvideo, out_path, target_fps)
lightx2v/shot_runner/utils.py:212
↓ 2 callersFunctionscale_pad_and_swizzle
(scale: torch.Tensor)
lightx2v_kernel/test/mxfp6_mxfp8/test_fake_quant.py:20
↓ 2 callersFunctionsegment_gate_bld
(y, gate, seg_idx)
lightx2v/models/networks/wan/infer/s2v/wan_ops.py:71
↓ 2 callersFunctionsegment_modulate_bld
(norm_x, shift, scale, seg_idx)
lightx2v/models/networks/wan/infer/s2v/wan_ops.py:64
↓ 2 callersFunctionsegment_sky
Segments sky from an image using an ONNX model. Thanks for the great model provided by https://github.com/xiongzhu666/Sky-Segmentation-and-Po
lightx2v/models/networks/worldmirror/utils/visual_util.py:27
↓ 2 callersMethodselect_and_bind
(socket: zmq.Socket)
lightx2v/utils/va_reader_omni.py:162
↓ 2 callersMethodsend_encoder_outputs
Serialize encoder outputs into RDMA buffers and send via Mooncake.
lightx2v/disagg/disagg_mixin.py:693
↓ 2 callersMethodsend_transformer_outputs
Serialize DiT latents into Phase 2 RDMA buffer and send via Mooncake.
lightx2v/disagg/disagg_mixin.py:1050
↓ 2 callersFunctionsend_workload_end_signal
()
lightx2v/disagg/workload.py:204
↓ 2 callersMethodsession
FlashInfer autotune session. ``tune_mode``: None: cache hit → cache-only; cache miss → lazy online rebuild. True: pro
lightx2v/common/flashinfer_autotune.py:65
↓ 2 callersMethodset_begin_index
(self, begin_index=0)
lightx2v/models/schedulers/cosmos3/scheduler.py:133
↓ 2 callersMethodset_config
(self, config_modify)
lightx2v/models/runners/default_runner.py:204
↓ 2 callersMethodset_data
(self, dataloader_val)
lightx2v_train/lightx2v_train/infer/base.py:23
↓ 2 callersMethodset_denoising_timesteps
(self, device: Union[str, torch.device] = None)
lightx2v/models/schedulers/wan/step_distill/scheduler.py:25
↓ 2 callersMethodset_fsdp2_gradient_sync
(self, enabled)
lightx2v_train/lightx2v_train/model_zoo/base.py:129
↓ 2 callersMethodset_full_trainable
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:107
↓ 2 callersMethodset_lora_trainable
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:100
↓ 2 callersMethodset_model
(self, model)
lightx2v_train/lightx2v_train/infer/base.py:26
↓ 2 callersMethodset_model
(self, model)
lightx2v_train/lightx2v_train/trainers/base.py:75
↓ 2 callersMethodset_seq_len
(self, seq_len)
lightx2v/models/input_encoders/hf/vace/vace_processor.py:23
↓ 2 callersMethodset_status
(self, bootstrap_room: int, status: DataPoll)
lightx2v/disagg/conn.py:541
↓ 2 callersMethodset_timesteps
( self, infer_steps: Union[int, None] = None, device: Union[str, torch.device] = None,
lightx2v/models/schedulers/wan/scheduler.py:98
↓ 2 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
lightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py:157
↓ 2 callersMethodset_timesteps
(self, num_inference_steps: int, device=None)
lightx2v/models/schedulers/wan/audio/scheduler.py:167
↓ 2 callersMethodset_timesteps
(self, infer_steps=None, denoising_strength=1.0, device=None)
lightx2v/models/schedulers/wan/lingbot_va/scheduler.py:22
↓ 2 callersMethodset_timesteps
(self, num_inference_steps, device, shift)
lightx2v/models/schedulers/hunyuan_video/scheduler.py:69
↓ 2 callersMethodset_txt_cache
Set text KV cache (called once at the beginning).
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:58
↓ 2 callersMethodset_video_size
(self, width: int, height: int)
lightx2v/utils/video_recorder.py:256
↓ 2 callersMethodset_video_size
(self, width: int, height: int)
lightx2v/utils/va_recorder_x264.py:126
↓ 2 callersFunctionsetup_logger
(config=None)
lightx2v_train/lightx2v_train/runtime/logger.py:8
↓ 2 callersMethodsgl_per_token_group_quant_fp8
Per-token per-group FP8 quantization compatible with sgl_kernel.sgl_per_token_group_quant_fp8
lightx2v_platform/base/amd_rocm.py:70
↓ 2 callersFunctionskip_replace_frame_outputs
(frame)
tools/preprocess/utils.py:27
↓ 2 callersFunctionsliding_window_1d
Create a sliding window view of the input array along a specified axis. This function creates a memory-efficient view of the input array wit
lightx2v/models/networks/worldmirror/utils/geometry.py:123
↓ 2 callersFunctionsliding_window_2d
Create 2D sliding windows over the input array. Convenience function for creating 2D sliding windows, commonly used for image processing
lightx2v/models/networks/worldmirror/utils/geometry.py:206
↓ 2 callersFunctionsmart_nframes
calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the configuration of video.
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py:124
↓ 2 callersFunctionsnap_to_8k_plus_1
LTX-2.3 VAE-stride constraint: video length must satisfy (n - 1) % 8 == 0.
tools/preprocess/ltx2.3_preprocess_data.py:154
↓ 2 callersMethodsp_kvcache_attn_head_shard
SP attention for KV cache stored as [global_seq, local_heads, head_dim]. The caller keeps Q in the normal sequence-sharded layout [lo
lightx2v/common/kvcache/base.py:53
↓ 2 callersMethodspatial_tiled_decode
Tiled spatial decoding for large latent maps.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:685
↓ 2 callersMethodspatial_tiled_encode
Tiled spatial encoding for large inputs via overlapping.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:630
↓ 2 callersFunctionsplit_in_spatial
(size: int, overlap: int)
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:945
↓ 2 callersFunctionsplit_kp2ds_for_aa
(kp2ds, ret_face=False)
tools/preprocess/pose2d_utils.py:1059
↓ 2 callersFunctionssim
(img1, img2, window_size=11, window=None, size_average=True, full=False, val_range=None)
lightx2v/models/vfi/rife/model/pytorch_msssim/__init__.py:30
↓ 2 callersMethodstart
(self)
lightx2v/utils/va_reader_omni.py:252
↓ 2 callersMethodstart
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:490
↓ 2 callersMethodstart
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:655
↓ 2 callersMethodstart_compile
(self, shape, audio_num, with_mask=True)
lightx2v/models/networks/wan/audio_model.py:84
↓ 2 callersMethodstart_transfer_thread
(self)
lightx2v/disagg/conn.py:129
↓ 2 callersMethodstep
( self, model_output: torch.Tensor, timestep: Union[int, torch.Tensor], sample
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:854
↓ 2 callersMethodstep
(self, model_output, timestep, sample, s_noise=1.0, noise_clip_std=0.0, generator=None, return_dict=True)
lightx2v/models/schedulers/hidream_o1_image/scheduler.py:44
↓ 2 callersMethodstep
(self, noise_pred, t)
lightx2v/models/schedulers/wan/s2v/s2v_scheduler.py:52
↓ 2 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep DPMSolver.
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:638
↓ 2 callersMethodstep_by_index
(self, velocity, step_idx, sample)
lightx2v_train/lightx2v_train/schedulers/dmd_scheduler.py:96
↓ 2 callersMethodstep_pre
(self, step_index)
lightx2v/models/schedulers/wan/scheduler.py:353
↓ 2 callersMethodstep_to
( self, pred: torch.Tensor, x_t: torch.Tensor, t: torch.Tensor, s: tor
lightx2v/models/schedulers/seedvr/utils.py:261
↓ 2 callersMethodstop
(self, wait=True)
lightx2v/utils/video_recorder.py:286
↓ 2 callersMethodstop
(self, wait=True)
lightx2v/utils/va_recorder.py:503
↓ 2 callersMethodstop
(self, wait=True)
lightx2v/utils/va_recorder_x264.py:208
↓ 2 callersMethodstop
(self)
lightx2v/disagg/monitor.py:100
↓ 2 callersMethodsubmit_task_async
(self, task_data: dict)
lightx2v/server/services/inference/service.py:49
↓ 2 callersMethodsuper_resolve_frames
( self, video: torch.Tensor, # [T,H,W,C] seed: float = 0.0, scale: float = 2.
lightx2v/models/runners/vsr/vsr_wrapper.py:133
↓ 2 callersMethodswitch_lora
Switch LoRA weights dynamically by calling weight modules' update_lora method. If an empty lora_path is provided, it removes LoRA wei
lightx2v/models/runners/default_runner.py:548
↓ 2 callersMethodsync_status_to_transformer_endpoint
(self, remote: str, room: int)
lightx2v/disagg/conn.py:339
↓ 2 callersFunctiontest_bias
(dtype: torch.dtype = torch.float16)
lightx2v_kernel_xpu/test/test_fp8.py:107
↓ 2 callersFunctiontest_correctness
(dtype: torch.dtype = torch.float16)
lightx2v_kernel_xpu/test/test_fp8.py:71
↓ 2 callersFunctiontest_mm
(input_tensor_quant, weight, input_tensor_scale, weight_scale, alpha, bias)
lightx2v_kernel/test/mxfp6_mxfp8/test_mm_tflops.py:18
← previousnext →2,001–2,100 of 8,429, ranked by callers