Skip to content

Commit

Permalink
Merge pull request opencv#14284 from dkurt:fix_14236
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Apr 12, 2019
2 parents 227ec19 + 7ce2397 commit 5f50069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dnn/src/tensorflow/tf_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1509,8 +1509,8 @@ void TFImporter::populateNet(Net dstNet)
if (layerParams.blobs.size() == 2)
CV_Error(Error::StsNotImplemented, "Cannot determine number "
"of parameters for batch normalization layer.");
mean = Mat::zeros(1, layerParams.blobs[3].total(), CV_32F);
std = Mat::ones(1, layerParams.blobs[3].total(), CV_32F);
mean = Mat::zeros(1, layerParams.blobs[2].total(), CV_32F);
std = Mat::ones(1, layerParams.blobs[2].total(), CV_32F);

// Add an extra layer: Mean-Variance normalization
LayerParams mvnParams;
Expand Down

0 comments on commit 5f50069

Please sign in to comment.