abhaydoke09 / Bilinear-CNN-TensorFlow

This is an implementation of Bilinear CNN for fine grained visual recognition using TensorFlow.
191 stars 72 forks source link

The process that you used after outer product #14

Open a14en9 opened 6 years ago

a14en9 commented 6 years ago

Hi, many thanks you share your code. But can you explain why you use tf.divide after you get the outer product. What's the purpose of using it and the following step, please.

abhaydoke09 commented 6 years ago

tf.divide is used to average the summation we get after the outer product. when we take an outer product of two filters with size 28x28, it is multiplying 28x28(784) values with other 28x28(784) values. Dividing by 784 helps to keep values small.

a14en9 commented 6 years ago

Thank you!