vicalloy commited on
Commit
fa56e85
1 Parent(s): 9e66160

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def inference(img, version, scale, blur_face):
92
  align_warp_face = face_helper.align_warp_face
93
  def new_align_warp_face(*args, **kwargs):
94
  align_warp_face(*args, **kwargs) # save_cropped_path
95
- # face_helper.cropped_faces = [cv2.GaussianBlur(e, (blur_face, blur_face), 0) for e in face_helper.cropped_faces]
96
  face_helper.align_warp_face = new_align_warp_face
97
  _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
98
  except RuntimeError as error:
 
92
  align_warp_face = face_helper.align_warp_face
93
  def new_align_warp_face(*args, **kwargs):
94
  align_warp_face(*args, **kwargs) # save_cropped_path
95
+ face_helper.cropped_faces = [cv2.GaussianBlur(e, (blur_face, blur_face), 0) for e in face_helper.cropped_faces]
96
  face_helper.align_warp_face = new_align_warp_face
97
  _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
98
  except RuntimeError as error: