From 30128b698916c526d4ee4d3d77e09c58f5612621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=BF=E5=B7=9E?= Date: Tue, 1 Nov 2022 20:42:58 +0800 Subject: [PATCH] update --- .../easycv_pipelines/face_2d_keypoints_pipeline.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modelscope/pipelines/cv/easycv_pipelines/face_2d_keypoints_pipeline.py b/modelscope/pipelines/cv/easycv_pipelines/face_2d_keypoints_pipeline.py index 94cbb74e..29a96a5f 100644 --- a/modelscope/pipelines/cv/easycv_pipelines/face_2d_keypoints_pipeline.py +++ b/modelscope/pipelines/cv/easycv_pipelines/face_2d_keypoints_pipeline.py @@ -113,18 +113,6 @@ class Face2DKeypointsPipeline(EasyCVPipeline): for (x, y) in landmark]) return M, landmark_ - def random_normal(self): - """ - 3-sigma rule - return: (-1, +1) - """ - mu, sigma = 0, 1 - while True: - s = np.random.normal(mu, sigma) - if s < mu - 3 * sigma or s > mu + 3 * sigma: - continue - return s / 3 * sigma - def rotate_crop_img(self, img, pts, M): imgT = cv2.warpAffine(img, M, (int(img.shape[1]), int(img.shape[0])))