mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 12:39:25 +01:00
fix pre-commit (#794)
This commit is contained in:
@@ -202,8 +202,8 @@ class ImagePortraitEnhancementPipeline(Pipeline):
|
||||
of, of_112, tfm_inv = warp_and_crop_face(
|
||||
img, facial5points, crop_size=(self.size, self.size))
|
||||
|
||||
of = of[..., ::-1].copy() # BGR->RGB
|
||||
of_112 = of_112[..., ::-1].copy() # BGR->RGB
|
||||
of = of[..., ::-1].copy() # BGR->RGB
|
||||
of_112 = of_112[..., ::-1].copy() # BGR->RGB
|
||||
|
||||
# detect orig face quality
|
||||
fq_o, fea_o = self.eqface.get_face_quality(of_112)
|
||||
|
||||
Reference in New Issue
Block a user