↓ 2 callersFunctionresize_by_area(image, target_area, keep_aspect_ratio=True, divisor=64, padding_color=(0, 0, 0))
wan/modules/animate/preprocess/utils.py:136
↓ 1 callersMethod__init__(self, checkpoint, device='cuda', threshold_conf=0.05, threshold_multi_persons=0.1, input_resolution=(640, 640
wan/modules/animate/preprocess/pose2d.py:69
↓ 1 callersFunctionattention(
q,
k,
v,
q_lens=None,
k_lens=None,
dropout_p=0.,
softmax_scale=None,
q_scale
wan/modules/attention.py:132
↓ 1 callersFunctionbuild_sam2_video_predictor(
config_file,
ckpt_path=None,
device="cuda",
mode="eval",
hydra_overrides_extra=[],
a
wan/modules/animate/preprocess/sam_utils.py:122
↓ 1 callersFunctioncreate_meshgrid(n_frames: int, height: int, width: int, bias: float = 0.5, device='cuda', dtype=torch.float32)
wan/utils/cam_utils.py:77
↓ 1 callersFunctiondraw_aapose_by_meta(img, meta: AAPoseMeta, threshold=0.5, stick_width_norm=200, draw_hand=True, draw_head=True)
wan/modules/animate/preprocess/human_visualization.py:211