Closed SeptemberN closed 1 year ago
Sorry, I made a mistake in the parameters in the program myself. It has now been resolved.
@SeptemberN
Hello, I got same error with you, using code:
torch.save({'model': self.G.state_dict(), 'optimizer': self.g_optimizer.state_dict()}, 'autovc.ckpt')
How did you remove 'the size mismatch error'?
Hi! You can try to check and modify the added parameters of "parser" in main.py. The shape of the trained model should be consistent with the input data. Tips: You can run 100 saves and test if the model is available
I saved the model using torch.save() in slover_encoder.py, but I get an error when loading it in conversion.ipynb. None of the model parameters have been changed, why?
torch.save(self.G.state_dict(), 'g.ckpt')
The error is as follows: