Spaces:
Running
on
Zero
Running
on
Zero
ohayonguy
commited on
Commit
•
10d8fa9
1
Parent(s):
8ea5b1f
trying to fix daemonic processes error
Browse files
app.py
CHANGED
@@ -122,12 +122,13 @@ def inference(img, aligned, scale, num_steps):
|
|
122 |
model_rootpath=None)
|
123 |
|
124 |
has_aligned = True if aligned == 'Yes' else False
|
125 |
-
_, restored_aligned, restored_img = enhance_face(img, face_helper, has_aligned, only_center_face=False,
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
131 |
|
132 |
|
133 |
# try:
|
|
|
122 |
model_rootpath=None)
|
123 |
|
124 |
has_aligned = True if aligned == 'Yes' else False
|
125 |
+
# _, restored_aligned, restored_img = enhance_face(img, face_helper, has_aligned, only_center_face=False,
|
126 |
+
# paste_back=True)
|
127 |
+
output = img
|
128 |
+
# if has_aligned:
|
129 |
+
# output = restored_aligned[0]
|
130 |
+
# else:
|
131 |
+
# output = restored_img
|
132 |
|
133 |
|
134 |
# try:
|