Comments (6)
多GPU训练时保存的模型会在每一个key前面加上module,你可以在载入时,通过切片的方式将其去掉,例如:key[7:],从索引7开始。如果只有一张卡,可以不用采用多GPU训练。
from cv.
请问训练时模型参数都设置的什么呢,epoch,batch_size,lr之类的我的loss一直在0.8下不来,一开始的训练时你们有用VGG16的模型权重吗
from cv.
您好,我在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.
@lan-mie-mie 不好意思,我的loss用的是自己的数据集train出来,原数据集我没有研究,模型参数只是按默认值跑了一下而已,给不了你建议
from cv.
from cv.
Reference
没有使用
from cv.
Related Issues (5)
- SegNet 网络结构 HOT 1
- 环境配置冲突
- backbone训练
- 准确率是咋显示的?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cv.