python查看CNN训练模型参数
参照:http://blog.csdn.net/u011762313/article/details/49851795#!/usr/bin/env python# 引入“咖啡”import caffeimport numpy as np# 使输出的参数完全显示# 若没有这一句,因为参数太多,中间会以省略号“……”的形式代替np.set_printoptions(thresho
·
参照:http://blog.csdn.net/u011762313/article/details/49851795
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
解决办法:
import caffe in $CAFFE/python or add the path to sys.path 可以参照http://stackoverflow.com/questions/12257747/adding-a-file-path-to-sys-path-in-python
import sys
sys.path
sys.path.append('/path/to/the/example_file.py')
就是可以将我们的.py文件放在/caffe-master/python中运行
另外考虑http://blog.csdn.net/jenyzhang/article/details/49646641
查看当前python的安装路径
以及export PYTHONPATH=/...
echo $PYTHONPATH
关于deploy.prototxt的细节http://www.itdadao.com/articles/c15a748021p0.html
更多推荐
已为社区贡献3条内容
所有评论(0)