MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 2 callersMethod_num_frame_per_chunk
(self)
lightx2v_train/lightx2v_train/infer/video.py:474
↓ 2 callersMethod_offload_events
(self)
lightx2v/common/kvcache/rolling.py:210
↓ 2 callersFunction_opencv_to_png_bytes
(image: np.ndarray)
lightx2v/server/services/inference/pipeline_image_encode.py:43
↓ 2 callersMethod_pack_image_and_mask_as_dir
(self, task_data: Dict[str, Any])
lightx2v/server/services/generation/base.py:57
↓ 2 callersMethod_pack_latents
Pack latents from [B, C, H, W] to [B, (H//2)*(W//2), C*4] for transformer input. Uses 2x2 packing like Flux: combines 2x2 spatial patches int
lightx2v/models/schedulers/longcat_image/scheduler.py:301
↓ 2 callersMethod_pack_latents
Pack latents from spatial to sequence format.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:254
↓ 2 callersMethod_pack_latents
(latents, batchsize, num_channels_latents, height, width, layers=None)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:164
↓ 2 callersFunction_pad
(x: torch.Tensor, pad, mode: str = "constant", value: float = 0.0)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:40
↓ 2 callersFunction_pad1d
(x: torch.Tensor, pad: tuple[int, int], mode: str)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:58
↓ 2 callersFunction_pad_tensor
(x: Tensor, dim: int, padding_size: int)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:311
↓ 2 callersFunction_parallel_world_size_from_config
(config: dict[str, Any] | None)
lightx2v/disagg/examples/run_controller.py:27
↓ 2 callersFunction_parse_mm_guider_branch
(branch: Optional[dict], fallback_cfg_scale: float)
lightx2v/models/schedulers/ltx2/scheduler.py:24
↓ 2 callersFunction_parse_timestamp
(raw_ts: str)
scripts/disagg/extract_dynamic_latency.py:38
↓ 2 callersMethod_parse_vision_outputs
(self, vision_outputs)
lightx2v/models/networks/motus/model.py:129
↓ 2 callersFunction_pil_to_png_bytes
(pil_image: Image.Image)
lightx2v/server/services/inference/pipeline_image_encode.py:34
↓ 2 callersMethod_post_block
(self, block, residual_x, mixed_attn_out, gate_msa, shift_mlp, scale_mlp, gate_mlp, context, context_mask)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:61
↓ 2 callersMethod_predict_causal_flow
( self, latents, timestep, pos_context, neg_context, kv_cache_
lightx2v_train/lightx2v_train/infer/video.py:314
↓ 2 callersMethod_predict_teacher_velocity
(self, latents, sigma, condition, negative_condition)
lightx2v_train/lightx2v_train/trainers/dmd.py:209
↓ 2 callersMethod_prepare_causal_block_mask
(self, latent, teacher_forcing)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:411
↓ 2 callersMethod_prepare_cond_image
(self, frame_id)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:457
↓ 2 callersMethod_prepare_image_ids
(self, image_latents: list[torch.Tensor], scale: int = 10)
lightx2v/models/schedulers/flux2/scheduler.py:170
↓ 2 callersMethod_prepare_model_input
( self, latent_model_input, action_model_input, latent_t=0, action_t=0
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:182
↓ 2 callersMethod_prepare_output_path
(self, save_result_path: str, task_data: Dict[str, Any])
lightx2v/server/services/generation/base.py:137
↓ 2 callersMethod_prepare_scheduler
Prepare scheduler with given latents and masks. Args: initial_video_latent: Initial video latent. If None, uses self.ini
lightx2v/models/runners/ltx2/ltx2_runner.py:790
↓ 2 callersMethod_preprocess_condition_image
(self, image_processor, img, max_image_area, vae_scale_factor)
lightx2v/models/runners/flux2/flux2_runner.py:161
↓ 2 callersMethod_process_attention_blocks
Process attention blocks with tokens in shape (B*S, P, C).
lightx2v/models/networks/worldmirror/models/models/visual_transformer.py:437
↓ 2 callersMethod_process_dist_attention_blocks
Process attention blocks with tokens in shape (B*S, P, C).
lightx2v/models/networks/worldmirror/models/models/visual_transformer.py:461
↓ 2 callersMethod_process_image_mask_path
(self, image_mask_path: str, task_data: Dict[str, Any])
lightx2v/server/services/generation/base.py:51
↓ 2 callersMethod_process_image_path
(self, image_path: str, task_data: Dict[str, Any])
lightx2v/server/services/generation/base.py:48
↓ 2 callersMethod_process_output
Process output (no batch dimension). Args: scale_shift_table: Scale-shift table, shape [2, hidden_dim] proj_
lightx2v/models/networks/ltx2/infer/post_infer.py:103
↓ 2 callersMethod_process_pose_input
Convert pose string/JSON to action tensors. Args: pose_data: Pose string or JSON path or dict latent_num: Nu
lightx2v/models/runners/worldplay/worldplay_ar_runner.py:163
↓ 2 callersMethod_process_pose_input
Convert pose string/JSON to action tensors. Args: pose_data: Pose string (e.g., "w-3, right-0.5") or JSON path or dict
lightx2v/models/runners/worldplay/worldplay_distill_runner.py:143
↓ 2 callersMethod_process_pose_input
Convert pose string/JSON to action tensors. Args: pose_data: Pose string or JSON path or dict latent_num: Nu
lightx2v/models/runners/worldplay/worldplay_bi_runner.py:286
↓ 2 callersMethod_process_single_byt5_prompt
Process a single prompt for byT5 encoding. Args: prompt_text: The prompt text to process device: Target devi
lightx2v/models/input_encoders/hf/hunyuan15/byt5/model.py:288
↓ 2 callersMethod_project_output
(self, x: Tensor, B: int, N: int, C: int)
lightx2v/models/networks/worldmirror/models/layers/attention.py:86
↓ 2 callersMethod_quant_nhd
( self, nhd: torch.Tensor, )
lightx2v/common/kvcache/quant.py:66
↓ 2 callersMethod_rdma_read_bytes
(self, remote_addr: int, length: int)
lightx2v/disagg/rdma_buffer.py:189
↓ 2 callersMethod_read_logical
(self, layer_id: int, attn_start: int, local_end: int, which: str)
lightx2v/common/kvcache/rolling.py:328
↓ 2 callersMethod_read_logical
(self, layer_id: int, attn_start: int, local_end: int, which: str)
lightx2v/common/kvcache/rolling.py:566
↓ 2 callersMethod_recent_logical_to_physical_chunks
(self, layer_id: int, recent_offset: int, length: int)
lightx2v/common/kvcache/quant.py:462
↓ 2 callersMethod_remap_lora_dict_keys_for_mm_weight
(self, weight_dict)
lightx2v/models/networks/ltx2/model.py:112
↓ 2 callersMethod_remove_lora
(self)
lightx2v/models/networks/base_model.py:373
↓ 2 callersMethod_remove_prefixes
Remove common model prefixes from a key.
lightx2v/utils/lora_loader.py:247
↓ 2 callersMethod_remove_video_audio_path
(self)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:306
↓ 2 callersMethod_repeat_kv_for_gqa
(self, key, value)
lightx2v/models/networks/cosmos3/infer/transformer_infer.py:28
↓ 2 callersFunction_rescale_norm
Rescale normalization: x * sqrt(target_dim / source_dim).
lightx2v/models/input_encoders/hf/ltx2/gemma/feature_extractor.py:81
↓ 2 callersMethod_reset_solver
(self)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:959
↓ 2 callersMethod_reshape_img_attn
(self, img_attn, world_size, shard_seqlen, shard_heads, hidden_dims, seq_p_group, use_fp8_comm)
lightx2v/common/ops/attn/ulysses_attn.py:480
↓ 2 callersMethod_resize_and_centercrop
(cond_image, target_size)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:429
↓ 2 callersMethod_resolution_length
(self, resolution)
lightx2v_train/lightx2v_train/schedulers/time_shift.py:84
↓ 2 callersMethod_resolve_device
(self, args: tuple[Any, ...])
lightx2v/utils/async_vae.py:89
↓ 2 callersMethod_resolve_generation_config
(self)
lightx2v/models/runners/hidream_o1_image/hidream_o1_image_runner.py:91
↓ 2 callersMethod_resolve_image_path
(self, image_path: str)
lightx2v/server/services/generation/base.py:35
↓ 2 callersFunction_resolve_local_paint_hf_root
Return local HF repo root that contains hunyuan3d-paintpbr-v2-1/.
tools/postprocess/paint_pipeline.py:69
↓ 2 callersFunction_resolve_output_attentions
(config, output_attentions)
lightx2v/models/input_encoders/hf/infinitetalk/wav2vec2.py:13
↓ 2 callersMethod_resolve_patched_spatial_size
(self, h, w)
lightx2v/models/runners/wan/wan_audio_runner.py:375
↓ 2 callersFunction_resolve_path
(path: str)
lightx2v/utils/torch_trace_profiler.py:20
↓ 2 callersMethod_resolve_path
(self, path, data_dir)
lightx2v_train/lightx2v_train/data/image_dataset.py:75
↓ 2 callersMethod_resolve_prompt_text
(self, text: str)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:142
↓ 2 callersFunction_retrieve_row_from_lmdb
(env, array_name, dtype, row_index, shape=None)
lightx2v_train/lightx2v_train/data/video_dataset.py:290
↓ 2 callersFunction_rotate
(x: torch.Tensor)
lightx2v/models/networks/qwen_image/infer/utils.py:129
↓ 2 callersFunction_rotate_part
(x_part: torch.Tensor)
lightx2v/models/networks/wan/infer/utils.py:43
↓ 2 callersFunction_round_to_multiple
(value, multiple)
lightx2v/models/runners/bagel/i2i_utils.py:30
↓ 2 callersMethod_run_attention
(self, query, key, value, calculate, merge_batch=False)
lightx2v/models/networks/hunyuan3d/infer/transformer_infer.py:65
↓ 2 callersMethod_run_cache_warmup
(self, latents, start_frame, length)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:448
↓ 2 callersMethod_run_flash_attention
(self, q, k, v, causal=False)
lightx2v/models/networks/wan/infer/matrix_game3/transformer_infer.py:151
↓ 2 callersMethod_run_infer_step
(self, step_index: int, infer_steps: int)
lightx2v/models/runners/neopp/neopp_runner.py:269
↓ 2 callersMethod_run_input_encoder_local_rs2v_static
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:485
↓ 2 callersMethod_run_scheduler_loop
(self, scheduler)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:316
↓ 2 callersFunction_run_sync_image_task
(request: Request, message: ImageTaskRequest)
lightx2v/server/api/openai_images.py:107
↓ 2 callersMethod_sample_synced_int
(self, low, high)
lightx2v_train/lightx2v_train/trainers/dmd.py:227
↓ 2 callersMethod_sample_to_device
(self, sample, device)
lightx2v/models/runners/hidream_o1_image/hidream_o1_image_runner.py:210
↓ 2 callersFunction_save_image_from_item
(item: dict[str, Any], output_path: Path)
scripts/hidream_o1_image/test_openai_images_client.py:50
↓ 2 callersFunction_save_image_from_item
(item: dict[str, Any], output_path: Path)
scripts/server/openai_image/test_openai_images_client.py:26
↓ 2 callersMethod_save_images
(self, images, input_info, log_prefix="Image saved", sound=None)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:706
↓ 2 callersFunction_save_upload_file
(file: UploadFile, target_dir: Path)
lightx2v/server/api/openai_images.py:234
↓ 2 callersFunction_scheduler_config_dict
(scheduler)
lightx2v/models/schedulers/fls_enhance.py:49
↓ 2 callersFunction_sdp
Unified SDP dispatch. q4d/k4d/v4d are [1, L, H, D] fp16 or bf16 on XPU. - sycl_kernels available → hand-written ESIMD Flash Attention
lightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py:41
↓ 2 callersMethod_se3_inverse
(T: torch.Tensor)
lightx2v/models/runners/wan/wan_runner.py:970
↓ 2 callersMethod_segment_latent_shape
Compute `[C, T, H, W]` latent shape for one segment window.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1245
↓ 2 callersMethod_segment_start_frame
(self, segment_idx)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:602
↓ 2 callersMethod_seq_p_group
(self)
lightx2v/models/networks/wan/s2v_model.py:34
↓ 2 callersMethod_seq_parallel_post_process
Post-process for sequence parallel: gather results from all ranks and remove padding. Args: x: Tensor to gather
lightx2v/models/networks/ltx2/model.py:642
↓ 2 callersMethod_seq_parallel_pre_process
(self, pre_infer_out)
lightx2v/models/networks/wan/model.py:125
↓ 2 callersMethod_seq_parallel_token_count
(self, pre_infer_out)
lightx2v/models/networks/wan/infer/infinitetalk/transformer_infer.py:65
↓ 2 callersMethod_set_audio_t_emb
(self)
lightx2v/models/schedulers/wan/audio/scheduler.py:243
↓ 2 callersMethod_set_chunk_cos_sin
Slice cos_sin by frame range (token = frame * H * W).
lightx2v/models/runners/worldplay/worldplay_ar_runner.py:307
↓ 2 callersMethod_set_fake_gradient_sync
(self, enabled)
lightx2v_train/lightx2v_train/trainers/dmd.py:448
↓ 2 callersMethod_set_ring_active
(self, layer_id: int, value: bool)
lightx2v/common/kvcache/quant.py:166
↓ 2 callersMethod_set_sink_len
(self, layer_id: int, value: int)
lightx2v/common/kvcache/quant.py:172
↓ 2 callersMethod_set_student_gradient_sync
(self, enabled)
lightx2v_train/lightx2v_train/trainers/dmd.py:445
↓ 2 callersMethod_setup_audio_post_adapter
(self, config)
lightx2v/models/networks/wan/infer/audio/transformer_infer.py:23
↓ 2 callersMethod_setup_trainable_model
(self, model)
lightx2v_train/lightx2v_train/trainers/base.py:82
↓ 2 callersFunction_shape_from_size
(size: str)
lightx2v/server/api/openai_images.py:47
↓ 2 callersMethod_should_load_pretrained_backbones
(self)
lightx2v/models/networks/motus/model.py:286
↓ 2 callersMethod_sigma_at_timestep
Match legacy: argmin in float64 on ``timesteps_sf`` / ``sigmas_sf``.
lightx2v/models/schedulers/wan/self_forcing/scheduler.py:136
↓ 2 callersMethod_sigma_from_timestep
(self, timestep, dtype)
lightx2v_train/lightx2v_train/infer/video.py:412
↓ 2 callersMethod_sigma_from_timestep
(self, timestep, dtype)
lightx2v_train/lightx2v_train/trainers/dmd.py:1123
↓ 2 callersMethod_sigma_to_t
(self, sigma)
lightx2v/models/schedulers/hunyuan3d/flow_match_euler.py:175
↓ 2 callersMethod_slice_rope
(self, rope_cos_sin, idx, padding_size=0, world_size=None, cur_rank=None)
lightx2v/models/networks/hidream_o1_image/infer/pre_infer.py:183
← previousnext →1,401–1,500 of 8,429, ranked by callers