zhiweili commited on
Commit
3eabcbf
1 Parent(s): 7be1de1

update model

Browse files
Files changed (1) hide show
  1. app_esrgan.py +0 -5
app_esrgan.py CHANGED
@@ -24,11 +24,6 @@ if not os.path.exists('RealESRGAN_x2plus.pth'):
24
  model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=2)
25
  model_path = 'RealESRGAN_x2plus.pth'
26
  upsampler_map['RealESRGAN_x2plus'] = RealESRGANer(scale=2, model_path=model_path, model=model, tile=0, tile_pad=10, pre_pad=0, half=half)
27
- if not os.path.exists('RealESRNet_x4plus.pth'):
28
- os.system("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.1/RealESRNet_x4plus.pth -P .")
29
- model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=6, num_grow_ch=32, scale=4)
30
- model_path = 'RealESRNet_x4plus.pth'
31
- upsampler_map['RealESRNet_x4plus'] = RealESRGANer(scale=4, model_path=model_path, model=model, tile=0, tile_pad=10, pre_pad=0, half=half)
32
 
33
  os.makedirs('output', exist_ok=True)
34
 
 
24
  model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=2)
25
  model_path = 'RealESRGAN_x2plus.pth'
26
  upsampler_map['RealESRGAN_x2plus'] = RealESRGANer(scale=2, model_path=model_path, model=model, tile=0, tile_pad=10, pre_pad=0, half=half)
 
 
 
 
 
27
 
28
  os.makedirs('output', exist_ok=True)
29