Spaces:
Running
Running
- face_enhancement.py +0 -5
face_enhancement.py
CHANGED
@@ -91,10 +91,5 @@ class FaceEnhancement(object):
|
|
91 |
full_mask = full_mask[:, :, np.newaxis]
|
92 |
img = cv2.convertScaleAbs(img*(1-full_mask) + full_img*full_mask)
|
93 |
|
94 |
-
if self.use_sr and img_sr == None:
|
95 |
-
img = cv2.convertScaleAbs(img*(1-full_mask) + full_img*full_mask)
|
96 |
-
else:
|
97 |
-
img = cv2.convertScaleAbs(img_sr*(1-full_mask) + full_img*full_mask)
|
98 |
-
|
99 |
return img, orig_faces, enhanced_faces
|
100 |
|
|
|
91 |
full_mask = full_mask[:, :, np.newaxis]
|
92 |
img = cv2.convertScaleAbs(img*(1-full_mask) + full_img*full_mask)
|
93 |
|
|
|
|
|
|
|
|
|
|
|
94 |
return img, orig_faces, enhanced_faces
|
95 |
|