Discriminators loading #212

Closed
opened 2026-01-29 21:45:45 +00:00 by claunia · 1 comment
Owner

Originally created by @mm-photoaid on GitHub (Jul 27, 2022).

Hi, I was going through your repo and was interested in reusing your trained discriminators.
Unfortunately I couldnt find how can I load them. I found in gfpganv1_arch.py class FacialComponentDiscriminator, is this the torch.nn.Module that is compatible with weights fromGFPGANv1_net_d.pth ? I want to load your discriminator to my custom pytorch module, is it even possible to do?

Originally created by @mm-photoaid on GitHub (Jul 27, 2022). Hi, I was going through your repo and was interested in reusing your trained discriminators. Unfortunately I couldnt find how can I load them. I found in `gfpganv1_arch.py` class `FacialComponentDiscriminator`, is this the `torch.nn.Module` that is compatible with weights from`GFPGANv1_net_d.pth` ? I want to load your discriminator to my custom pytorch module, is it even possible to do?
Author
Owner

@hfutxyh commented on GitHub (Feb 23, 2024):

Hello, I wanted to ask if you have solved this problem? I also want to use the pretrained discriminator model included in it.

@hfutxyh commented on GitHub (Feb 23, 2024): Hello, I wanted to ask if you have solved this problem? I also want to use the pretrained discriminator model included in it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#212