Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def upscale(image, model_name, tile, denoise, face_enhance, scale):
|
|
90 |
if face_enhance:
|
91 |
_, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
|
92 |
else:
|
93 |
-
output, _ = upsampler.enhance(img, outscale=
|
94 |
except RuntimeError as error:
|
95 |
print('Error', error)
|
96 |
print('If you encounter CUDA out of memory, try to set --tile with a smaller number.')
|
@@ -115,7 +115,7 @@ app = gr.Interface(
|
|
115 |
minimum=0,
|
116 |
maximum=1024,
|
117 |
step=32,
|
118 |
-
value=
|
119 |
),
|
120 |
gr.Slider(
|
121 |
label='Denoise Strength',
|
@@ -130,6 +130,7 @@ app = gr.Interface(
|
|
130 |
show_label=True
|
131 |
),
|
132 |
gr.Slider(
|
|
|
133 |
minimum=1,
|
134 |
maximum=4,
|
135 |
step=1,
|
|
|
90 |
if face_enhance:
|
91 |
_, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
|
92 |
else:
|
93 |
+
output, _ = upsampler.enhance(img, outscale=scale)
|
94 |
except RuntimeError as error:
|
95 |
print('Error', error)
|
96 |
print('If you encounter CUDA out of memory, try to set --tile with a smaller number.')
|
|
|
115 |
minimum=0,
|
116 |
maximum=1024,
|
117 |
step=32,
|
118 |
+
value=64
|
119 |
),
|
120 |
gr.Slider(
|
121 |
label='Denoise Strength',
|
|
|
130 |
show_label=True
|
131 |
),
|
132 |
gr.Slider(
|
133 |
+
label='Upscale Size',
|
134 |
minimum=1,
|
135 |
maximum=4,
|
136 |
step=1,
|