mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Fix a bug in FusedBatchNorm (TensorFlow) layer importer
This commit is contained in:
parent
dad2247b56
commit
7ce2397b62
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user