Spaces:
Running
on
L4
Running
on
L4
update app.py.
Browse files
app.py
CHANGED
@@ -111,10 +111,9 @@ def inference(image, background_enhance, face_upsample, upscale, codeformer_fide
|
|
111 |
detection_model = "retinaface_resnet50"
|
112 |
print('Inp:', image, background_enhance, face_upsample, upscale, codeformer_fidelity)
|
113 |
|
114 |
-
if
|
115 |
-
|
116 |
-
if upscale is None:
|
117 |
-
upscale = True
|
118 |
|
119 |
img = cv2.imread(str(image), cv2.IMREAD_COLOR)
|
120 |
print('\timage size:', img.shape)
|
|
|
111 |
detection_model = "retinaface_resnet50"
|
112 |
print('Inp:', image, background_enhance, face_upsample, upscale, codeformer_fidelity)
|
113 |
|
114 |
+
if background_enhance is None: background_enhance = True
|
115 |
+
if face_upsample is None: face_upsample = True
|
116 |
+
if upscale is None: upscale = 2
|
|
|
117 |
|
118 |
img = cv2.imread(str(image), cv2.IMREAD_COLOR)
|
119 |
print('\timage size:', img.shape)
|