Update app.py
Browse files
app.py
CHANGED
|
@@ -85,11 +85,11 @@ def inference(img, version, scale):
|
|
| 85 |
# face_enhancer = GFPGANer(
|
| 86 |
# model_path='CodeFormer.pth', upscale=2, arch='CodeFormer', channel_multiplier=2, bg_upsampler=upsampler)
|
| 87 |
|
| 88 |
-
try:
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
except RuntimeError as error:
|
| 92 |
-
|
| 93 |
|
| 94 |
try:
|
| 95 |
if scale != 2:
|
|
|
|
| 85 |
# face_enhancer = GFPGANer(
|
| 86 |
# model_path='CodeFormer.pth', upscale=2, arch='CodeFormer', channel_multiplier=2, bg_upsampler=upsampler)
|
| 87 |
|
| 88 |
+
#try:
|
| 89 |
+
# # _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
|
| 90 |
+
# _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
|
| 91 |
+
#except RuntimeError as error:
|
| 92 |
+
# print('Error', error)
|
| 93 |
|
| 94 |
try:
|
| 95 |
if scale != 2:
|