MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersFunctionclosest_color
(requested_color)
lightx2v/models/input_encoders/hf/hunyuan15/byt5/format_prompt.py:4
↓ 1 callersFunctioncollect_fp32_critical_modules
Find modules that must stay fp32 under mixed precision. Mirrors the HY-World-2.0 pipeline rule: keep ``MlpFP32.fc2`` and ``scratch.output_con
lightx2v/models/networks/worldmirror/model.py:184
↓ 1 callersMethodcommit
(self)
lightx2v/common/ops/attn/utils/ring_comm.py:35
↓ 1 callersMethodcomplete_task
(self, task_id: str, save_result_path: Optional[str] = None, result_png: Optional[bytes] = None, usage: Option
lightx2v/server/task_manager.py:108
↓ 1 callersFunctioncompute_adaptive_target_size
Compute inference resolution = min(image_longest_edge, max_target_size). Rounds down to nearest multiple of patch_size. Avoids upsampling small i
lightx2v/models/networks/worldmirror/utils/inference_utils.py:170
↓ 1 callersFunctioncompute_filter_mask
Compute unified filter mask. Returns (filter_mask, gs_filter_mask) tuple.
lightx2v/models/networks/worldmirror/utils/inference_utils.py:465
↓ 1 callersFunctioncompute_freqs_causvid
(c, grid_sizes, freqs, start_frame=0)
lightx2v/models/networks/wan/infer/utils.py:164
↓ 1 callersFunctioncompute_latent_shape_from_image
(config, image_tensor)
lightx2v/disagg/examples/wan_i2v.py:34
↓ 1 callersMethodcompute_loss_on_sample
(self, sample)
lightx2v_train/lightx2v_train/trainers/flow.py:16
↓ 1 callersFunctioncompute_preprocessing_transform
Compute the resize + center-crop transform applied by prepare_images_to_tensor. Returns dict with orig/new/final sizes and scale/crop parameters.
lightx2v/models/networks/worldmirror/utils/inference_utils.py:188
↓ 1 callersMethodcompute_usage
Compute token usage for the current generation. Returns a dict with fields matching the OpenAI Usage schema, or None if the runner ca
lightx2v/models/runners/base_runner.py:223
↓ 1 callersMethodconfig_video_padding
(self)
lightx2v/utils/va_recorder.py:361
↓ 1 callersMethodconfigure
(self, text_config)
lightx2v/models/networks/hidream_o1_image/weights/transformer_weights.py:69
↓ 1 callersMethodconnector
(self, weights, x)
lightx2v/models/networks/bagel/infer/pre_infer.py:123
↓ 1 callersMethodconv_post
(self)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:545
↓ 1 callersMethodconv_pre
(self)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:541
↓ 1 callersMethodconvert_data
(self, audios, images)
lightx2v/utils/va_recorder_x264.py:112
↓ 1 callersFunctionconvert_key
Convert a single key from Diffusers format to Wan format. Returns None if the key should be skipped.
tools/extract/convert_vigen_to_x2v_model.py:92
↓ 1 callersFunctionconvert_key
Convert a single key using compiled rules
tools/convert/converter.py:528
↓ 1 callersFunctionconvert_lightning_to_x2v
Convert Lightning LoRA weights to Lightx2v format The conversion process: 1. Group weights by base key (alpha, lora_down, lora_up) 2
tools/extract/convert_lightning_to_x2v_lora.py:91
↓ 1 callersMethodconvert_model_output
(self, model_output: torch.Tensor, *args, sample: torch.Tensor = None, **kwargs)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:610
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
lightx2v/models/schedulers/hidream_o1_image/fm_solvers_unipc.py:254
↓ 1 callersMethodconvert_model_output
( self, model_output: torch.Tensor, *args, sample: torch.Tensor = None,
lightx2v/models/schedulers/wan/scheduler.py:130
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
lightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py:258
↓ 1 callersMethodconvert_model_output
(self, model_output, sample, step_index=None)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:104
↓ 1 callersMethodconvert_model_output
(self, model_output, sample)
lightx2v/models/schedulers/cosmos3/scheduler.py:264
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:304
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py:254
↓ 1 callersMethodconvert_pcm_s16le_to_mono_resampled
(self, audio_data, audio_info)
lightx2v/utils/va_reader_omni.py:408
↓ 1 callersFunctionconvert_rgb_to_names
(rgb_tuple)
lightx2v/models/input_encoders/hf/hunyuan15/byt5/format_prompt.py:17
↓ 1 callersFunctionconvert_swizzled_to_linear
(a_sf_swizzled: torch.Tensor, m, k, block_size)
lightx2v_kernel/test/nvfp4_nvfp4/test_bench1.py:21
↓ 1 callersFunctionconvert_to_bf16
Convert all tensors to bfloat16.
tools/convert/seko_talk_converter.py:110
↓ 1 callersFunctionconvert_to_channels_last_3d
Recursively convert all Conv3d weights in module to channels_last_3d format. This eliminates NCHW<->NHWC format conversion overhead in cuDNN.
lightx2v/models/video_encoders/hf/wan/vae.py:52
↓ 1 callersFunctionconvert_to_channels_last_3d
Recursively convert all Conv3d weights in module to channels_last_3d format. This eliminates NCHW<->NHWC format conversion overhead in cuDNN.
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:185
↓ 1 callersFunctionconvert_vigen_to_x2v
Convert ViGen-DiT model weights to Lightx2v format
tools/extract/convert_vigen_to_x2v_model.py:110
↓ 1 callersFunctionconvert_weights
(args)
tools/convert/converter.py:474
↓ 1 callersFunctioncopy_non_weight_files
(source_dir, target_dir)
tools/convert/converter.py:720
↓ 1 callersFunctioncreate_api_router
()
lightx2v/server/api/router.py:9
↓ 1 callersFunctioncreate_block_mask_cached
(score_mod, B, H, M, N, device="cuda", _compile=False)
lightx2v/common/ops/attn/svg_attn.py:235
↓ 1 callersMethodcreate_clip_generator
(self, clip_config: ClipConfig)
lightx2v/shot_runner/shot_base.py:125
↓ 1 callersFunctioncreate_download_wrappers
创建所有模型下载的包装函数 Args: get_choices_funcs: 包含所有 get_choices 函数的字典 Returns: dict: 包含所有 download 函数的字典
app/utils/model_handlers.py:633
↓ 1 callersMethodcreate_embeddings
( self, video_features: torch.Tensor, audio_features: torch.Tensor | None, add
lightx2v/models/input_encoders/hf/ltx2/gemma/embeddings_processor.py:25
↓ 1 callersMethodcreate_empty_kv_cache
(self, dtype, device)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:30
↓ 1 callersFunctioncreate_filter_mask
Create filter mask based on confidence, edges, and sky segmentation. Returns pts_mask [S,H,W] or (pts_mask, gs_mask) tuple if gs_depth_preds give
lightx2v/models/networks/worldmirror/utils/inference_utils.py:346
↓ 1 callersFunctioncreate_i2v_messages
Create messages for image-to-video tasks
scripts/server/post_vbench_i2v.py:9
↓ 1 callersFunctioncreate_layout_reference_images
Create bordered ref images plus one layout image; returns paths to pass as ref_images.
lightx2v/models/networks/hidream_o1_image/utils.py:205
↓ 1 callersFunctioncreate_sampler_from_config
( config, schedule: Schedule, timesteps: SamplingTimesteps, )
lightx2v/models/schedulers/seedvr/utils.py:295
↓ 1 callersFunctioncreate_sampling_timesteps_from_config
( config, schedule: Schedule, device: torch.device, dtype: torch.dtype = torch.float32, )
lightx2v/models/schedulers/seedvr/utils.py:312
↓ 1 callersFunctioncreate_schedule_from_config
( config, device: torch.device, dtype: torch.dtype = torch.float32, )
lightx2v/models/schedulers/seedvr/utils.py:284
↓ 1 callersMethodcreate_self_attn_kv_cache
( self, cache_name, kv_size: int, *, kv_cache_scheme: str | None = Non
lightx2v/common/kvcache/manager.py:135
↓ 1 callersFunctioncreate_simple_video
(frames=10, height=480, width=640)
lightx2v/utils/video_recorder.py:372
↓ 1 callersFunctioncreate_simple_video
(frames=10, height=480, width=640)
lightx2v/utils/va_recorder.py:633
↓ 1 callersFunctioncreate_tiles
( latent_shape: torch.Size, splitters: List[SplitOperation], mappers: List[MappingOperation], )
lightx2v/models/video_encoders/hf/ltx2/video_vae/tiling.py:239
↓ 1 callersFunctioncreate_tiles_from_intervals_and_mappers
( intervals: LatentIntervals, mappers: List[MappingOperation], )
lightx2v/models/video_encoders/hf/ltx2/video_vae/tiling.py:207
↓ 1 callersFunctioncreate_update_status_wrappers
创建所有模型状态更新的包装函数 Returns: dict: 包含所有 update 函数的字典
app/utils/model_handlers.py:566
↓ 1 callersFunctioncreate_uv_grid
Create a normalized UV grid of shape (width, height, 2). The grid spans horizontally and vertically according to an aspect ratio, ensuri
lightx2v/models/networks/worldmirror/models/utils/grid.py:47
↓ 1 callersFunctioncreate_window_3d
(window_size, channel=1)
lightx2v/models/vfi/rife/model/pytorch_msssim/__init__.py:22
↓ 1 callersFunctioncrop_and_resize
(image, target_height, target_width)
lightx2v_train/lightx2v_train/data/video_dataset.py:25
↓ 1 callersFunctioncustom_qr
(input_tensor)
lightx2v/models/input_encoders/hf/animate/motion_encoder.py:10
↓ 1 callersFunctiondeal_hand_keypoints
(hand_res, r_ratio, l_ratio, hand_score_th=0.5)
tools/preprocess/retarget_pose.py:113
↓ 1 callersMethoddecide_system_prompt
(self, tar_lang="ch")
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/prompt_extend.py:129
↓ 1 callersMethoddecode
(self, z: Tensor, return_dict: bool = True, generator=None)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:771
↓ 1 callersMethoddecode
(self, z: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:320
↓ 1 callersMethoddecode
(self, latents, input_info)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:130
↓ 1 callersMethoddecode
(self, z, scale)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:451
↓ 1 callersFunctiondecode_audio
Decode an audio latent representation using the provided audio decoder and vocoder. Args: latent: Input audio latent tensor.
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:566
↓ 1 callersFunctiondecode_audio_from_file
Decodes audio from a file, optionally seeking to a start time and limiting duration. Args: path: Path to the audio/video file containing a
lightx2v/utils/ltx2_media_io.py:272
↓ 1 callersMethoddecode_dist_2d
(self, z, world_size_h, world_size_w)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:828
↓ 1 callersMethoddecode_dist_2d
(self, zs, world_size_h, world_size_w, cur_rank_h, cur_rank_w)
lightx2v/models/video_encoders/hf/wan/vae.py:1285
↓ 1 callersMethoddecode_dist_2d_stream
(self, zs, world_size_h, world_size_w, cur_rank_h, cur_rank_w)
lightx2v/models/video_encoders/hf/wan/vae.py:1368
↓ 1 callersFunctiondecode_image
(image_path: str)
lightx2v/utils/ltx2_media_io.py:117
↓ 1 callersMethoddecode_latent
(self, latent)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:135
↓ 1 callersMethoddecode_mesh
( self, latents, box_v=1.01, mc_level=0.0, num_chunks=8000, oc
lightx2v/models/video_encoders/hf/hunyuan3d/decoder.py:75
↓ 1 callersFunctiondecode_single_frame
(video_file: str)
lightx2v/utils/ltx2_media_io.py:369
↓ 1 callersFunctiondecode_video
Decode a video latent tensor with the given decoder. Args: latent: Tensor [c, f, h, w] video_decoder: Decoder module.
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:899
↓ 1 callersMethoddecode_video
Decode a sequence of frames. Args: x: input NTCHW latent (C=12) tensor with ~Gaussian values. parallel: if True, all
lightx2v/models/video_encoders/hf/tae.py:281
↓ 1 callersMethoddecode_video
(self, vid_enc)
lightx2v/models/video_encoders/hf/wan/vae.py:1613
↓ 1 callersMethoddecode_video
(self, x, scale=[0, 1])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:984
↓ 1 callersFunctiondecode_video_from_file
(path: str, frame_cap: int, device: DeviceLikeType)
lightx2v/utils/ltx2_media_io.py:333
↓ 1 callersMethoddecoder_layer
( self, block_weight, layer_idx, packed_query_sequence: torch.Tensor,
lightx2v/models/networks/bagel/infer/transformer_infer.py:206
↓ 1 callersMethoddefault
(cls)
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:39
↓ 1 callersMethoddefault
(cls)
lightx2v/models/video_encoders/hf/ltx2/video_vae/tiling.py:104
↓ 1 callersMethoddenoise_teacher_forcing
(self, noisy_latent, timestep_or_sigma, condition, clean_latent, aug_timestep_or_sigma=None)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:287
↓ 1 callersMethoddenormalize_actions
(self, actions)
lightx2v/models/networks/motus/model.py:498
↓ 1 callersFunctiondepth_mae
Return list of (filename, mae, ok) per depth_XXXX.npy pair.
scripts/worldmirror/compare_to_reference.py:128
↓ 1 callersFunctiondepth_to_camera_coords
Convert depth map to 3D camera coordinates. Args: depthmap (BxHxW tensor): Batch of depth maps camera_intrinsics (Bx3x3 tens
lightx2v/models/networks/worldmirror/models/utils/geometry.py:4
↓ 1 callersMethoddequant
(self, tensor, scales, zeros)
lightx2v/utils/quant_utils.py:137
↓ 1 callersMethoddequant
(self, tensor, scales, zeros)
lightx2v/utils/quant_utils.py:185
↓ 1 callersFunctiondequantize
(data, qtype, oshape, dtype=None)
lightx2v/utils/ggml_tensor.py:619
↓ 1 callersFunctiondequantize_c
(tensor)
lightx2v/utils/ggml_tensor.py:595
↓ 1 callersMethoddestroy_node
(self)
lightx2v_ros/src/visualization/visualization/image_web_viewer_node/main.py:110
↓ 1 callersMethoddestroy_node
(self)
lightx2v_ros/src/inference/inference/fastwam_node/main.py:165
↓ 1 callersMethoddestroy_node
(self)
lightx2v_ros/src/simulator/simulator/libero_node/main.py:131
↓ 1 callersMethoddetect
Run detector + pose. Input/Output are RGB uint8 ndarrays. Returns: keypoints : (N, 133, 2) scores : (N, 133)
tools/preprocess/dwpose_onnx.py:438
↓ 1 callersMethoddetect_extension
(self, data: bytes)
lightx2v/server/media/base.py:60
↓ 1 callersMethoddetect_format
Detect the LoRA format of a given key. Args: key: The weight key to check lora_weights: The full LoRA weight
lightx2v/utils/lora_loader.py:111
↓ 1 callersFunctiondetect_persons
Run YOLOX, keep COCO ``person`` class only. Returns: ``(N, 4)`` xyxy boxes in original image coordinates.
tools/preprocess/dwpose_onnx.py:105
↓ 1 callersMethoddevice_synchronize
( self, )
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:913
↓ 1 callersFunctiondiagonal_band_mask_from_sparsity
( block_num: int, block_num_per_frame: int, sparsity: float, device="cpu", )
lightx2v/common/ops/attn/svg_attn.py:295
↓ 1 callersMethoddisable_compile_mode
(self, method_name: str = None)
lightx2v/utils/custom_compiler.py:138
← previousnext →3,401–3,500 of 8,429, ranked by callers