Spaces:
Build error
Build error
Commit
·
9de8157
1
Parent(s):
97ce91a
Update inference_realesrgan.py
Browse files- inference_realesrgan.py +1 -1
inference_realesrgan.py
CHANGED
@@ -43,7 +43,7 @@ def main():
|
|
43 |
|
44 |
# determine models according to model names
|
45 |
args.model_name = args.model_name.split('.')[0]
|
46 |
-
if args.model_name in ['RealESRGAN_x4plus', 'RealESRNet_x4plus']: # x4 RRDBNet model
|
47 |
model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
|
48 |
netscale = 4
|
49 |
elif args.model_name in ['RealESRGAN_x4plus_anime_6B']: # x4 RRDBNet model with 6 blocks
|
|
|
43 |
|
44 |
# determine models according to model names
|
45 |
args.model_name = args.model_name.split('.')[0]
|
46 |
+
if args.model_name in ['RealESRGAN_x4plus', 'RealESRNet_x4plus', 'RealESRGAN_x4plus_super.pth']: # x4 RRDBNet model
|
47 |
model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
|
48 |
netscale = 4
|
49 |
elif args.model_name in ['RealESRGAN_x4plus_anime_6B']: # x4 RRDBNet model with 6 blocks
|