MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / scale

Method scale

tools/preprocess/pose2d_utils.py:233–238  ·  view source on GitHub ↗
(self, sx, sy)

Source from the content-addressed store, hash-verified

231 kps[:, 1] -= y0
232
233 def scale(self, sx, sy):
234 all_kps = [self.kps_body, self.kps_lhand, self.kps_rhand, self.kps_face]
235 for kps in all_kps:
236 if kps is not None:
237 kps[:, 0] *= sx
238 kps[:, 1] *= sy
239
240 def padding_resize2(self, height=512, width=512):
241 """kps will be changed inplace"""

Callers 1

train_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected