3.2.5 转换模型 ................................................................................................................................................................ 20
3.3 TensorFlow 模型优化训练 ....................................................................................................................................... 20
3.3.1 准备 TensorFlow 环境 ........................................................................................................................................... 21
3.3.1.1 准备 Docker 环境 ................................................................................................................................................ 21
3.3.1.2 准备 Linux 环境 .................................................................................................................................................. 21
3.3.2 配置模型接口 ........................................................................................................................................................ 21
3.3.3 优化策略配置 ........................................................................................................................................................ 27
3.3.4 训练模型 ................................................................................................................................................................ 29
3.3.5 转换模型 ................................................................................................................................................................ 30
4 网络结构搜索训练........................................................................................................................ 31
4.1 环境准备 ................................................................................................................................................................... 31
4.1.1 Docker 环境............................................................................................................................................................ 31
4.1.2 Linux 环境 ............................................................................................................................................................... 32
4.2 数据集准备 ............................................................................................................................................................... 33
4.3 搜索参数配置 ........................................................................................................................................................... 33
4.4 自定义接口 ............................................................................................................................................................... 36
4.5 搜索训练 ................................................................................................................................................................... 39
4.5.1 训练入口 ................................................................................................................................................................ 39
4.5.2 维测方式 ................................................................................................................................................................ 39
4.5.3 搜索结果展示 ........................................................................................................................................................ 41
5 示 例 .......................................................................................................................................... 44
5.1 Caffe Quant_INT8-8 无训练量化 Demo ................................................................................................................... 44
5.1.1 环境准备 ................................................................................................................................................................ 44
5.1.2 资源配置 ................................................................................................................................................................ 44
5.1.3 模型量化 ................................................................................................................................................................ 44
5.2 Tensorflow Quant_INT8-8 无训练量化 Demo .......................................................................................................... 45
5.2.1 环境准备 ................................................................................................................................................................ 45
5.2.2 模型配置 ................................................................................................................................................................ 45
5.2.3 模型量化 ................................................................................................................................................................ 45
5.3 Caffe 重训练量化 Demo ........................................................................................................................................... 45
5.3.1 数据集准备 ............................................................................................................................................................ 45
5.3.2 环境准备 ................................................................................................................................................................ 46
5.3.3 模型配置 ................................................................................................................................................................ 46
5.3.4 优化策略配置 ........................................................................................................................................................ 46
5.3.5 模型训练 ................................................................................................................................................................ 46
5.3.6 模型转换 ................................................................................................................................................................ 46
5.4 TensorFlow 重训练量化 Demo ................................................................................................................................. 46
5.4.1 数据集准备 ............................................................................................................................................................ 46
5.4.2 环境准备 ................................................................................................................................................................ 47
评论0