MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethodbuild_grid_gather_index_and_bucket_fast
(H, W, pool_h, pool_w, seqlen)
lightx2v/common/ops/attn/draft_attn.py:45
↓ 1 callersFunctionbuild_i2i_samples
( prompt, ref_image_paths, height, width, keep_original_aspect, layout_bboxes, tok
lightx2v/models/networks/hidream_o1_image/i2i_utils.py:47
↓ 1 callersFunctionbuild_image_page
( model_path, output_dir, run_inference, lang=DEFAULT_LANG, )
app/utils/image_page.py:32
↓ 1 callersMethodbuild_image_tensor
(self, agentview_rgb, wrist_rgb)
lightx2v/models/runners/wan/fastwam_runner.py:242
↓ 1 callersMethodbuild_instruction
(self, prompt)
lightx2v/models/networks/motus/model.py:549
↓ 1 callersFunctionbuild_interpolated_traj
(index, base_interp_per_pair: int)
lightx2v/models/networks/worldmirror/utils/render_utils.py:150
↓ 1 callersFunctionbuild_moe_model_sig
(config)
lightx2v/models/networks/neopp/infer/moe_fi_autotune.py:12
↓ 1 callersMethodbuild_mot_attention_mask
(video_seq_len, action_seq_len, video_tokens_per_frame, device)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:124
↓ 1 callersFunctionbuild_neopp_model_with_lora
(neopp_module, config, model_kwargs, lora_configs)
lightx2v/models/runners/neopp/neopp_runner.py:20
↓ 1 callersFunctionbuild_paint_config
( model_path: str, hy_repo: str | None = None, max_num_view: int = 6, resolution: int = 512,
tools/postprocess/paint_pipeline.py:109
↓ 1 callersFunctionbuild_parser
()
examples/worldmirror/run_worldmirror.py:48
↓ 1 callersFunctionbuild_payload
(args: argparse.Namespace)
scripts/server/post_sync_t2i_base64.py:8
↓ 1 callersFunctionbuild_payload
(args: argparse.Namespace)
scripts/server/post_sync_t2i_presigned.py:80
↓ 1 callersFunctionbuild_payload
(args: argparse.Namespace)
scripts/server/post_sync_i2i_presigned.py:79
↓ 1 callersMethodbuild_policy_config
(self)
lightx2v_ros/src/inference/inference/fastwam_node/main.py:78
↓ 1 callersFunctionbuild_presigned_url
(args: argparse.Namespace)
scripts/server/post_sync_t2i_presigned.py:18
↓ 1 callersFunctionbuild_presigned_url
(args: argparse.Namespace)
scripts/server/post_sync_i2i_presigned.py:24
↓ 1 callersFunctionbuild_qwen_image
( model_type_input, model_path_input, qwen_image_dit_path_input, qwen_image_vae_path_input,
app/utils/model_utils.py:619
↓ 1 callersFunctionbuild_qwen_image_components
构建 Qwen-Image-Edit-2511/Qwen-Image-2512 模型相关组件(用于图片页面) 必须在 Gradio 的 with 块内调用 Args: model_path: 模型路径 model_path_input: 模型路径输入
app/utils/model_components.py:339
↓ 1 callersFunctionbuild_qwen_image_model_with_lora
(qwen_module, config, model_kwargs, lora_configs)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:38
↓ 1 callersFunctionbuild_rotary_embeddings
(position_ids, head_dim, rope_theta, rope_axes_dim, device, dtype)
lightx2v/models/networks/cosmos3/infer/utils.py:193
↓ 1 callersFunctionbuild_s3_client
(args: argparse.Namespace)
scripts/server/benchmark_sync_s3_latency.py:32
↓ 1 callersFunctionbuild_sam2_video_predictor
( config_file, ckpt_path=None, device="cuda", mode="eval", hydra_overrides_extra=[], a
tools/preprocess/sam_utils.py:113
↓ 1 callersFunctionbuild_scheduler
(num_inference_steps, timesteps_list, shift, device, scheduler_name="default")
lightx2v/models/schedulers/hidream_o1_image/scheduler.py:72
↓ 1 callersFunctionbuild_self_attn_kv_cache
(config, ar_config, kv_size, dtype, device, *, frame_seq_length: int | None = None, num_heads: int | None = No
lightx2v/common/kvcache/manager.py:76
↓ 1 callersFunctionbuild_tcdecoder
构建“更宽”的 decoder;深度增强(IdentityConv2d+ReLU)已在 TAEHV 内部完成。 - 不创建 small / 不做移植 - base_ckpt_path 参数保留但不使用(接口兼容) 返回:big (单个模型)
lightx2v/models/runners/vsr/utils/TCDecoder.py:312
↓ 1 callersFunctionbuild_time_shift_mu
(time_shift_settings)
lightx2v_train/lightx2v_train/schedulers/time_shift.py:96
↓ 1 callersFunctionbuild_trainer
(config)
lightx2v_train/lightx2v_train/utils/registry.py:70
↓ 1 callersFunctionbuild_ui
( model_path, output_dir, run_inference, lang=DEFAULT_LANG, )
app/utils/ui_builder.py:404
↓ 1 callersFunctionbuild_und_expert_config
(config)
lightx2v/models/networks/wan/weights/motus/pre_weights.py:70
↓ 1 callersFunctionbuild_upsampling_path
Build the upsampling path with residual blocks, attention, and upsampling layers.
lightx2v/models/video_encoders/hf/ltx2/audio_vae/upsample.py:58
↓ 1 callersFunctionbuild_video_page
构建视频生成页面 - 重构简化版
app/utils/video_page.py:36
↓ 1 callersMethodbuild_vlm_inputs
(self, instruction, first_frame)
lightx2v/models/networks/motus/model.py:563
↓ 1 callersFunctionbuild_wan21
( model_path_input, dit_path_input, t5_path_input, clip_path_input, vae_path_input, qu
app/utils/model_utils.py:474
↓ 1 callersFunctionbuild_wan21_components
构建 wan2.1 模型相关组件 必须在 Gradio 的 with 块内调用 Returns: dict: 包含所有 wan2.1 相关组件的字典
app/utils/model_components.py:62
↓ 1 callersFunctionbuild_wan22
( model_path_input, high_noise_path_input, low_noise_path_input, t5_path_input, vae_path_i
app/utils/model_utils.py:550
↓ 1 callersFunctionbuild_wan22_components
构建 wan2.2 模型相关组件 必须在 Gradio 的 with 块内调用 Returns: dict: 包含所有 wan2.2 相关组件的字典
app/utils/model_components.py:171
↓ 1 callersFunctionbuild_z_image
构建 Z-Image-Turbo 模型配置
app/utils/model_utils.py:726
↓ 1 callersFunctionbuild_z_image_model_with_lora
(z_image_module, config, model_kwargs, lora_configs)
lightx2v/models/runners/z_image/z_image_runner.py:34
↓ 1 callersFunctionbuild_z_image_turbo_components
构建 Z-Image-Turbo 模型相关组件(用于图片页面) 必须在 Gradio 的 with 块内调用 Args: model_path: 模型路径 model_path_input: 模型路径输入组件 download_sou
app/utils/model_components.py:645
↓ 1 callersMethodbytes_to_ndarray
(self, audio_data)
lightx2v/utils/va_reader_omni.py:400
↓ 1 callersMethodbytes_to_ndarray
(self, audio_data)
lightx2v/utils/va_reader.py:193
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control characters the bpe code bar
lightx2v/models/networks/bagel/tokenization_qwen2.py:31
↓ 1 callersMethodcache_rebuild_needed
(self)
lightx2v/common/flashinfer_autotune.py:57
↓ 1 callersFunctioncache_send_recv
(tensor: List[Tensor], cache_size, times, memory=None)
lightx2v/models/video_encoders/hf/seedvr/context_parallel_lib.py:90
↓ 1 callersMethodcached_decode_dist_2d_withflag
(self, zs, is_first, is_last, world_size_h, world_size_w, cur_rank_h, cur_rank_w)
lightx2v/models/video_encoders/hf/wan/vae.py:1449
↓ 1 callersMethodcalculate_crop_start
Automatically calculate the crop_start position based on identifying user tokens. Args: tokenized_input: The output from
lightx2v/models/input_encoders/hf/hunyuan15/qwen25/model.py:334
↓ 1 callersFunctioncalculate_dimensions
(target_area, ratio)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:28
↓ 1 callersFunctioncalculate_dimensions
(target_area, ratio, multiple_of)
lightx2v/models/runners/ernie_image/ernie_image_runner.py:22
↓ 1 callersFunctioncalculate_dimensions
(target_area, ratio)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:28
↓ 1 callersFunctioncalculate_dimensions
(target_area, ratio)
lightx2v/models/runners/flux2/flux2_runner.py:22
↓ 1 callersFunctioncalculate_dimensions
(max_size, ratio)
lightx2v/models/networks/hidream_o1_image/utils.py:283
↓ 1 callersFunctioncalculate_in_frustum_mask
A function that takes in the depth, intrinsics and c2w matrices of two sets of views, and then works out which of the pixels in the first set
lightx2v/models/networks/worldmirror/models/utils/frustum.py:24
↓ 1 callersFunctioncalculate_n_query_tokens
(sp_rank, sp_size, n_tokens_per_rank, n_tokens)
lightx2v/models/input_encoders/hf/seko_audio/audio_adapter.py:74
↓ 1 callersFunctioncalculate_new_size
(orig_w, orig_h, target_area, divisor=64)
tools/preprocess/utils.py:62
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
lightx2v/models/schedulers/qwen_image/scheduler.py:28
↓ 1 callersFunctioncalculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
lightx2v/models/schedulers/z_image/scheduler.py:28
↓ 1 callersFunctioncalculate_shift
Calculate shift for timestep scheduling based on image sequence length.
lightx2v/models/schedulers/longcat_image/scheduler.py:20
↓ 1 callersMethodcalculate_should_calc
(self, img, vec, block)
lightx2v/models/networks/hunyuan_video/infer/feature_caching/transformer_infer.py:145
↓ 1 callersFunctioncalculate_unprojected_mask
Calcuate the loss mask for the target views in the batch
lightx2v/models/networks/worldmirror/models/utils/frustum.py:7
↓ 1 callersMethodcalibrate_x_absmax
(self)
lightx2v_kernel/test/nvfp4_nvfp4/test_bench2.py:26
↓ 1 callersFunctioncall_sync_api
(args: argparse.Namespace, payload: Dict[str, Any])
scripts/server/post_sync_t2i_presigned.py:96
↓ 1 callersFunctioncall_sync_api
(args: argparse.Namespace, payload: Dict[str, Any])
scripts/server/post_sync_i2i_presigned.py:105
↓ 1 callersFunctioncamera_space_to_pixel_space
Convert camera space points to pixel space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v1,
lightx2v/models/networks/worldmirror/models/utils/frustum.py:130
↓ 1 callersFunctioncamera_space_to_world_space
Convert camera space points to world space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v, h
lightx2v/models/networks/worldmirror/models/utils/frustum.py:114
↓ 1 callersMethodcancel_all_tasks
(self)
lightx2v/server/task_manager.py:163
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
lightx2v/models/input_encoders/hf/wan/t5/tokenizer.py:24
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
lightx2v/models/input_encoders/hf/wan/matrix_game2/tokenizers.py:24
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/tokenizers.py:24
↓ 1 callersMethodcast_bias_weight
(self, input_tensor=None, dtype=None, device=None, bias_dtype=None)
lightx2v/common/ops/mm/mm_weight.py:2118
↓ 1 callersMethodcast_dtype
Cast every loaded MM/LN tensor to ``dtype`` in-place. Skip ``Default-ForceFp32`` leaves — those are defined as sticky fp32. Called fr
lightx2v/models/networks/worldmirror/weights/transformer_weights.py:498
↓ 1 callersFunctioncast_to_fp4
(x)
lightx2v_kernel/test/nvfp4_nvfp4/fake_quant.py:10
↓ 1 callersMethodcenter_crop_to_aspect
(self, img, height, width)
lightx2v/models/runners/wan/wan_animate_runner.py:122
↓ 1 callersFunctioncenter_vertices
Translate the vertices so that bounding box is centered at zero.
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/surface_extractors.py:32
↓ 1 callersMethodcfg_on_denoiser_output
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:169
↓ 1 callersMethodchange_segment_duration
(self, segment_duration)
lightx2v/utils/va_reader_omni.py:464
↓ 1 callersFunctioncheck_ai_device
(platform="cuda")
lightx2v_platform/base/base.py:21
↓ 1 callersMethodcheck_compile_shapes
(self, compile_shapes)
lightx2v/models/networks/wan/audio_model.py:147
↓ 1 callersFunctioncheck_full_body_both
(flag1, flag2)
tools/preprocess/retarget_pose.py:484
↓ 1 callersMethodcheck_sub_servers
(self, task_type)
lightx2v/models/runners/default_runner.py:165
↓ 1 callersFunctioncheck_valid
(w, h)
tools/preprocess/utils.py:65
↓ 1 callersFunctionclassifier_free_guidance
( pos: torch.Tensor, neg: torch.Tensor, scale: float, rescale: float = 0.0, )
lightx2v/models/networks/seedvr/utils/utils.py:18
↓ 1 callersFunctionclassifier_free_guidance_dispatcher
( pos: Callable, neg: Callable, scale: float, rescale: float = 0.0, )
lightx2v/models/networks/seedvr/utils/utils.py:34
↓ 1 callersMethodcleanup
(self)
lightx2v/server/services/inference/worker.py:213
↓ 1 callersMethodclear
(self)
lightx2v/utils/va_controller.py:235
↓ 1 callersMethodclear
(self)
lightx2v/models/networks/neopp/infer/kv_cache_manager.py:57
↓ 1 callersMethodclear
Clear all cache.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:86
↓ 1 callersMethodclear
(self)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:352
↓ 1 callersMethodclear
(self)
lightx2v/models/schedulers/wan/lingbot_va/scheduler.py:124
↓ 1 callersMethodclear_cache
(self)
lightx2v/models/networks/hidream_o1_image/infer/pre_infer.py:31
↓ 1 callersMethodclear_cache
(self)
lightx2v/models/video_encoders/hf/wan/vae.py:812
↓ 1 callersMethodclear_offload_params
(self, pre_infer_out)
lightx2v/models/networks/wan/infer/offload/transformer_infer.py:158
↓ 1 callersMethodclear_pred
(self)
lightx2v/common/kvcache/fifo.py:47
↓ 1 callersMethodclear_vision_cache
Clear only vision cache (keep text cache for next chunk).
lightx2v/models/networks/worldplay/ar_model.py:114
↓ 1 callersMethodclear_vision_cache
Clear only vision cache (keep text cache).
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:80
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
(pretrained=False, pretrained_name="open-clip-xlm-roberta-large-vit-huge-14", **kwargs)
lightx2v/models/input_encoders/hf/wan/xlm_roberta/model.py:438
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
(pretrained=False, pretrained_name="open-clip-xlm-roberta-large-vit-huge-14", **kwargs)
lightx2v/models/input_encoders/hf/wan/matrix_game2/clip.py:261
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
(pretrained=False, pretrained_name="open-clip-xlm-roberta-large-vit-huge-14", **kwargs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:401
↓ 1 callersMethodclose
Release any persistent file handles (lazy_load). For one-shot CLI invocations the OS reclaims handles at process exit, but long-runni
lightx2v/models/networks/worldmirror/model.py:843
↓ 1 callersMethodclose_room_socket
(self, room: int)
lightx2v/disagg/conn.py:280
← previousnext →3,301–3,400 of 8,429, ranked by callers