Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dnn::Net work correctly in Debug and doesn't work in Release

Hello!

There is the strange problem in my solution.

I use pretrained caffe model with resnet-128, and when it's run in debug mode, result of forward() is correct, but in release mode method forward() returns cv::Mat with correct dimension and nan-elements. I tried use version 3.4.3 for windows (from site), and then tried migrating to 4.0.1, but result is the same.

My solution contains other caffe models, but they work correctly in both modes.

Where can I find a bug?