Browse Source

use GFPGAN v1.3

Xintao 3 years ago
parent
commit
9ff1944d06
2 changed files with 2 additions and 2 deletions
  1. 1 1
      inference_realesrgan.py
  2. 1 1
      inference_realesrgan_video.py

+ 1 - 1
inference_realesrgan.py

@@ -83,7 +83,7 @@ def main():
     if args.face_enhance:  # Use GFPGAN for face enhancement
     if args.face_enhance:  # Use GFPGAN for face enhancement
         from gfpgan import GFPGANer
         from gfpgan import GFPGANer
         face_enhancer = GFPGANer(
         face_enhancer = GFPGANer(
-            model_path='https://github.com/TencentARC/GFPGAN/releases/download/v0.2.0/GFPGANCleanv1-NoCE-C2.pth',
+            model_path='https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth',
             upscale=args.outscale,
             upscale=args.outscale,
             arch='clean',
             arch='clean',
             channel_multiplier=2,
             channel_multiplier=2,

+ 1 - 1
inference_realesrgan_video.py

@@ -96,7 +96,7 @@ def main():
     if args.face_enhance:  # Use GFPGAN for face enhancement
     if args.face_enhance:  # Use GFPGAN for face enhancement
         from gfpgan import GFPGANer
         from gfpgan import GFPGANer
         face_enhancer = GFPGANer(
         face_enhancer = GFPGANer(
-            model_path='https://github.com/TencentARC/GFPGAN/releases/download/v0.2.0/GFPGANCleanv1-NoCE-C2.pth',
+            model_path='https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth',
             upscale=args.outscale,
             upscale=args.outscale,
             arch='clean',
             arch='clean',
             channel_multiplier=2,
             channel_multiplier=2,