Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def brush_stroke_mask(img, color=(255,255,255)):
|
|
80 |
def inference(file, mode):
|
81 |
|
82 |
im = cv2.imread(file, cv2.IMREAD_COLOR)
|
83 |
-
im = cv2.resize(im, (0,0), fx=
|
84 |
faceenhancer = FaceEnhancement(size=512, model='GPEN-512', channel_multiplier=2, device='cpu', u=False)
|
85 |
img, orig_faces, enhanced_faces = faceenhancer.process(im)
|
86 |
cv2.imwrite(os.path.join("e.png"), img)
|
|
|
80 |
def inference(file, mode):
|
81 |
|
82 |
im = cv2.imread(file, cv2.IMREAD_COLOR)
|
83 |
+
im = cv2.resize(im, (0,0), fx=3, fy=3)
|
84 |
faceenhancer = FaceEnhancement(size=512, model='GPEN-512', channel_multiplier=2, device='cpu', u=False)
|
85 |
img, orig_faces, enhanced_faces = faceenhancer.process(im)
|
86 |
cv2.imwrite(os.path.join("e.png"), img)
|