Coder Social home page Coder Social logo

SegNet模型保存 about cv HOT 6 OPEN

hocken-li avatar hocken-li commented on May 23, 2024 1
SegNet模型保存

from cv.

Comments (6)

codecat0 avatar codecat0 commented on May 23, 2024

多GPU训练时保存的模型会在每一个key前面加上module,你可以在载入时,通过切片的方式将其去掉,例如:key[7:],从索引7开始。如果只有一张卡,可以不用采用多GPU训练。

from cv.

lan-mie-mie avatar lan-mie-mie commented on May 23, 2024

请问训练时模型参数都设置的什么呢,epoch,batch_size,lr之类的我的loss一直在0.8下不来,一开始的训练时你们有用VGG16的模型权重吗

from cv.

lan-mie-mie avatar lan-mie-mie commented on May 23, 2024

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

请问训练时模型参数都设置的什么呢,epoch,batch_size,lr之类的我的损失一直在0.8下不来,一开始的训练时你有用VGG16的模型权重吗,我发现代码的命名结构跟VGG16的不一样,我自己改了下降到0.6就也降不下来了

from cv.

hocken-li avatar hocken-li commented on May 23, 2024

@lan-mie-mie 不好意思,我的loss用的是自己的数据集train出来,原数据集我没有研究,模型参数只是按默认值跑了一下而已,给不了你建议

from cv.

lan-mie-mie avatar lan-mie-mie commented on May 23, 2024

from cv.

codecat0 avatar codecat0 commented on May 23, 2024

Reference

没有使用

from cv.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.