I'm following the ipython notebook example on training caffe via its python interface. However the caffe module seems not to contain the modules described in the tutorial
When I enter
import caffe
from caffe import layers as L
I get the error:
ImportError Traceback (most recent call last)
<ipython-input-5-7cbb5661b7a7> in <module>()
----> 1 from caffe import layers as L
ImportError: cannot import name layers
when I do dir(caffe) I get:
['Classifier',
'Detector',
'Layer',
'Net',
'SGDSolver',
'TEST',
'TRAIN',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__package__',
'__path__',
'_caffe',
'classifier',
'detector',
'get_solver',
'io',
'proto',
'pycaffe',
'set_device',
'set_mode_cpu',
'set_mode_gpu']
so it doesn't contain a module called "layers".
Is the tutorial somehow outdated? Is there a newer version which works for my version of caffe?