Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
21391d9
1
Parent(s):
7ba074e
bgr to rgb
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def inference(img):
|
|
52 |
cropped_faces, restored_faces, restored_img = restorer.enhance(
|
53 |
input_img, has_aligned=False, only_center_face=False, paste_back=True)
|
54 |
|
55 |
-
return Image.fromarray(restored_faces[0])
|
56 |
|
57 |
title = "GFP-GAN"
|
58 |
description = "Gradio demo for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"
|
|
|
52 |
cropped_faces, restored_faces, restored_img = restorer.enhance(
|
53 |
input_img, has_aligned=False, only_center_face=False, paste_back=True)
|
54 |
|
55 |
+
return Image.fromarray(restored_faces[0])[:,:,::-1]
|
56 |
|
57 |
title = "GFP-GAN"
|
58 |
description = "Gradio demo for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"
|