Repository: opencv
Issue: found error while importing FaceDetectorYN test model
Labels: category: objdetect,category: dnn,needs reproducer

##### System information (version)
<!-- Example
- OpenCV => 4.5.4 installed by vcpkg
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2022
-->


<!-- your description -->

I try to use new FaceDetectorYN to do a face detect work.Then when i load the demo model that opencv docs offered, it 
throw an error .
And detail is followed:
```
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\parallel\registry_parallel.impl.hpp (96) cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\16251\source\repos\ConsoleApplication8\x64\Debug\opencv_core_parallel_onetbb454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\16251\source\repos\ConsoleApplication8\x64\Debug\opencv_core_parallel_tbb454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\16251\source\repos\ConsoleApplication8\x64\Debug\opencv_core_parallel_openmp454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp454_64d.dll => FAILED
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\onnx\onnx_importer.cpp (602) cv::dnn::dnn4_v20211004::ONNXImporter::populateNet DNN/ONNX: loading ONNX v6 model produced by 'pytorch':1.9. Number of nodes = 85, inputs = 1, outputs = 3
[ INFO:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\videoio\src\videoio_registry.cpp (223) cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(8, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940); UEYE(930)
OpenCV(4.5.4) Error: Assertion failed (inputs[vecIdx][j] == inputs[i][j]) in cv::dnn::EltwiseLayerImpl::getMemoryShapes, file C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\layers\eltwise_layer.cpp, line 247
[ERROR:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\dnn.cpp (3554) cv::dnn::dnn4_v20211004::Net::Impl::getLayerShapesRecursively OPENCV/DNN: [Eltwise]:(262): getMemoryShapes() throws exception. inputs=2 outputs=1/1 blobs=0
[ERROR:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\dnn.cpp (3557) cv::dnn::dnn4_v20211004::Net::Impl::getLayerShapesRecursively     input[0] = [ 1 64 15 20 ]
[ERROR:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\dnn.cpp (3557) cv::dnn::dnn4_v20211004::Net::Impl::getLayerShapesRecursively     input[1] = [ 1 64 20 20 ]
[ERROR:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\dnn.cpp (3561) cv::dnn::dnn4_v20211004::Net::Impl::getLayerShapesRecursively     output[0] = [ 1 64 15 20 ]
[ERROR:0] global C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\dnn.cpp (3567) cv::dnn::dnn4_v20211004::Net::Impl::getLayerShapesRecursively Exception message: OpenCV(4.5.4) C:\vcpkg-master\buildtrees\opencv4\src\4.5.4-6210bf5274.clean\modules\dnn\src\layers\eltwise_layer.cpp:247: error: (-215:Assertion failed) inputs[vecIdx][j] == inputs[i][j] in function 'cv::dnn::EltwiseLayerImpl::getMemoryShapes'
```
i dont know how to solve it.