I am doing augmentation to do segmentation task with caffe
. The Python Layer
that I have written is raising an error. The layer definition is like this:
layer {
name: 'myaug'
type: 'Python'
bottom: 'data'
bottom: 'label'
top: 'data'
top: 'label'
python_param {
module: 'augLayer'
layer: 'CompactData'
}
}
this is the net drawing: net drawing
The error seems to be related to numpy
:
File "/home/usersc/caffe/python/caffe/pycaffe.py", line 11, in <module>
import numpy as np
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/core/__init__.py", line 22, in <module>
from . import _internal # for freeze programs
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/site-packages/numpy/core/_internal.py", line 14, in <module>
import ctypes
File "/home/usersc/anaconda2/envs/mycaffe/lib/python2.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: /home/usersc/anaconda2/envs/mycaffe/lib/python2.7/lib-dynload/_ctypes.so: undefined symbol: _PySlice_Unpack
I am not sure, I am thinking should I add a MemoryData
layer to keep the augmented data for me as in this link since both data and label images should be sent synchronously. Is it like that Data Layer
memory should be cleared?