MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethodget_current_model_index
(self)
lightx2v/models/runners/wan/wan_runner.py:695
↓ 1 callersMethodget_custom_shape
(self)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:341
↓ 1 callersMethodget_custom_shape
(self)
lightx2v/models/runners/longcat_image/longcat_image_runner.py:301
↓ 1 callersMethodget_custom_shape
(self)
lightx2v/models/runners/flux2/flux2_runner.py:265
↓ 1 callersMethodget_data_url_pattern
Return the regex pattern for data URL.
lightx2v/server/media/base.py:24
↓ 1 callersMethodget_data_url_prefix
(self)
lightx2v/server/media/image.py:22
↓ 1 callersMethodget_data_url_prefix
Return the data URL prefix, e.g. 'data:image/' or 'data:audio/'.
lightx2v/server/media/base.py:19
↓ 1 callersMethodget_data_url_prefix
(self)
lightx2v/server/media/audio.py:24
↓ 1 callersMethodget_default_extension
(self)
lightx2v/server/media/image.py:28
↓ 1 callersMethodget_default_extension
Return the default extension for this media type.
lightx2v/server/media/base.py:29
↓ 1 callersMethodget_default_extension
(self)
lightx2v/server/media/audio.py:30
↓ 1 callersFunctionget_device_mesh
()
lightx2v_train/lightx2v_train/runtime/distributed.py:56
↓ 1 callersFunctionget_diagonal_split_mask
(i, j, token_per_frame, sparse_type, device)
lightx2v/common/ops/attn/radial_attn.py:51
↓ 1 callersMethodget_dims
(self, input_dim)
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/attention_blocks.py:104
↓ 1 callersFunctionget_dit_choices_func
(model_path_val)
app/utils/model_components.py:355
↓ 1 callersMethodget_editing_prompts
(self, tpl_pose_metas, refer_pose_meta)
tools/preprocess/process_pipepline.py:385
↓ 1 callersMethodget_encoder_output_i2v
(self, clip_encoder_out, vae_encoder_out, text_encoder_output, img=None)
lightx2v/models/runners/wan/wan_runner.py:601
↓ 1 callersMethodget_encoder_output_i2v
(self, clip_encoder_out, vae_encoder_out, text_encoder_output, img=None)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1309
↓ 1 callersMethodget_endpoint
( self, pred: torch.Tensor, x_t: torch.Tensor, t: torch.Tensor, )
lightx2v/models/schedulers/seedvr/utils.py:214
↓ 1 callersFunctionget_ernie_timestep_embedding
( timesteps: torch.Tensor, embedding_dim: int, flip_sin_to_cos: bool = False, downscale_freq_s
lightx2v/models/networks/ernie_image/infer/pre_infer.py:9
↓ 1 callersFunctionget_face_bboxes
(kp2ds, scale, image_shape)
tools/preprocess/utils.py:168
↓ 1 callersMethodget_fetch_duration
(self)
lightx2v/utils/va_reader_omni.py:452
↓ 1 callersFunctionget_field
(reader, field_name, field_type)
lightx2v/utils/ggml_tensor.py:268
↓ 1 callersFunctionget_fractional_positions
(indices_grid: torch.Tensor, max_pos: list[int])
lightx2v/models/networks/ltx2/infer/utils.py:163
↓ 1 callersFunctionget_fractional_positions
(indices_grid: torch.Tensor, max_pos: list[int])
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:106
↓ 1 callersMethodget_freqs
(self, shape: torch.LongTensor)
lightx2v/models/networks/seedvr/utils/rope.py:81
↓ 1 callersMethodget_freqs
( self, vid_shape: torch.LongTensor, txt_shape: torch.LongTensor, )
lightx2v/models/networks/seedvr/utils/rope.py:145
↓ 1 callersFunctionget_gpu_generation
检测GPU系列,返回 '40' 表示40系,'30' 表示30系,None 表示其他
app/utils/model_utils.py:155
↓ 1 callersFunctionget_gpu_memory
获取GPU显存(GB)
app/utils/model_utils.py:113
↓ 1 callersFunctionget_gpu_rules
根据分辨率获取 GPU 规则 Args: resolution: 分辨率 ("480p", "540p", "720p") Returns: list: GPU 规则列表,每个元素为 (threshold, config_dict)
app/utils/ui_builder.py:16
↓ 1 callersMethodget_image_caption
(self, prompt_image)
lightx2v/models/input_encoders/hf/qwen25/qwen25_vlforconditionalgeneration.py:137
↓ 1 callersMethodget_image_switch
(self)
lightx2v/utils/va_reader_omni.py:517
↓ 1 callersMethodget_immediate_switch
(self)
lightx2v/utils/va_reader_omni.py:505
↓ 1 callersMethodget_kv_cache
(self, cache_name, dtype, device)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:42
↓ 1 callersFunctionget_latent_shape_with_lat_hw
(config, latent_h, latent_w)
lightx2v/disagg/examples/wan_i2v.py:25
↓ 1 callersMethodget_latent_shape_with_target_hw
(self)
lightx2v/models/runners/neopp/neopp_runner.py:159
↓ 1 callersFunctionget_lora_base_key
Extract base key from LoRA weight key Examples: diffusion_model.blocks.0.cross_attn.o.alpha -> diffusion_model.blocks.0.cross_attn.o
tools/extract/convert_lightning_to_x2v_lora.py:72
↓ 1 callersMethodget_mask
(self, frames, th_step, kp2ds_all, use_valid_body_keypoints=True)
tools/preprocess/process_pipepline.py:435
↓ 1 callersFunctionget_mask_body_img
(img_copy, hand_mask, k=7, iterations=1)
tools/preprocess/utils.py:54
↓ 1 callersFunctionget_mask_boxes
Args: mask: [h, w] Returns:
tools/preprocess/utils.py:8
↓ 1 callersMethodget_memory_window
Get memory window indices for current chunk. For AR generation, we need to attend to previous chunks within the memory windo
lightx2v/models/schedulers/worldplay/ar_scheduler.py:162
↓ 1 callersFunctionget_meshgrid_nd
Get n-D meshgrid with start, stop and num. Args: start (int or tuple): If len(args) == 0, start is num; If len(args) == 1, start is
lightx2v/models/networks/wan/infer/matrix_game2/posemb_layers.py:15
↓ 1 callersFunctionget_meshgrid_nd
Get n-D meshgrid with start, stop and num. Args: start (int or tuple): If len(args) == 0, start is num; If len(args) == 1, start is
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:17
↓ 1 callersMethodget_metrics
(self)
lightx2v/disagg/monitor.py:55
↓ 1 callersMethodget_minmax_range
(self, tensor)
lightx2v/utils/quant_utils.py:51
↓ 1 callersFunctionget_model_architecture
(reader)
lightx2v/utils/ggml_tensor.py:283
↓ 1 callersFunctionget_model_configs
( model_type_input, model_path_input, dit_path_input, high_noise_path_input, low_noise_pat
app/utils/model_utils.py:803
↓ 1 callersMethodget_motion
(self, img)
lightx2v/models/input_encoders/hf/animate/motion_encoder.py:295
↓ 1 callersFunctionget_motus_quant_flags
(config)
lightx2v/models/networks/wan/weights/motus/_shared.py:22
↓ 1 callersMethodget_mse_range
(self, tensor)
lightx2v/utils/quant_utils.py:60
↓ 1 callersFunctionget_na_rope
(rope_type: Optional[str], dim: int)
lightx2v/models/networks/seedvr/utils/rope.py:164
↓ 1 callersMethodget_next_timestep
( self, t: torch.Tensor, )
lightx2v/models/schedulers/seedvr/utils.py:200
↓ 1 callersFunctionget_norm_limit
()
lightx2v/models/video_encoders/hf/seedvr/global_config.py:6
↓ 1 callersFunctionget_orig_shape
(reader, tensor_name: str)
lightx2v/utils/ggml_tensor.py:256
↓ 1 callersMethodget_output_extension
(self)
lightx2v/server/services/generation/image.py:15
↓ 1 callersMethodget_params
Get parameters for ``crop`` for a random crop. Args: img (PIL Image): Image to be cropped. output_size (tuple): Expec
lightx2v/models/video_encoders/hf/seedvr/data/image/transforms/area_resize.py:51
↓ 1 callersMethodget_pending_task_count
(self)
lightx2v/server/task_manager.py:210
↓ 1 callersMethodget_pipeline_infer_kwargs
Return kwargs to pass to pipeline.__call__. Override to adapt model-specific parameter names.
lightx2v_train/lightx2v_train/model_zoo/base.py:178
↓ 1 callersMethodget_pipeline_sample_kwargs
Return per-sample kwargs to pass to pipeline.__call__ during native inference.
lightx2v_train/lightx2v_train/model_zoo/base.py:187
↓ 1 callersFunctionget_postprocess_paint_parser
()
tools/postprocess/postprocess_paint.py:10
↓ 1 callersFunctionget_preprocess_parser
()
tools/preprocess/preprocess_data.py:8
↓ 1 callersFunctionget_preprocess_parser
()
tools/preprocess/ltx2.3_preprocess_data.py:40
↓ 1 callersFunctionget_priority
(name)
app/utils/model_utils.py:409
↓ 1 callersMethodget_progress_bar
(self)
lightx2v/models/schedulers/seedvr/utils.py:223
↓ 1 callersFunctionget_prompt_language
Detect if the text is primarily Chinese or English.
lightx2v/models/input_encoders/hf/longcat/longcat_text_encoder.py:31
↓ 1 callersFunctionget_qk_lens_audio_range
( n_tokens_per_rank: torch.Tensor, n_query_tokens: torch.Tensor, n_tokens_per_frame: torch.Tensor,
lightx2v/models/input_encoders/hf/seko_audio/audio_adapter.py:29
↓ 1 callersMethodget_qparams
(self, tensor_range, device)
lightx2v/utils/quant_utils.py:63
↓ 1 callersFunctionget_ratio_diff
(w, h)
tools/preprocess/utils.py:70
↓ 1 callersFunctionget_ref_results
( a_fp4, b_fp4, a_sf, b_sf, a_global_scale, b_global_scale, m, n, dtype,
lightx2v_kernel/test/nvfp4_nvfp4/test_bench1.py:73
↓ 1 callersFunctionget_reference_state_sequence
(frames_per_clip=17, target_fps=16)
lightx2v/shot_runner/rs2v_infer.py:19
↓ 1 callersFunctionget_render_params
(image_width: int, image_height: int)
lightx2v/models/networks/hidream_o1_image/utils.py:150
↓ 1 callersFunctionget_sample_indices
(original_fps, total_frames, target_fps, num_sample, fixed_start=None)
lightx2v/models/input_encoders/hf/wan/s2v/audio_encoder.py:14
↓ 1 callersFunctionget_scaled_pose
(canvas, src_canvas, keypoints, keypoints_hand, bone_ratio_list, delta_ground_x, delta_ground_y, rescaled_src_
tools/preprocess/retarget_pose.py:153
↓ 1 callersFunctionget_scheduler_choices_func
(model_path_val)
app/utils/model_components.py:369
↓ 1 callersFunctionget_scheduler_fls_config
(scheduler)
lightx2v/models/schedulers/fls_enhance.py:54
↓ 1 callersFunctionget_shm_client
获取共享内存客户端单例
lightx2v/models/input_encoders/lightllm/shm_client.py:107
↓ 1 callersFunctionget_size_less_than_area
(height, width, target_area, divisor=64)
lightx2v/models/networks/wan/s2v_utils.py:4
↓ 1 callersMethodget_task_result_usage
(self, task_id: str)
lightx2v/server/task_manager.py:180
↓ 1 callersMethodget_task_type
(self)
lightx2v/server/services/generation/base.py:26
↓ 1 callersMethodget_tensor_range
(self, tensor)
lightx2v/utils/quant_utils.py:43
↓ 1 callersMethodget_time_embeddings
(self, weights, inputs, timestep, timestep_action, state, seq_len, action, device, dtype)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:201
↓ 1 callersFunctionget_timestep_embedding
( timesteps: torch.Tensor, embedding_dim: int = 256, flip_sin_to_cos: bool = True, downscale_f
lightx2v/models/networks/cosmos3/infer/utils.py:118
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. Args timesteps (
lightx2v/models/schedulers/qwen_image/scheduler.py:149
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. Args timesteps (
lightx2v/models/schedulers/z_image/scheduler.py:156
↓ 1 callersFunctionget_timestep_embedding
Create sinusoidal timestep embeddings.
lightx2v/models/schedulers/longcat_image/scheduler.py:101
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. Args timesteps (t
lightx2v/models/video_encoders/hf/ltx2/video_vae/timestep_embedding.py:6
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
lightx2v/models/schedulers/hidream_o1_image/scheduler.py:119
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device)
lightx2v/models/schedulers/qwen_image/scheduler.py:528
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength)
lightx2v/models/schedulers/z_image/scheduler.py:453
↓ 1 callersFunctionget_transform
Generate transformation matrix.
tools/preprocess/pose2d_utils.py:961
↓ 1 callersMethodget_transformer_output_backlog
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:957
↓ 1 callersMethodget_transformer_output_identity
(self, room: int | None = None)
lightx2v/disagg/services/data_mgr_sidecar.py:960
↓ 1 callersMethodget_transformer_output_status
(self, room: int)
lightx2v/disagg/services/data_mgr_sidecar.py:951
↓ 1 callersFunctionget_vae_choices_func
(model_path_val)
app/utils/model_components.py:362
↓ 1 callersFunctionget_vae_encoder_output
(vae_encoder, config, first_frame, latent_h, latent_w)
lightx2v/disagg/examples/wan_i2v.py:45
↓ 1 callersMethodget_vae_encoder_output
(self, cat_latents, masks, ref_images)
lightx2v/models/runners/wan/wan_vace_runner.py:135
↓ 1 callersMethodget_vae_encoder_output
(self, img)
lightx2v/models/runners/wan/wan_runner.py:907
↓ 1 callersMethodget_valid_len
(self, real_len, clip_len=81, overlap=1)
lightx2v/models/runners/wan/wan_animate_runner.py:49
↓ 1 callersFunctionget_video_reader_backend
()
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py:244
↓ 1 callersMethodget_video_segment_num
(self)
lightx2v/models/runners/base_runner.py:205
← previousnext →3,701–3,800 of 8,429, ranked by callers