mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-17 15:50:19 -07:00
update: format and standards
This commit is contained in:
parent
ad70ce4653
commit
f6d3f70646
@ -230,7 +230,7 @@ class GFPGANv1Clean(nn.Module):
|
||||
self.stylegan_decoder.load_state_dict(
|
||||
torch.load(decoder_load_path, map_location=lambda storage, loc: storage)['params_ema'])
|
||||
if fix_decoder:
|
||||
for name, param in self.stylegan_decoder.named_parameters():
|
||||
for _, param in self.stylegan_decoder.named_parameters():
|
||||
param.requires_grad = False
|
||||
|
||||
# for SFT
|
||||
|
Loading…
x
Reference in New Issue
Block a user