Brainstorm-the walkthrough example: Image Classification
(1) 運(yùn)行create data,其中包括下載cifar10,并轉(zhuǎn)換為hdf5格式(詳見百度百科:http://baike.baidu.com/view/771949.htm#4_2):
cifar10的數(shù)據(jù)簡(jiǎn)介見:http://www.cs.toronto.edu/~kriz/cifar.html
cd data
python?create_cifar10.py
(2) 訓(xùn)練模型:
cd examples
python cifar10_cnn.py
關(guān)鍵在于網(wǎng)絡(luò)結(jié)構(gòu)的設(shè)置:convolution layer >> pooling >> convolution layer >> pooling >> convolution layer >> pooling >> fully connected
訓(xùn)練算法:SGD with momentum
(3)訓(xùn)練結(jié)果:只使用CPU,共耗時(shí)約179min,一個(gè)epoch約耗時(shí)為8~9min,max epoch=20
?
轉(zhuǎn)載于:https://www.cnblogs.com/shuzirank/p/6138842.html
總結(jié)
以上是生活随笔為你收集整理的Brainstorm-the walkthrough example: Image Classification的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。