classify-samples.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:have-fun-with-machine-learning 作者: humphd 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号