<commit_before>---
layout:     post
title:      "Ubuntu14.04上配置caffe SSD问题记录"
subtitle:   "测试环境为Ubuntu14.04.5_x64"
date:       2017-04-17
author:     "QiQ"
header-img: "img/BingWallpaper-2017-04-17.jpg"
tags:
    - caffe
    - SSD
    - Ubuntu
---
## caffe ssd安装
>[caffe ssd github地址](https://github.com/weiliu89/caffe/tree/ssd)  
>[ Ubuntu上配置caffe+SSD及demo演示（附带问题汇总）](http://blog.csdn.net/u013738531/article/details/56678247)  
>[SSD训练过程](http://blog.csdn.net/wizardna521/article/details/53463348)  

## 开启cudnn功能编译报错  
编译时的报错信息：  

    error: ‘CUDNN_PROPAGATE_NAN’ was not declared in this scope CUDNN_CHECK(cu

    ‘CUDNN_PROPAGATE_NAN’ was not declared in this scope  
     CUDNN_CHECK(cudnnSetPooling2dDescriptor(*pool_desc, *mode,
---  
判断为cudnn版本问题。尝试修改cudnn版本，替换`/usr/local/cuda/include/`和`/usr/local/cuda/lib64/`目录下的cudnn文件  
[cudnn下载](https://developer.nvidia.com/cuDNN)  根据需求选择版本，此处下载的版本为cudnn-7.5-linux-x64-v5.0-ga.tgz  
替换步骤：  
1、解压出一个名为cuda的文件夹，文件夹中有include和lib64两个文件夹   
2、删除原来的cudnn  
`sudo rm -rf /usr/local/cuda/include/cudnn.h`  
`sudo rm -rf /usr/local/cuda/lib64/libcudnn*`  
3、安装安装需要版本的cudnn，在终端cd到刚解压的cuda文件夹  
`sudo cp include/cudnn.h /usr/local/cuda/include/`  
`sudo cp lib64/lib* /usr/local/cuda/lib64/`  
4、建立软链接（注意版本号换成你自己的）  
`sudo chmod +r libcudnn.so.5.0.5`  <commit_msg>modified caffe ssd<commit_after>---
layout:     post
title:      "Ubuntu14.04上配置caffe SSD问题记录"
subtitle:   "测试环境为Ubuntu14.04.5_x64"
date:       2017-04-17
author:     "QiQ"
header-img: "img/BingWallpaper-2017-04-17.jpg"
tags:
    - caffe
    - SSD
    - Ubuntu
---
## caffe ssd安装
>[caffe ssd github地址](https://github.com/weiliu89/caffe/tree/ssd)  
>[ Ubuntu上配置caffe+SSD及demo演示（附带问题汇总）](http://blog.csdn.net/u013738531/article/details/56678247)  
>[SSD训练过程](http://blog.csdn.net/wizardna521/article/details/53463348)  

## 开启cudnn功能编译报错  
编译时的报错信息：  
```
error: ‘CUDNN_PROPAGATE_NAN’ was not declared in this scope CUDNN_CHECK(cu

‘CUDNN_PROPAGATE_NAN’ was not declared in this scope  
 CUDNN_CHECK(cudnnSetPooling2dDescriptor(*pool_desc, *mode,
```

判断为cudnn版本问题。尝试修改cudnn版本，替换`/usr/local/cuda/include/`和`/usr/local/cuda/lib64/`目录下的cudnn文件  
[cudnn下载](https://developer.nvidia.com/cuDNN)  根据需求选择版本，此处下载的版本为cudnn-7.5-linux-x64-v5.0-ga.tgz  
替换步骤：  
1、解压出一个名为cuda的文件夹，文件夹中有include和lib64两个文件夹   
2、删除原来的cudnn  
`sudo rm -rf /usr/local/cuda/include/cudnn.h`  
`sudo rm -rf /usr/local/cuda/lib64/libcudnn*`  
3、安装安装需要版本的cudnn，在终端cd到刚解压的cuda文件夹  
`sudo cp include/cudnn.h /usr/local/cuda/include/`  
`sudo cp lib64/lib* /usr/local/cuda/lib64/`  
4、建立软链接（注意版本号换成你自己的）  
`sudo chmod +r libcudnn.so.5.0.5`  
{'fraction_non_alphanumeric': 0.14648212226066898, 'fraction_numerical': 0.06228373702422145, 'mean_word_length': 3.975143403441683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7563729', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1465, 'n_words': 148}