I am trying to train a CNN in caffe. I wanted to do a lot of data augmentation, so I'm using a "Python"
layer for input, as suggested here.
However, I see from the log that Caffe is using the datatype float32
for all my data. This is really wasteful, because I'm only dealing with 8-bit integers. Is there a way to tell caffe to use dtype='uint8'
?
I have tried to typecast the data while setting the top:
top[0].data[...] = someArray.astype(np.uint8, copy=False)
but this doesn't work.
Any suggestions?