MCPcopy
hub / github.com/Wan-Video/Wan2.2 / resize

Method resize

wan/modules/animate/preprocess/pose2d_utils.py:85–95  ·  view source on GitHub ↗
(self, width, height)

Source from the content-addressed store, hash-verified

83 return self
84
85 def resize(self, width, height):
86 scale_x = width / self.width
87 scale_y = height / self.height
88 all_kps = [self.kps_body, self.kps_lhand, self.kps_rhand, self.kps_face]
89 for kps in all_kps:
90 if kps is not None:
91 kps[:, 0] *= scale_x
92 kps[:, 1] *= scale_y
93 self.width = width
94 self.height = height
95 return self
96
97
98 def get_kps_body_with_p(self, normalize=False):

Callers 11

padding_resizeMethod · 0.80
i2vMethod · 0.80
__call__Method · 0.80
_load_img_v2_as_tensorFunction · 0.80
padding_resizeFunction · 0.80
draw_maskFunction · 0.80
cropFunction · 0.80
preprocessMethod · 0.80
fetch_imageFunction · 0.80
fetch_videoFunction · 0.80
extend_with_imgMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected