Skip to content

an error #32

@cabbag-ml

Description

@cabbag-ml

模型已经显示加载成功 但还是报错 请问这个问题怎么解决?
Global Adaptive Pooling
Weighted Regularized Triplet: off
Start epoch: 20
Path to the checkpoint of optimizer: ../pretrain/market1501_AGW_20.pth
Path to the checkpoint of center_param: ../pretrain/market1501_AGW_20.pth
Path to the checkpoint of optimizer_center: ../pretrain/market1501_AGW_20.pth
Traceback (most recent call last):
File "D:\ProgramData\PythonProject\ReID-Survey-master\tools\main.py", line 112, in
main()
File "D:\ProgramData\PythonProject\ReID-Survey-master\tools\main.py", line 85, in main
optimizer['model'].load_state_dict(torch.load(path_to_optimizer))
File "D:\StudySoftware\Anaconda\envs\pytorch1.0.0\lib\site-packages\torch\optim\optimizer.py", line 106, in load_state_dict
saved_groups = state_dict['param_groups']
KeyError: 'param_groups'

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