Is there a way to normalize data in bottom layer and pass it to the top layer?

15 views
Skip to first unread message

Wingwing Mok

unread,
Nov 16, 2016, 1:26:54 AM11/16/16
to Caffe Users
Hi all,

I am creating this topic to ask the question I describe in the subject. Basically, what I want to do is to normalize the data from bottom layer to the range [0,1] using the formula 


But I have no idea how to back propogate the gradient from the top layer based on this formula. Can anyone help me with some suggestions, either back-propogation about the formula or other way to do normalization?


Thanks!

i=ximin(x)mimages/n_scale_between_0_1_ekv.gif

anis....@shopedia.fr

unread,
Nov 16, 2016, 4:55:38 AM11/16/16
to Caffe Users
Hi
you can add a python layer to do the normalization :
please see this example of a python layer :http://stackoverflow.com/questions/34903975/how-to-create-caffedb-training-data-for-siamese-networks-out-of-image-directory
Reply all
Reply to author
Forward
0 new messages