randomtable commited on
Commit
bcb325b
·
verified ·
1 Parent(s): 668ebf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -85,11 +85,11 @@ def inference(img, version, scale):
85
  # face_enhancer = GFPGANer(
86
  # model_path='CodeFormer.pth', upscale=2, arch='CodeFormer', channel_multiplier=2, bg_upsampler=upsampler)
87
 
88
- try:
89
- # _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
90
- _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
91
- except RuntimeError as error:
92
- print('Error', error)
93
 
94
  try:
95
  if scale != 2:
 
85
  # face_enhancer = GFPGANer(
86
  # model_path='CodeFormer.pth', upscale=2, arch='CodeFormer', channel_multiplier=2, bg_upsampler=upsampler)
87
 
88
+ #try:
89
+ # # _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True, weight=weight)
90
+ # _, _, output = face_enhancer.enhance(img, has_aligned=False, only_center_face=False, paste_back=True)
91
+ #except RuntimeError as error:
92
+ # print('Error', error)
93
 
94
  try:
95
  if scale != 2: