180520 Caffe官方例子example问题汇总

问题1no module name _caffe
解决python在import caffe时出现的no module name _caffe问题
这里写图片描述

# 将相对路径改为绝对路径
caffe_root = '/home/brucelau/anaconda3/envs/caffe27/'
# caffe_root = '../'  # this file should be run from {caffe_root}/examples (otherwise change this line)

问题2browser Failed to launch GPU process
How to deal with chrome failing to launch GPU process
这里写图片描述

export BROWSER=google-chrome

问题3The kernel appears to have died. It will restart automatically - Running the learning lenet example

  • 方法1:

改Gpu

caffe.set_device(0)
caffe.set_mode_gpu()

为Cpu

caffe.set_mode_cpu()


  • 方法2

Yes I agree with you. I had gotten that same issue in my other machine too.
But this time I ran the code in jupyter-qtconsole and normal jupyter command line. So the error message and its details were displayed right away on the console itself. I suggest you to run the code on console first to identify the error. Because the browser notebook exits without error statement and details.
这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_33039859/article/details/80383129