potential issue #163

Open
opened 2026-01-29 21:44:29 +00:00 by claunia · 0 comments
Owner

Originally created by @dearkafka on GitHub (Feb 15, 2022).

Im finding some color distortion which is significant in my own training cases (but visible in v1.2) and seems to be resolved by altering rgb2bgr=False in 2 rows:

https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L115

https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L122

so colours are becoming more vivid and match original

what do you think?

Originally created by @dearkafka on GitHub (Feb 15, 2022). Im finding some color distortion which is significant in my own training cases (but visible in v1.2) and seems to be resolved by altering rgb2bgr=False in 2 rows: [https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L115](https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L115) [https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L122](https://github.com/TencentARC/GFPGAN/blob/24b1f24ef561b2d20e3bbb607c2ce1f43f872e7b/gfpgan/utils.py#L122) so colours are becoming more vivid and match original what do you think?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#163