CUDA convnet 编译及运行20140808
来源:互联网 发布:淘宝什么时候成立的 编辑:程序博客网 时间:2024/06/08 04:46
作为刚接触 linux 的菜鸟,一来就被要求运行 cuda convnet 程序,感谢伟大的网站https://github.com/botonchou/cuda-convnet
之前一直用的是http://code.google.com/p/cuda-convnet/wiki/Compiling 可是编译的老是出错于是换成上面的程序果断能训练了
具体方法(PS 用的是 ubuntu 系统
要求 具备软件
- NVIDIA CUDA Toolkit (至少是5.0 我用的是6.0网站上都有自己找就行了) 一下四个是系统自带我用的是 ubuntu 所以只需要执行更新就行
- Python development libraries/headers
- Numpy
- Python libmagic bindings
- Matplotlib
- ATLAS development libraries/headers
sudo apt-get install python-devsudo apt-get install python-numpysudo apt-get install python-magicsudo ape-get install python-matplotlibsudo apt-get install libatlas-base-dev以上都会自动更新下面是编译chmod +x install-sh./install-sh
最后开始训练
sh ./go_example.sh
不多说直接看下图
logprob: 0.745161, 0.222200
-------------------------------------------------------
Layer 'conv1' weights[0]: 1.033780e-01 [5.014547e-05]
Layer 'conv1' biases: 5.254298e-01 [1.338963e-06]
Layer 'conv2' weights[0]: 3.163821e-02 [2.181243e-05]
Layer 'conv2' biases: 2.138886e-01 [6.067374e-07]
Layer 'conv3' weights[0]: 2.676884e-02 [2.672804e-05]
Layer 'conv3' biases: 1.548886e-01 [5.535466e-07]
Layer 'fc10' weights[0]: 1.993447e-03 [9.338871e-05]
Layer 'fc10' biases: 1.105464e+00 [2.657892e-05]
-------------------------------------------------------
Saved checkpoint to exp/ConvNet__2014-08-07_22.34.57
======================================================= (4.365 sec)
3297.5... logprob: 0.267501, 0.076600 (3.097 sec)
3298.1... logprob: 0.265813, 0.077400 (3.113 sec)
这是训练所显示的这个代码比之前的简单方便不需要修改路径,以前使用库函数
之前运行时遇到了要修改 convner.so 函数库 这个需要自己添加我用的是 openblas 安装时先安装blas 再安装 CBLAS 最后在安装openblas 然后生成。。。。so 函数库
还需要修改路径网上有说明
- CUDA convnet 编译及运行20140808
- cuda-convnet 的运行环境设置
- 安装cuda-convnet
- cuda-convnet代码阅读笔记
- Ubuntu14.04配置cuda-convnet
- Win7 64位系统,VS2010环境下编译cuda-convnet指南
- Win7 64位系统,VS2010环境下编译cuda-convnet指南
- Win7 64位系统,VS2010环境下编译cuda-convnet指南
- Remote development of CUDA Applications CUDA应用远程编译及运行
- cuda程序的编译运行
- cuda程序的编译运行
- Install and Run cuda-convnet on Windows
- 3D ConvNet Demo运行
- 【走进CUDA】~详解CUDA核函数及运行时参数
- CUDA核函数及运行时参数
- Compiling Cuda-convnet based CUDA5 on Visual Studio 2010/2012
- cuda-convnet的vs和python 联合 调试
- Cuda-convnet配置指南 on Windows8.1+CUDA6.5+VS2013
- struts2注解下的拦截器配置
- 面向对象六大原则(五):迪米特法则
- NAT&Port Forwarding&Port Triggering
- rebar 热部署erlang程序
- 使用javassist动态注入代码
- CUDA convnet 编译及运行20140808
- linux draca
- C实现 每隔1s向time.txt文件输出系统时间(C I/O函数)
- 12、降低三个容器的耦合度代码实现(观察者设计模式)
- 欧几里得算法-----欧几里德算法
- PHP开发工具和经典书籍
- /dev/tty /dev/ttyS0 /dev/tty0区别
- 媒体称叶迎春和沈冰因卷入周永康案被查
- DFS(剪枝)_hdu_1010