MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 2 callersMethod_slice_y
(self, start_frame, length)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:443
↓ 2 callersMethod_slot_offset
(self, index: int)
lightx2v/disagg/rdma_buffer.py:245
↓ 2 callersMethod_small_tensor_key
(tensor)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:161
↓ 2 callersMethod_solver_bh_terms
(self, h, order, dtype, device)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:126
↓ 2 callersMethod_split_double_modulation
(self, mod)
lightx2v/models/networks/flux2/infer/transformer_infer.py:39
↓ 2 callersFunction_stack
(ml)
lightx2v/models/networks/worldmirror/utils/inference_utils.py:396
↓ 2 callersMethod_step_loss_weights_for
(self, num_steps)
lightx2v_train/lightx2v_train/trainers/dopsd.py:86
↓ 2 callersFunction_summarize_response_item
(item: dict[str, Any])
scripts/hidream_o1_image/test_openai_images_client.py:94
↓ 2 callersMethod_sync_if_cuda
(self, args: tuple[Any, ...])
lightx2v/utils/async_vae.py:104
↓ 2 callersFunction_target_hw_for_sample
(sample, default_height, default_width)
lightx2v_train/lightx2v_train/infer/video.py:16
↓ 2 callersMethod_teacher_edit_prompts
(self, prompts)
lightx2v_train/lightx2v_train/trainers/dopsd.py:197
↓ 2 callersFunction_tensor
(weight)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:11
↓ 2 callersMethod_tensor_cache_id
(tensor)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:146
↓ 2 callersMethod_text_embedding
(self, weight, context)
lightx2v/models/networks/wan/infer/fastwam/pre_infer.py:64
↓ 2 callersMethod_threshold_sample
(self, sample: torch.Tensor)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:587
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
lightx2v/models/schedulers/hidream_o1_image/fm_solvers_unipc.py:212
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
lightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py:216
↓ 2 callersMethod_threshold_sample
(self, sample)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:91
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:262
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py:212
↓ 2 callersMethod_time_embedding
(self, weight, timestep, hidden_dim)
lightx2v/models/networks/wan/infer/fastwam/pre_infer.py:58
↓ 2 callersMethod_to_cpu_for_lingbot_va
(self)
lightx2v/models/networks/wan/lingbot_va_model.py:69
↓ 2 callersMethod_to_cuda_for_lingbot_va
(self)
lightx2v/models/networks/wan/lingbot_va_model.py:61
↓ 2 callersMethod_token_modulation
(x)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:159
↓ 2 callersMethod_tokenize_chat
(self, text: str, is_image: bool, use_system_prompt=True)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:229
↓ 2 callersMethod_train_one_stage
(self, samples, stage, grad_accum_iters)
lightx2v_train/lightx2v_train/trainers/dmd.py:784
↓ 2 callersFunction_traverse
(data: Any, op: Callable)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:337
↓ 2 callersMethod_trim_tail_invalid_frames
(frames, pose_metas, pose_valid_flags, mode_name)
tools/preprocess/process_pipepline.py:105
↓ 2 callersMethod_unpack_latents
Unpack latents from sequence to spatial format.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:235
↓ 2 callersMethod_unpack_latents
(latents, height, width, vae_scale_factor, layers=None)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:47
↓ 2 callersFunction_unpad_tensor
(x: Tensor, dim: int, padding_size)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:318
↓ 2 callersMethod_update_base_attrs
(self)
lightx2v/common/ops/mm/mm_weight.py:453
↓ 2 callersMethod_update_latent_shape
(clip_input_info, target_len, vae_stride)
lightx2v/shot_runner/rs2v_infer.py:88
↓ 2 callersFunction_update_out_and_lse
( out, lse, block_out, block_lse, )
lightx2v/common/ops/attn/ring_attn.py:30
↓ 2 callersMethod_update_recent_len_after_store
(self, layer_id: int, end_idx: int)
lightx2v/common/kvcache/quant.py:531
↓ 2 callersMethod_update_ring_len_after_store
(self, layer_id: int, end_idx: int)
lightx2v/common/kvcache/rolling.py:291
↓ 2 callersMethod_v_cpu_layer
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:145
↓ 2 callersMethod_v_layer
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:137
↓ 2 callersMethod_v_layer
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:546
↓ 2 callersMethod_valid_slots
(self, layer_id: int)
lightx2v/common/kvcache/fifo.py:35
↓ 2 callersMethod_validate_checkpoint_metadata
(self, state, state_path, resume_ckpt_path)
lightx2v_train/lightx2v_train/trainers/dopsd.py:234
↓ 2 callersMethod_validate_dmd_checkpoint_metadata
(self, state, state_path, resume_ckpt_path)
lightx2v_train/lightx2v_train/trainers/dmd.py:465
↓ 2 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
lightx2v/models/video_encoders/hf/wan/vae.py:846
↓ 2 callersMethod_wait_for_tcp_port_state
(self, host: str, port: int, should_be_open: bool, timeout_seconds: float)
lightx2v/disagg/services/controller.py:95
↓ 2 callersMethod_write_sum_audio
(self, input_data, audio_arrays)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:295
↓ 2 callersMethodact_quant_func
(self, x)
lightx2v_platform/ops/mm/ascend_npu/npu_q_linear.py:24
↓ 2 callersFunctionall2all
(tensor, scatter_dim, gather_dim, cur_group, async_op)
lightx2v/models/networks/worldmirror/comm/communication.py:5
↓ 2 callersMethodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/svg_attn.py:361
↓ 2 callersMethodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:68
↓ 2 callersMethodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:344
↓ 2 callersFunctionapply_audio_inject
(block, hidden_states, pre_infer_out, config)
lightx2v/models/networks/wan/infer/s2v/audio_inject.py:18
↓ 2 callersMethodapply_cfg
Apply classifier-free guidance with optional renormalization. Args: noise_pred_cond: Conditional prediction noise_pre
lightx2v/models/schedulers/longcat_image/scheduler.py:524
↓ 2 callersFunctionapply_cosmos3_rotary
(query: torch.Tensor, key: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, rope_type: str = "triton")
lightx2v/models/networks/cosmos3/infer/utils.py:92
↓ 2 callersFunctionapply_fsdp2
(model, config)
lightx2v_train/lightx2v_train/runtime/fsdp.py:60
↓ 2 callersFunctionapply_gate
(x, gate=None, tanh=False)
lightx2v/models/networks/hunyuan_video/infer/pre_infer.py:22
↓ 2 callersMethodapply_lora
Apply LoRA weights to model weights. Args: weight_dict: The model weights dictionary (will be modified in place)
lightx2v/utils/lora_loader.py:341
↓ 2 callersFunctionapply_model_with_memblocks
Apply a sequential model with memblocks to the given input. Args: - model: nn.Sequential of blocks to apply - x: input data, of dimen
lightx2v/models/video_encoders/hf/tae.py:63
↓ 2 callersFunctionapply_precomputed_rope
(x, precomputed_freqs)
lightx2v/models/networks/wan/infer/s2v/rope.py:77
↓ 2 callersFunctionapply_rotary
Arguments: x: (batch, seqlen, nheads, headdim) if cu_seqlens is None else (total_seqlen, nheads, headdim). cos: (seql
lightx2v_platform/ops/rope/iluvatar_cuda/wan_rope.py:134
↓ 2 callersFunctionapply_rotary_emb
( input_tensor: torch.Tensor, freqs_cis: Tuple[torch.Tensor, torch.Tensor], rope_type: str = "spli
lightx2v/models/networks/ltx2/infer/utils.py:73
↓ 2 callersFunctionapply_rotary_emb
( input_tensor: torch.Tensor, freqs_cis: Tuple[torch.Tensor, torch.Tensor], rope_type: LTXRopeType
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:16
↓ 2 callersFunctionapply_rotary_emb_1d
对输入张量的一部分应用1D RoPE。
lightx2v/models/networks/neopp/infer/pre_infer.py:49
↓ 2 callersFunctionapply_rotary_embedding
(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, interleaved: bool = False)
lightx2v/models/networks/wan/infer/triton_ops.py:297
↓ 2 callersFunctionapply_split_half_rotary_triton
(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor)
lightx2v/models/networks/cosmos3/infer/utils.py:68
↓ 2 callersMethodapply_text_to_template
Apply text to template. Args: text (str): Input text. template (str or list): Template string or list of cha
lightx2v/models/input_encoders/hf/hunyuan15/qwen25/model.py:309
↓ 2 callersFunctionapply_time_embedding
(timestep, seq_len, freq_dim, hidden_dim, embedding_0, embedding_2, projection_1)
lightx2v/models/networks/wan/weights/motus/_shared.py:99
↓ 2 callersFunctionapply_transformation_to_points
Applies a 4x4 transformation matrix to a collection of 3D points. Args: transform_matrix (np.ndarray): 4x4 transformation matrix to
lightx2v/models/networks/worldmirror/utils/visual_util.py:531
↓ 2 callersMethodare_two_tensor_similar
(self, t1, t2)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:961
↓ 2 callersFunctionarray_to_tensor
(np_array)
lightx2v/models/input_encoders/hf/hunyuan3d/image_processor.py:22
↓ 2 callersMethodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:146
↓ 2 callersMethodaudio_timesteps_from_mask
Compute timesteps from a denoise mask and sigma value. Multiplies the denoise mask by sigma to produce timesteps for each position in
lightx2v/models/schedulers/ltx2/scheduler.py:924
↓ 2 callersFunctionauto_calc_config
(config)
lightx2v/utils/set_config.py:59
↓ 2 callersMethodavailable_frames
(self, reader)
lightx2v_train/lightx2v_train/data/video_dataset.py:59
↓ 2 callersFunctionbbox_from_detector
Get center and scale of bounding box from bounding box. The expected format is [min_x, min_y, max_x, max_y].
tools/preprocess/pose2d_utils.py:1001
↓ 2 callersFunctionbbox_vol
(xyz)
scripts/worldmirror/compare_to_reference.py:185
↓ 2 callersMethodbind_noise_pred_processor
(self, noise_pred_processor)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:279
↓ 2 callersMethodbind_step_inputs
(self, inputs, input_builder)
lightx2v/models/schedulers/wan/dreamzero/scheduler.py:275
↓ 2 callersMethodblend_h
Blend tensor b horizontally into a at blend_extent region.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:609
↓ 2 callersMethodblend_h
(self, a, b, blend_extent)
lightx2v/models/video_encoders/hf/wan/vae.py:557
↓ 2 callersMethodblend_t
Blend tensor b temporally into a at blend_extent region.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:623
↓ 2 callersMethodblend_v
Blend tensor b vertically into a at blend_extent region.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:616
↓ 2 callersMethodblend_v
(self, a, b, blend_extent)
lightx2v/models/video_encoders/hf/wan/vae.py:551
↓ 2 callersMethodbroadcast_data
(self, data)
lightx2v/utils/va_reader_omni.py:533
↓ 2 callersMethodbroadcast_task_data
(self, task_data: Optional[Any] = None)
lightx2v/server/services/distributed_utils.py:128
↓ 2 callersMethodbuffer_stream
(self, images: torch.Tensor, audios: torch.Tensor, gen_video: torch.Tensor, valid_duration=1e9)
lightx2v/utils/va_recorder_x264.py:139
↓ 2 callersMethodbuild_1d_mask
(self, length, left_bound, right_bound, border_width)
lightx2v/models/video_encoders/hf/wan/vae_sf.py:188
↓ 2 callersFunctionbuild_bagel_vit_config
(config, weight_dict=None)
lightx2v/models/networks/bagel/vision.py:182
↓ 2 callersMethodbuild_grid_id
(f, h, w, t, f_w=1, f_shift=0, action=False)
lightx2v/models/networks/wan/lingbot_va_model.py:21
↓ 2 callersFunctionbuild_mid_block
Build the middle block with two ResNet blocks and optional attention.
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:97
↓ 2 callersFunctionbuild_payload
(base_config: dict[str, Any], stage: StageSpec, request_index: int)
lightx2v/disagg/workload.py:200
↓ 2 callersFunctionbuild_sync_payload
(args: argparse.Namespace, presigned_url: str = "")
scripts/server/benchmark_sync_s3_latency.py:80
↓ 2 callersFunctionbuild_t2i_text_sample
(prompt, height, width, tokenizer, processor, model_config)
lightx2v/models/networks/hidream_o1_image/utils.py:412
↓ 2 callersFunctionbuild_wobble_traj
(nums, delta, anchor_idx=0, yaw_rad=0.0, pivot=None, forward_ratio=0.0)
lightx2v/models/networks/worldmirror/utils/render_utils.py:203
↓ 2 callersFunctioncalc_mean_std
Calculate mean and std for adaptive_instance_normalization. Args: feat (Tensor): 4D tensor. eps (float): A small value added to th
lightx2v/models/video_encoders/hf/seedvr/color_fix.py:40
↓ 2 callersFunctioncalculate_dimensions
(target_area, ratio)
lightx2v/models/input_encoders/hf/qwen25/qwen25_vlforconditionalgeneration.py:45
↓ 2 callersFunctioncalculate_scale_ratio
(skeleton, skeleton_edit, scale_ratio_flag)
tools/preprocess/retarget_pose.py:526
↓ 2 callersMethodcalculate_should_calc
(self, embed, embed0)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:48
↓ 2 callersMethodcalculate_should_calc
(self, weights, grid_sizes, embed, x, embed0, seq_lens, freqs, context)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:563
↓ 2 callersMethodcalculate_should_calc
(self, x_residual)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:850
↓ 2 callersMethodcalculate_skip_step_length
(self)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:388
← previousnext →1,501–1,600 of 8,429, ranked by callers