导入他人模型出错
- Dominant language
- Python
- Stars
- 36.9k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
错误:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\MockingBird-0.0.1\synthesizer_train.py", line 37, in
train(**vars(args))
File "C:\Users\Administrator\Desktop\MockingBird-0.0.1\synthesizer\train.py", line 114, in train
model.load(weights_fpath, optimizer)
File "C:\Users\Administrator\Desktop\MockingBird-0.0.1\synthesizer\models\tacotron.py", line 526, in load
optimizer.load_state_dict(checkpoint["optimizer_state"])
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\optim\optimizer.py", line 171, in load_state_dict
raise ValueError("loaded state dict contains a parameter group "
ValueError: loaded state dict contains a parameter group that doesn't match the size of optimizer's group
导入他人模型都不行,只有自己的可以用
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with an external checkpoint, then read synthesizer_train.py, synthesizer/train.py, and synthesizer/models/tacotron.py around train(), model.load(), and optimizer.load_state_dict(). Compare the checkpoint's optimizer state with the current optimizer configuration. Done means a model from another user loads without the parameter-group ValueError while existing self-trained models continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100