trysem commited on
Commit
6418cef
·
1 Parent(s): bf56e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -68,12 +68,12 @@ def inference(img, version, scale):
68
  # if version == 'v1.2':
69
  ## face_enhancer = GFPGANer(
70
  # model_path='GFPGANv1.2.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
71
- elif version == 'v1.3':
72
- face_enhancer = GFPGANer(
73
- model_path='GFPGANv1.3.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
74
- # elif version == 'v1.4':
75
  # face_enhancer = GFPGANer(
76
- # model_path='GFPGANv1.4.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
 
 
 
77
  # elif version == 'RestoreFormer':
78
  # face_enhancer = GFPGANer(
79
  # model_path='RestoreFormer.pth', upscale=2, arch='RestoreFormer', channel_multiplier=2, bg_upsampler=upsampler)
 
68
  # if version == 'v1.2':
69
  ## face_enhancer = GFPGANer(
70
  # model_path='GFPGANv1.2.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
71
+ # elif version == 'v1.3':
 
 
 
72
  # face_enhancer = GFPGANer(
73
+ # model_path='GFPGANv1.3.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
74
+ elif version == 'v1.4':
75
+ face_enhancer = GFPGANer(
76
+ model_path='GFPGANv1.4.pth', upscale=2, arch='clean', channel_multiplier=2, bg_upsampler=upsampler)
77
  # elif version == 'RestoreFormer':
78
  # face_enhancer = GFPGANer(
79
  # model_path='RestoreFormer.pth', upscale=2, arch='RestoreFormer', channel_multiplier=2, bg_upsampler=upsampler)