Configurations:
I have Cuda 12.0 in local system, so I had to install latest PyTorch version to enable GPU for PyTorch.
I was able to get latent code (latent.pt), obtain the FR model and placed everything in the appropriate directories
AttributeError: 'dict' object has no attribute 'eval'
This is caused in line 209 in adversarial_optimization.py.
i.e g_ema = torch.load(self.generators[ff]).eval() #loading fine-tuned generator
Generally, we use model.load(weight.pt) after creating the model instance model=Model(). Is the above error because of this or this is arising because of different Pytorch versions?
Configurations: I have Cuda 12.0 in local system, so I had to install latest PyTorch version to enable GPU for PyTorch. I was able to get latent code (latent.pt), obtain the FR model and placed everything in the appropriate directories
When I tried running
I got
This is caused in
line 209
inadversarial_optimization.py
. i.eg_ema = torch.load(self.generators[ff]).eval() #loading fine-tuned generator
Generally, we use
model.load(weight.pt)
after creating the model instancemodel=Model()
. Is the above error because of this or this is arising because of different Pytorch versions?