mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-26 07:42:02 +00:00
Problem with output. #245
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 @Aspector1 on GitHub (Sep 5, 2022).
Good evening! When I use gfpgan, in the restored_imgs folder it gives me a cropped face and everything else is black. What should I do?
I'm using GFPGAN 1.3
It's look like this:

@differentprogramming commented on GitHub (Sep 7, 2022):
same
@differentprogramming commented on GitHub (Sep 7, 2022):
Fixed it
Change:
to:
bg_upsampler = RealESRGANer(
scale=2,
model_path='https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth',
model=model,
tile=args.bg_tile,
tile_pad=10,
pre_pad=0,
half=False) # need to set False in CPU mode
@Aspector1 commented on GitHub (Sep 7, 2022):
Oh, thank you so much!
@differentprogramming commented on GitHub (Sep 7, 2022):
The point of it is that some gpus don't support half precision numbers.
My 1660 ti being one of them.