[IE][VPU]: Mish decomposition (#3412)
authorMaksim Doronin <maksim.doronin@intel.com>
Mon, 30 Nov 2020 15:51:51 +0000 (18:51 +0300)
committerGitHub <noreply@github.com>
Mon, 30 Nov 2020 15:51:51 +0000 (18:51 +0300)
commitd2e3e1fc006fe16699528a3191c5ec3450814e90
treecbfe528b39251551848a009a672d7d24d98c9483
parent2a57c7bbe49a8eabe5cd5e09015c2f8b408ccffd
[IE][VPU]: Mish decomposition (#3412)

Introduce vpu ngraph transformation that decomposes Mish layer with the following formula: mish(x) = x * tanh(ln(exp(x) + 1)). It is needed to fix the accuracy drop of Yolo-v4 public model that happened due to Mish implementation in the myriad plugin is not accurate enough. It is just a workaround and will be removed when Mish layer will be improved.
map: 70.97% (ref: 70.96%)
coco_precision: 73.50% (ref 73.49%)
inference-engine/src/vpu/common/include/vpu/ngraph/transformations/convert_extract_image_patches_to_reorg_yolo.hpp
inference-engine/src/vpu/common/include/vpu/ngraph/transformations/mish_decomposition.hpp [new file with mode: 0644]
inference-engine/src/vpu/common/src/ngraph/transformations/convert_extract_image_patches_to_reorg_yolo.cpp
inference-engine/src/vpu/common/src/ngraph/transformations/mish_decomposition.cpp [new file with mode: 0644]
inference-engine/src/vpu/graph_transformer/src/frontend/frontend.cpp