fix pre-commit (#794)

This commit is contained in:
tastelikefeet
2024-03-04 19:26:53 +08:00
committed by GitHub
parent 30bae2eafa
commit cc3238bef6

View File

@@ -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)