def setup_caffe(caffe_root):
# Load Caffe's Python interface from the specified path
sys.path.insert(0, os.path.join(caffe_root, 'python'))
global caffe
global caffe_pb2
import caffe
from caffe.proto import caffe_pb2
# Set Caffe to use CPU mode so this will work on as many machines as possible.
caffe.set_mode_cpu()
classify-samples.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录