Hello dear Team,
I have a problem with loading simple network, including Upsample2D. OpenCV DNN gives error:
dnn::readNet_12() : OpenCV(4.6.0-dev) C:\Users\satoo\Desktop\opencv\modules\dnn\src\onnx\onnx_importer.cpp:1040: error: (-2:Unspecified error) in function ‘cv::dnn::dnn4_v20220524::ONNXImporter::handleNode’
Node [Upsample@ai.onnx]:(onnx_node!Upsample__81) parse error: OpenCV(4.6.0-dev) C:\Users\satoo\Desktop\opencv\modules\dnn\src\layers\resize_layer.cpp:48: error: (-2:Unspecified error) in function ‘__cdecl cv::dnn::ResizeLayerImpl::ResizeLayerImpl(const class cv::dnn::dnn4_v20220524::LayerParams &)’
:
‘interpolation == “nearest” || interpolation == “opencv_linear” || interpolation == “bilinear”’
where
‘interpolation’ is linear
Please let me know workaround of this issue. I tried to generate ONNX from keras H5 model with different opsets, including 8,11,14,16. No any impact on error. But how I can see, Opencv DNN supports Upsampling2D operation. So please help me with conversion.
Regards,
Tigran