Kims12 commited on
Commit
043fd34
·
verified ·
1 Parent(s): 1b1ee27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -47,8 +47,8 @@ def upscaler(img, version, scale):
47
  img = cv2.resize(img, (w * 2, h * 2), interpolation=cv2.INTER_LANCZOS4)
48
 
49
  face_enhancer = GFPGANer(
50
- model_path=f'{version}.pth',
51
- upscale=2,
52
  arch='RestoreFormer' if version=='RestoreFormer' else 'clean',
53
  channel_multiplier=2,
54
  bg_upsampler=upsampler
@@ -90,4 +90,4 @@ if __name__ == "__main__":
90
  )
91
 
92
  demo.queue()
93
- demo.launch()
 
47
  img = cv2.resize(img, (w * 2, h * 2), interpolation=cv2.INTER_LANCZOS4)
48
 
49
  face_enhancer = GFPGANer(
50
+ model_path=f'{version}.pth',
51
+ upscale=2,
52
  arch='RestoreFormer' if version=='RestoreFormer' else 'clean',
53
  channel_multiplier=2,
54
  bg_upsampler=upsampler
 
90
  )
91
 
92
  demo.queue()
93
+ demo.launch()