Skip to content

SegNet模型保存 #2

@hocken-li

Description

@hocken-li

您好,我在model_path导入ep050.pth的文件,但是他出现错误:KeyError: 'module.encoder.encode1.0.weight'
同时,
ep050.pth在训练集与测试集loss均达0.05,但是,我用它predict的时候,只有一种颜色输出,甚至用训练集里的照片也是这样的结果
想请教一下:
请问是模型保存的出现问题了吗?
或者是torch.nn.DataParallel的问题吗?(我的cuda定义是True,但是我只有一张显卡;可是我cuda定义是False时是cpu训练,很慢)

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