I want to read data from hdf5
file and do data augmentation.
I can do data augmentation in transform_param
with mirror and crop.
However,I cannot have transformation_param
in a HDF5Data
layer - caffe does not support this.
I consider it might be a good way to write a python layer to solve it. Read data from hdf5 file and do data augmentation at the same time.
I have read some relevant answers such as "caffe data layer example step by step" and "What is a Python layer in caffe?"
I still don't know some details such as where should I put the written file"*.py"
? And how to write the codes to do data augmentation?