MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersFunction_simcc_decode
Decode SimCC (1D classification) outputs to (locs, scores). simcc_x : (N, K, Wx), simcc_y : (N, K, Hy)
tools/preprocess/dwpose_onnx.py:182
↓ 1 callersFunction_sinc
(x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:29
↓ 1 callersFunction_skip_cuda_unavailable
()
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:34
↓ 1 callersMethod_slice_audio_embeddings
(self, full_audio_embs, audio_start_idx, audio_end_idx)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:528
↓ 1 callersMethod_snap_image_dimensions
(width, height, vae_scale_factor)
lightx2v/models/runners/flux2/flux2_runner.py:157
↓ 1 callersFunction_sorted_expert_row_map
(counts)
lightx2v/models/networks/neopp/infer/transformer_infer.py:37
↓ 1 callersMethod_source_images_from_sample
(self, sample)
lightx2v_train/lightx2v_train/model_zoo/qwen_image_edit.py:131
↓ 1 callersMethod_sparse_moe_pytorch
(self, moe_w, hidden_states, selected_experts, routing_weights)
lightx2v/models/networks/neopp/infer/transformer_infer.py:389
↓ 1 callersFunction_sparse_motion_analysis
Phase 1: Sparse sampling with DIS optical flow.
lightx2v/models/networks/worldmirror/utils/video_utils.py:265
↓ 1 callersMethod_spatial_freqs_for_rank
(self, freqs, h, w, local_per_frame, world_size=1, rank=0)
lightx2v/models/networks/wan/infer/audio/transformer_infer.py:151
↓ 1 callersMethod_split_modulation
(self, self_attn, t_mod)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:26
↓ 1 callersMethod_split_modulation
(self, modulation, embed0)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:162
↓ 1 callersMethod_split_modulation
(self, modulation, timestep_proj)
lightx2v/models/networks/wan/infer/lingbot_va/transformer_infer.py:19
↓ 1 callersMethod_split_single_modulation
(self, mod)
lightx2v/models/networks/flux2/infer/transformer_infer.py:45
↓ 1 callersMethod_split_weight_for_tp
Split a weight tensor for tensor parallel. Returns a list of split weights, one for each rank.
lightx2v/models/networks/ltx2/model.py:289
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
lightx2v/models/networks/worldmirror/models/utils/rotation.py:95
↓ 1 callersFunction_stage_index_for_elapsed
(stages: list[StageSpec], elapsed_s: float)
lightx2v/disagg/workload.py:140
↓ 1 callersMethod_start_instance
(self, msg: dict[str, Any])
lightx2v/disagg/services/instance_proxy.py:98
↓ 1 callersMethod_start_sidecar_process
(self, instance_type: str, gpu_id: str | int, bind_host: str | None = None)
lightx2v/disagg/services/controller.py:385
↓ 1 callersMethod_state_encoder
(self, weights, state)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:141
↓ 1 callersMethod_step_post_denoise
(self, seg_start, seg_end)
lightx2v/models/schedulers/wan/self_forcing/scheduler.py:142
↓ 1 callersMethod_store_config
Save the model configuration.
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:152
↓ 1 callersMethod_store_video_kv
(self, cache, block_idx, k, v)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:76
↓ 1 callersFunction_stream_file_response
(file_path: Path, filename: str | None = None)
lightx2v/server/api/files.py:12
↓ 1 callersFunction_stream_file_response
(file_path: Path, filename: str | None = None)
lightx2v/server/api/tasks/common.py:16
↓ 1 callersFunction_strip_padding_from_grouped_mm_output
(out_padded, dst_idx)
lightx2v/models/networks/neopp/infer/transformer_infer.py:62
↓ 1 callersFunction_swish
(x)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:23
↓ 1 callersMethod_sync
Synchronize to ensure memory visibility across streams. XPU streams do not guarantee cross-stream memory visibility after a per-strea
lightx2v/common/offload/manager.py:50
↓ 1 callersFunction_sync_causal_audio_weights
(module, enc_w)
lightx2v/models/networks/wan/infer/s2v/causal_audio_encoder.py:19
↓ 1 callersFunction_t5
( name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokenizer_kwargs={
lightx2v/models/input_encoders/hf/wan/t5/model.py:724
↓ 1 callersFunction_t5
(name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokenizer_kwargs={}, dtype=torch.float3
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:328
↓ 1 callersFunction_target_hw_for_sample
(sample, default_height, default_width, infer_sample=None)
lightx2v_train/lightx2v_train/infer/image.py:16
↓ 1 callersFunction_taylor
Distribution aware coordinate decoding method. Note: - heatmap height: H - heatmap width: W Args: heatmap (np.ndarra
tools/preprocess/pose2d_utils.py:605
↓ 1 callersMethod_teacher_forcing_latent
(self, sample)
lightx2v_train/lightx2v_train/trainers/tf.py:77
↓ 1 callersMethod_teacher_lora_checkpoint_path
(self, resume_ckpt_path)
lightx2v_train/lightx2v_train/trainers/dopsd.py:134
↓ 1 callersMethod_tensor_parallel_pre_process
Pre-process for tensor parallel: split positional embeddings along head dimension. In tensor parallel, QKV projections are split alo
lightx2v/models/networks/ltx2/model.py:556
↓ 1 callersMethod_tensor_to_pil
(self, tensor)
lightx2v/models/networks/motus/model.py:558
↓ 1 callersMethod_tensor_to_pil
(self, image)
lightx2v_train/lightx2v_train/model_zoo/qwen_image_edit.py:158
↓ 1 callersFunction_tensor_to_png_bytes
(image_tensor: torch.Tensor)
lightx2v/server/services/inference/pipeline_image_encode.py:75
↓ 1 callersMethod_test_service_connection
测试与 LightLLM 服务的连接
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_service.py:90
↓ 1 callersMethod_threshold_sample
(self, sample)
lightx2v/models/schedulers/cosmos3/scheduler.py:223
↓ 1 callersMethod_time_cache_key
(self, inputs, timestep, timestep_action, seq_len, action, state, device, dtype)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:169
↓ 1 callersMethod_time_embed
(self, weights, timesteps: torch.Tensor, noisy_latents: torch.Tensor, action_mode: bool, dtype: torch.dtype)
lightx2v/models/networks/wan/infer/lingbot_va/pre_infer.py:53
↓ 1 callersMethod_time_embedding
(self, weights, timestep, device, dtype)
lightx2v/models/networks/seedvr/infer/pre_infer.py:22
↓ 1 callersMethod_timestep_embedding
(self, t, dim, max_period=10000)
lightx2v/models/networks/hidream_o1_image/infer/pre_infer.py:133
↓ 1 callersMethod_timestep_transform
(self, timesteps: torch.Tensor, latents_shapes: torch.Tensor)
lightx2v/models/schedulers/seedvr/scheduler.py:55
↓ 1 callersFunction_to_binary_mask
Convert connector output mask to binary mask and apply to encoded tensor.
lightx2v/models/input_encoders/hf/ltx2/gemma/embeddings_processor.py:7
↓ 1 callersMethod_to_pil_frames
(video: torch.Tensor)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:610
↓ 1 callersFunction_torchaudio_decode_available
()
lightx2v/utils/audio_io.py:12
↓ 1 callersMethod_trim_segment
(gen_clip_video, audio_clip, segment_actual_video_frames, audio_per_frame)
lightx2v/shot_runner/rs2v_infer.py:129
↓ 1 callersFunction_tune_mode_label
(tune_mode: bool | None, effective: bool)
lightx2v/common/flashinfer_autotune.py:42
↓ 1 callersMethod_two_pass_attn
(self, weights, q, k, v, idx_ar)
lightx2v/models/networks/hidream_o1_image/infer/transformer_infer.py:179
↓ 1 callersMethod_unload_static_engines
Release all cached static engines to free GPU memory.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:182
↓ 1 callersMethod_unpack_action
(preds_action_packed, token_shapes_action, noisy_frame_indexes_action, raw_action_dim)
lightx2v/models/networks/cosmos3/infer/post_infer.py:56
↓ 1 callersMethod_unpack_latents
Unpack latents from [B, (H//2)*(W//2), C*4] to [B, C, H, W]. Reverses the 2x2 packing used by Flux/LongCat. height and width are the
lightx2v/models/video_encoders/hf/longcat_image/vae.py:57
↓ 1 callersMethod_unpack_packed_latents_to_4d
(latents, height, width)
lightx2v/models/schedulers/qwen_image/scheduler.py:543
↓ 1 callersMethod_unpack_sound
(preds_sound_packed)
lightx2v/models/networks/cosmos3/infer/post_infer.py:52
↓ 1 callersMethod_unpatchify_and_unpack_latents
( self, packed_mse_preds, token_shapes_vision, noisy_frame_indexes_vision,
lightx2v/models/networks/cosmos3/infer/post_infer.py:12
↓ 1 callersFunction_unwrap_boxes
(data: Any)
lightx2v/models/networks/hidream_o1_image/utils.py:78
↓ 1 callersMethod_update_queue_metrics
(self, queue_sizes: dict[str, int], transfer_sizes: Optional[dict[str, int]] = None)
lightx2v/disagg/services/decoder.py:84
↓ 1 callersMethod_update_queue_metrics
( self, queue_sizes: dict[str, int], phase1_transfer_sizes: Optional[dict[str, int]] =
lightx2v/disagg/services/transformer.py:230
↓ 1 callersMethod_update_queue_metrics
(self, queue_sizes: dict[str, int], transfer_sizes: Optional[dict[str, int]] = None)
lightx2v/disagg/services/encoder.py:196
↓ 1 callersMethod_update_spatial_dim
(self, ada_args, residual)
lightx2v/models/networks/flux2/infer/feature_caching/transformer_infer.py:98
↓ 1 callersFunction_upload_sync_result_if_needed
(message: ImageTaskRequest, result_png: bytes)
lightx2v/server/api/tasks/image.py:61
↓ 1 callersFunction_use_local_paint_weights
Redirect upstream snapshot_download to local HF weights without patching hy3dpaint.
tools/postprocess/paint_pipeline.py:80
↓ 1 callersMethod_vae_encode
(self, video)
lightx2v/models/runners/wan/wan_s2v_runner.py:96
↓ 1 callersMethod_vae_encode_pose_cond
Align Wan2.2 load_pose_cond: bf16 pixels in, fp32 VAE autocast, float latent out.
lightx2v/models/runners/wan/wan_s2v_runner.py:101
↓ 1 callersMethod_validate_config
(self)
lightx2v/models/networks/bagel/model.py:68
↓ 1 callersMethod_validate_prompt_travel_schedule
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:1197
↓ 1 callersFunction_validate_target_shape
(target_shape, latent_downsample)
lightx2v/models/runners/bagel/i2i_utils.py:13
↓ 1 callersMethod_video_preprocess
(self, video, oh, ow)
lightx2v/models/input_encoders/hf/vace/vace_processor.py:61
↓ 1 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:504
↓ 1 callersFunction_voxel_prune_gaussians
Voxel-based merging of Gaussian splats via weighted average.
lightx2v/models/networks/worldmirror/utils/inference_utils.py:575
↓ 1 callersMethod_wait_for_controller_ok
(self, stage_name: str, config: dict[str, Any])
lightx2v/disagg/services/transformer.py:175
↓ 1 callersMethod_wait_for_controller_ok
(self, stage_name: str, config: dict[str, Any])
lightx2v/disagg/services/encoder.py:148
↓ 1 callersMethod_wait_sender_success
(self, room: int, sender: DataSender)
lightx2v/disagg/services/transformer.py:119
↓ 1 callersMethod_wait_sender_success
(self, room: int, sender: DataSender)
lightx2v/disagg/services/encoder.py:92
↓ 1 callersFunction_wait_task_and_stream_result
(task_id: str, timeout_seconds: int, poll_interval_seconds: float)
lightx2v/server/api/tasks/image.py:22
↓ 1 callersFunction_wait_task_result_png
(task_id: str, timeout_seconds: int, poll_interval_seconds: float)
lightx2v/server/api/openai_images.py:58
↓ 1 callersMethod_wan_mask_rearrange
Rearrange mask for WAN model
lightx2v/models/runners/wan/wan_audio_runner.py:581
↓ 1 callersMethod_warm_up
(self)
lightx2v/models/runners/vsr/vsr_wrapper.py:126
↓ 1 callersFunction_watch_client_disconnect
(request: Request, task_id: str, poll_interval_seconds: float = 0.2)
lightx2v/server/api/openai_images.py:98
↓ 1 callersFunction_watch_client_disconnect
(request: Request, task_id: str, poll_interval_seconds: float = 0.2)
lightx2v/server/api/tasks/image.py:86
↓ 1 callersMethod_wc_status_name
(self, status: int | None)
lightx2v/disagg/rdma_client.py:82
↓ 1 callersFunction_wholebody_to_openpose
Slice the 133-keypoint output into OpenPose-style body / hand / face groups.
tools/preprocess/dwpose_onnx.py:384
↓ 1 callersFunction_worker_main
(args: argparse.Namespace)
lightx2v/disagg/examples/run_controller.py:197
↓ 1 callersFunction_write_audio
(container: av.container.Container, audio_stream: av.audio.AudioStream, audio: Audio)
lightx2v/utils/ltx2_media_io.py:122
↓ 1 callersFunction_write_file_sync
(file_path: Path, content: bytes)
lightx2v/server/api/openai_images.py:42
↓ 1 callersMethod_write_k_segment
(self, code: torch.Tensor, sc: torch.Tensor, mn: torch.Tensor, layer_id: int, physical_start: int)
lightx2v/common/kvcache/quant.py:369
↓ 1 callersFunction_write_request_config
(payload: dict[str, Any], request_id: int, keep_parallel_config: bool)
lightx2v/disagg/examples/run_controller.py:98
↓ 1 callersMethod_write_v_segment
(self, code: torch.Tensor, sc: torch.Tensor, mn: torch.Tensor, layer_id: int, physical_start: int)
lightx2v/common/kvcache/quant.py:390
↓ 1 callersMethod_write_wav
(self, path, audio, sample_rate)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:586
↓ 1 callersFunction_xxyy_relative_to_absolute_bbox
(bbox: Sequence[float], width: int, height: int)
lightx2v/models/networks/hidream_o1_image/utils.py:98
↓ 1 callersFunction_yolox_demo_postprocess
Decode anchor-free YOLOX outputs to (cx, cy, w, h, obj, *cls) format.
tools/preprocess/dwpose_onnx.py:45
↓ 1 callersFunction_yolox_preprocess
Letterbox + transpose to NCHW float32 for YOLOX.
tools/preprocess/dwpose_onnx.py:33
↓ 1 callersMethodacquire_processing_lock
(self, task_id: str, timeout: Optional[float] = None)
lightx2v/server/task_manager.py:218
↓ 1 callersMethodact_quant_fp8_perchannel_sym_torchao
(self, x)
lightx2v/common/ops/mm/mm_weight.py:622
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v_platform/ops/mm/iluvatar_cuda/q_linear.py:51
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:51
↓ 1 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:111
← previousnext →3,101–3,200 of 8,429, ranked by callers