mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-10 19:34:32 +00:00
Using custom weights with .pth file (8x_NMKD-Faces_160000_G) #369
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @philz1337x on GitHub (Jul 10, 2023).
I am trying to use 8x_NMKD-Faces_160000_G with GFPGAN.
I placed the pth file in the weights folder and changed the code to load the weight. But there seems to be something wrong with the arch='original' part.
elif version == '8x_NMKD-Faces_160000_G': self.face_enhancer = GFPGANer( model_path='gfpgan/weights/8x_NMKD-Faces_160000_G.pth', upscale=2, arch='original', channel_multiplier=2, bg_upsampler=self.upsampler)I get an error: