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

Method translate

tools/preprocess/pose2d_utils.py:226–231  ·  view source on GitHub ↗
(self, x0, y0)

Source from the content-addressed store, hash-verified

224 return draw_aapose_by_meta(img, self, threshold, stick_width_norm, draw_hand, draw_head)
225
226 def translate(self, x0, y0):
227 all_kps = [self.kps_body, self.kps_lhand, self.kps_rhand, self.kps_face]
228 for kps in all_kps:
229 if kps is not None:
230 kps[:, 0] -= x0
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]

Callers 3

canonicalizeFunction · 0.80
canonicalizeFunction · 0.80
canonicalizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected