problem about face_ratio #107

Open
opened 2026-01-29 21:42:16 +00:00 by claunia · 1 comment
Owner

Originally created by @xuewengeophysics on GitHub (Nov 29, 2021).

Hi, Thanks for your attention to this question.
Why multiply by face_ratio in this place in gfpgan_model.py?
image

Originally created by @xuewengeophysics on GitHub (Nov 29, 2021). Hi, Thanks for your attention to this question. Why multiply by face_ratio in this place in gfpgan_model.py? ![image](https://user-images.githubusercontent.com/8676098/143846966-09be06e0-b309-4aae-8f6b-bf5c39e7e61b.png)
Author
Owner

@chiixy commented on GitHub (Apr 12, 2024):

I have the same confusion about this face_ratio, and i think maybe author make a mistake in this place? I remove these face_ratio and multiplies face_ratio at 248, 253 line like below, and check the pipeline when setting input size as 256 is all right:
Screenshot from 2024-04-12 15-02-54

@chiixy commented on GitHub (Apr 12, 2024): I have the same confusion about this face_ratio, and i think maybe author make a mistake in this place? I remove these face_ratio and multiplies face_ratio at 248, 253 line like below, and check the pipeline when setting input size as 256 is all right: ![Screenshot from 2024-04-12 15-02-54](https://github.com/TencentARC/GFPGAN/assets/70085955/e3aed557-2a99-4420-88cb-0dd00bc05365)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#107