pierluigiferrari / caffe_weight_converter

Caffe-to-Keras weight converter. Can also export weights as Numpy arrays for further processing.
GNU General Public License v3.0
69 stars 25 forks source link

Batch Norm Caffe to Keras incorrect #7

Open kosstbarz opened 6 years ago

kosstbarz commented 6 years ago

When calculating mean and variance, factor layer['weights'][2] should be considered. Line 199: mean = layer['weights'][0] / layer['weights'][2]

aeeshms commented 4 years ago

But the value in Resenet-50 is always 1 for layer['weights'][2] from the extracted caffe model and result is not matching. Something is still missing