mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-25 15:20:58 +00:00
Issue with custom model inferencing #182
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 @keshavoct98 on GitHub (Apr 4, 2022).
Hello,
I have trained GFPGAN on my custom dataset to improve quality of license plates using train_gfpgan_v1_simple.yml. However the results I am getting on my validation data at training time is different from results I am getting while inferencing using the trained model.

Below is the output image I got while training validation step:
This is the output image I got while inferencing using the same model:

Training command: BASICSR_EXT=True BASICSR_JIT=True python -m torch.distributed.launch --nproc_per_node=1 --master_port=22021 gfpgan/train.py -opt options/train_gfpgan_v1_simple.yml --launcher pytorch
Inferencing command: python inference_gfpgan.py -i datasets/validation/input/ -o results -v 1 -s 1 --bg_upsampler realesrgan
(I added custom model path inside the inferencing script.)
Any ideas on why this is happening?
@qianx77 commented on GitHub (Oct 17, 2024):
because the official codes include face det. The result you test is the result of real-esrgan not your text model