↓ 1 callersMethodpadding_resize(
self,
img_ori,
height=512,
width=512,
padding_color=(0, 0, 0),
lightx2v/models/runners/wan/wan_animate_runner.py:70
↓ 1 callersMethodpostprocess_threading(self, outputs, shape_raw, person_results, i, single_person=True, **kwargs)
tools/preprocess/pose2d.py:280
↓ 1 callersMethodprepare_action_inputs(
self,
first_frame_latents,
context,
context_mask,
action_chunk_size,
lightx2v/models/networks/wan/fastwam_model.py:123
↓ 1 callersFunctionprepare_flexattention(cfg_size, num_head, head_dim, dtype, device, context_length, prompt_length, num_frame, frame_size, diag_width
lightx2v/common/ops/attn/svg_attn.py:240
↓ 1 callersFunctionprepare_input_tensor 视频预处理: [T,H,W,3] -> [1,C,F,H,W] 1. GPU 上完成插值 + 中心裁剪 2. 自动 pad 帧数到 8n-3
lightx2v/models/runners/vsr/vsr_wrapper.py:42
↓ 1 callersMethodprepare_prompts(self, curr_kvlens, curr_rope, prompts, tokenizer, new_token_ids)
lightx2v/models/networks/bagel/model.py:144
↓ 1 callersMethodprepare_reorg_idx_and_bucket_offset(cls, seqlen, frame_h, frame_w, pool_h, pool_w, device)
lightx2v/common/ops/attn/draft_attn.py:93
↓ 1 callersMethodprepare_source(self, src_video, src_mask, src_ref_images, image_size, device=torch.device("cuda"))
lightx2v/models/runners/wan/wan_vace_runner.py:42
↓ 1 callersMethodprepare_vae_images(self, curr_kvlens, curr_rope, images, new_token_ids, timestep=0)
lightx2v/models/networks/bagel/model.py:398