ohayonguy commited on
Commit
10d8fa9
1 Parent(s): 8ea5b1f

trying to fix daemonic processes error

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- paste_back=True)
127
- if has_aligned:
128
- output = restored_aligned[0]
129
- else:
130
- output = restored_img
 
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: