当前位置:网站首页>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
边栏推荐
- Redis cluster re fragmentation and ask command
- 使用卷积对数据进行平滑处理
- 【ceph】CephFS 内部实现(四):MDS是如何启动的?--未消化
- Unity C# 网络学习(八)——WWW
- 【ceph】CephFS 内部实现(三):快照
- 一篇博客彻底掌握:粒子滤波 particle filter (PF) 的理论及实践(matlab版)
- ETL过程中数据精度不准确问题
- Redis transaction and watch instruction
- Particle filter PF -- Application in maneuvering target tracking (particle filter vs extended Kalman filter)
- 评价——TOPSIS
猜你喜欢

【小程序实战系列】小程序框架 页面注册 生命周期 介绍

音视频学习(一)——PTZ控制原理
![[graduation season · advanced technology Er] what is a wechat applet, which will help you open the door of the applet](/img/c8/f3f31a8e53c5918abc719603811cc7.png)
[graduation season · advanced technology Er] what is a wechat applet, which will help you open the door of the applet

Restcloud ETL extracting dynamic library table data

Applet: uniapp solves vendor JS is too large

Inaccurate data accuracy in ETL process

【TcaplusDB知识库】TcaplusDB常规单据介绍
![[CEPH] cephfs internal implementation (I): Concept -- undigested](/img/5c/ca666118848b4f3042b834fb79d27f.png)
[CEPH] cephfs internal implementation (I): Concept -- undigested

【ceph】CephFS 内部实现(三):快照

Evaluation - TOPSIS
随机推荐
Is it safe to open a stock account through the account opening link of the broker manager? Or is it safe to open an account in a securities company?
Applicable and inapplicable scenarios of mongodb series
Database - sequence
vue中缓存页面 keepAlive使用
5 figures illustrate the container network
Mr. Du said that the website was updated with illustrations
Using restcloud ETL shell component to schedule dataX offline tasks
[C language practice - printing hollow upper triangle and its deformation]
Restcloud ETL extracting dynamic library table data
【ceph】cephfs caps简介
【TcaplusDB知识库】TcaplusDB系统管理介绍
【TcaplusDB知识库】TcaplusDB OMS业务人员权限介绍
2022 Beijing Shijingshan District specializes in the application process for special new small and medium-sized enterprises, with a subsidy of 100000-200000 yuan
High frequency interview 𞓜 Flink Shuangliu join
BLE抓包调试信息分析
Cluster addslots establish a cluster
【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
[tcapulusdb knowledge base] Introduction to tcapulusdb general documents
Vsomeip3 dual computer communication file configuration
Particle filter PF - 3D CV target tracking with uniform motion (particle filter vs extended Kalman filter)