sczhou commited on
Commit
ba79e24
1 Parent(s): 6733fa9

update app.py.

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -111,10 +111,9 @@ def inference(image, background_enhance, face_upsample, upscale, codeformer_fide
111
  detection_model = "retinaface_resnet50"
112
  print('Inp:', image, background_enhance, face_upsample, upscale, codeformer_fidelity)
113
 
114
- if face_upsample is None:
115
- face_upsample = False
116
- if upscale is None:
117
- upscale = True
118
 
119
  img = cv2.imread(str(image), cv2.IMREAD_COLOR)
120
  print('\timage size:', img.shape)
 
111
  detection_model = "retinaface_resnet50"
112
  print('Inp:', image, background_enhance, face_upsample, upscale, codeformer_fidelity)
113
 
114
+ if background_enhance is None: background_enhance = True
115
+ if face_upsample is None: face_upsample = True
116
+ if upscale is None: upscale = 2
 
117
 
118
  img = cv2.imread(str(image), cv2.IMREAD_COLOR)
119
  print('\timage size:', img.shape)