MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / transform_points

Function transform_points

wan/models/face_utils.py:89–95  ·  view source on GitHub ↗
(points, mat, invert=False)

Source from the content-addressed store, hash-verified

87
88
89def transform_points(points, mat, invert=False):
90 if invert:
91 mat = cv2.invertAffineTransform(mat)
92 points = np.expand_dims(points, axis=1)
93 points = cv2.transform(points, mat, points.shape)
94 points = np.squeeze(points)
95 return points
96
97
98def get_warp_mat_bbox_by_gt_pts_float(

Callers 2

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected