当前位置:网站首页>CNN优化trick
CNN优化trick
2022-06-26 15:21:00 【liiiiiiiiiiiiike】
针对CNN优化
- 使用类似1*1 的网络结构预训练RGB数据
- 使用大约 128(0.005) 到 256 (0.01)的 mini-batch 大小。如果这对你的 GPU 而言太大,将学习率按比例降到这个大小就行
- 卷积层取代FC,并用全局平均池化来预测
- 研究增加数据集大小时,要考虑数据分布
- 如果不能增加输入图像的大小,但是可以在随后的层上减少步幅
训练深度神经网络的trick
- 每一个epoch都要shuffle
- 扩展数据集:小数据集容易过拟合。
- 在整个数据集训练之前,先在非常小的子数据集上训练进行过拟合,这样可以知道网络是否可以收敛。
- 在FC层 channel>256 就应该适当使用dropout
- 避免使用双曲激活函数sigmoid或tanh
- 在最大池化之前不要使用relu,而是在保存计算之后使用它
- 尽量不要使用relu,初始化不好导致满盘皆输。可以采用PRelu,左边*0.1
- 经常使用批归一化
- 修改模型,只要可能就使用1*1的CNN层
提升算法性能思路
- 数据提升性能
- 算法提升性能
- 调参提升性能
数据提升性能
- 获取更多数据
- 创造更多数据
- rescale数据
重放缩数据至激活函数边界 - 数据变换
算法提升性能
- 对算法抽样调查
- 借鉴已有文献
- 重采样方法
调参提升性能
- 诊断
判断model是否过拟合或者欠拟合 - 权重初始化
- 学习率
- 激活函数
- 改变网络结构
- batchsize 和epoch
- 正则化
- 优化器和损失函数
- early stopping
边栏推荐
- Execution of commands in the cluster
- Utilisation d'abortcontroller
- Evaluate:huggingface评价指标模块入门详细介绍
- Seurat to h5ad summary
- Pod scheduling of kubernetes
- 【TcaplusDB知识库】TcaplusDB系统用户组介绍
- 数据库-完整性约束
- [tcapulusdb knowledge base] Introduction to tcapulusdb general documents
- nanoPi Duo2连接wifi
- Compile configuration in file
猜你喜欢

【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍

【ceph】CephFS 内部实现(三):快照
Mr. Du said that the website was updated with illustrations
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction](/img/66/f3ab0514d691967ad88535ae1448c1.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction

数据库-完整性约束

1. accounting basis -- several major elements of accounting (general accounting theory, accounting subjects and accounts)

【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
![[tcapulusdb knowledge base] Introduction to tcapulusdb data structure](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb data structure
![[CEPH] Introduction to cephfs caps](/img/41/7d59ecbc1129503c8858dc0304a3f9.png)
[CEPH] Introduction to cephfs caps

音视频学习(一)——PTZ控制原理
随机推荐
JS之简易deepCopy(简介递归)
Sikuli automatic testing technology based on pattern recognition
【C语言练习——打印空心上三角及其变形】
Sorted out a batch of script standard function modules (version 2021)
Redis-集群
Redis cluster re fragmentation and ask command
1.会计基础--会计的几大要素(会计总论、会计科目和账户)
vue中缓存页面 keepAlive使用
[graduation season · advanced technology Er] what is a wechat applet, which will help you open the door of the applet
JS events
shell脚本多进程并发写法实例(高阶修炼)
音视频学习(一)——PTZ控制原理
Unity C # e-learning (10) -- unitywebrequest (1)
[CEPH] cephfs internal implementation (IV): how is MDS started-- Undigested
SAP GUI 770 Download
vsomeip3 双机通信文件配置
Shell script multi process concurrent writing method example (high level cultivation)
【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
SQLite loads CSV files and performs data analysis
nanoPi Duo2连接wifi