-
Notifications
You must be signed in to change notification settings - Fork 641
Closed
Description
Line 39 in 2c427fc
| return getattr(self.module, name) |
In 2nd stage training, names of all parameters are added 'module.' as a prefix. However, in the 1st stage they are not.
In that case, parameters trained from 1st stage are not really loaded in 2nd stage and you won't get an error because they are not strict loaded (It even prints the model is loaded).
https://github.com/yl4579/StyleTTS2/blob/main/models.py#L696
I get Nan at the beginning of 2nd stage training and I manage to find out the problem described above. And 2nd stage training becomes normal after the parameters successfully loaded.
Metadata
Metadata
Assignees
Labels
No labels