Disables bias for convolutional layers, as per the original implementation.
Configures BatchNormalization to use epsilon=1e-5, as per Caffe's default.
Changes some padding="same" to ZeroPadding2D. The difference is that ZeroPadding2D pads symmetrically (same as padding=3 in Caffe) whereas padding="same" pads at the end of a blob until it can maintain the correct shape.
Adds tools for importing / exporting ResNet models from Caffe (first convert Caffe model to .h5 file, then import into Keras).
With these changes I got near identical (within reasonable floating point precision) results compared to Caffe output for a few test images.
Exported models from Caffe can be downloaded here.
This PR includes the changes from https://github.com/broadinstitute/keras-resnet/pull/34. In addition, this PR:
BatchNormalization
to useepsilon=1e-5
, as per Caffe's default.padding="same"
toZeroPadding2D
. The difference is thatZeroPadding2D
pads symmetrically (same aspadding=3
in Caffe) whereaspadding="same"
pads at the end of a blob until it can maintain the correct shape..h5
file, then import into Keras).With these changes I got near identical (within reasonable floating point precision) results compared to Caffe output for a few test images.
Exported models from Caffe can be downloaded here.