You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weird error when finetuning. I tried to put 'embeddings' in ignore_modules but it didn't change anything.
bert
bert loaded
Traceback (most recent call last):
File "train_finetune.py", line 714, in <module>
main()
File "/home/shiro/miniconda3/envs/styletts_fine/lib/python3.7/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/shiro/miniconda3/envs/styletts_fine/lib/python3.7/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/shiro/miniconda3/envs/styletts_fine/lib/python3.7/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/shiro/miniconda3/envs/styletts_fine/lib/python3.7/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "train_finetune.py", line 212, in main
load_only_params=config.get('load_only_params', True))
File "/data/Repos/Forsen2/StyleTTS2/models.py", line 703, in load_checkpoint
model[key].load_state_dict(params[key])
File "/home/shiro/miniconda3/envs/styletts_fine/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1672, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MyDataParallel:
Missing key(s) in state_dict: "module.embeddings.position_ids".
The text was updated successfully, but these errors were encountered:
If you are running the notebook on Colab it should not happen, but it seems your transformers package is of an older version. I have fixed it for compatibility of older versions. Basically you need to modify the load models to not load them in strict mode.
Weird error when finetuning. I tried to put 'embeddings' in ignore_modules but it didn't change anything.
The text was updated successfully, but these errors were encountered: