Skip to content

Parameter name inconsistency between 1st and 2nd stage #120

@halsay

Description

@halsay

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions