Normalize image

31 views
Skip to first unread message

Thilina27

unread,
Jan 16, 2016, 2:34:08 AM1/16/16
to Caffe Users
Hi

Im trying example CNN with Nvidea Digits and im new to caffe.  

I have a data set of 100*100 gray scale image and i need to normalize them before use in CNN 

In python i have preform this 

  X_test -= X_test.mean()
  X_test /= X_test.std()

Is there a way to add a layer in Caffe to preform this task ? 

like this 
  • layer {
      name: "concat"
      bottom: "in1"
      bottom: "in2"
      top: "out"
      type: "Concat"
      concat_param {
        axis: 1
      }
    }
Reply all
Reply to author
Forward
0 new messages