Skip to content

resume_net未定义以及测试加载的模型 #5

@jamesbondzhou

Description

@jamesbondzhou

您好,我有两个问题想请教一下。
第一个是train.py第114行,torch.load(resume_net)这里的resume_net没定义吧
第二个问题是test.py运行时报错RuntimeError: Error(s) in loading state_dict for FSSD:size mismatch for conf.0.bias: copying a param with shape torch.Size([126]) from checkpoint, the shape in current model is torch.Size([486])........
这里net.load_state_dict(new_state_dict)加载fssd_voc_79_74.pth导致了size不匹配

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