modified app
Browse files
app.py
CHANGED
|
@@ -66,10 +66,10 @@ def inference(img, version, scale):
|
|
| 66 |
|
| 67 |
if version == 'RestoreFormer':
|
| 68 |
face_enhancer = RestoreFormer(
|
| 69 |
-
model_path='RestoreFormer.ckpt', upscale=2, arch='RestoreFormer',
|
| 70 |
elif version == 'RestoreFormer++':
|
| 71 |
face_enhancer = RestoreFormer(
|
| 72 |
-
model_path='RestoreFormer++.ckpt', upscale=2, arch='RestoreFormer++',
|
| 73 |
|
| 74 |
try:
|
| 75 |
# _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
|
|
|
|
| 66 |
|
| 67 |
if version == 'RestoreFormer':
|
| 68 |
face_enhancer = RestoreFormer(
|
| 69 |
+
model_path='RestoreFormer.ckpt', upscale=2, arch='RestoreFormer', bg_upsampler=upsampler)
|
| 70 |
elif version == 'RestoreFormer++':
|
| 71 |
face_enhancer = RestoreFormer(
|
| 72 |
+
model_path='RestoreFormer++.ckpt', upscale=2, arch='RestoreFormer++', bg_upsampler=upsampler)
|
| 73 |
|
| 74 |
try:
|
| 75 |
# _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
|