mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
dnn: dump layer's blobs on getMemoryShapes() error
This commit is contained in:
parent
f6137292f1
commit
2638c5e9b7
@ -2839,7 +2839,9 @@ struct Net::Impl
|
|||||||
catch (const cv::Exception& e)
|
catch (const cv::Exception& e)
|
||||||
{
|
{
|
||||||
CV_LOG_ERROR(NULL, "OPENCV/DNN: [" << l->type << "]:(" << l->name << "): getMemoryShapes() throws exception." <<
|
CV_LOG_ERROR(NULL, "OPENCV/DNN: [" << l->type << "]:(" << l->name << "): getMemoryShapes() throws exception." <<
|
||||||
" inputs=" << is.size() << " outputs=" << os.size() << "/" << requiredOutputs);
|
" inputs=" << is.size() <<
|
||||||
|
" outputs=" << os.size() << "/" << requiredOutputs <<
|
||||||
|
" blobs=" << l->blobs.size());
|
||||||
for (size_t i = 0; i < is.size(); ++i)
|
for (size_t i = 0; i < is.size(); ++i)
|
||||||
{
|
{
|
||||||
CV_LOG_ERROR(NULL, " input[" << i << "] = " << toString(is[i]));
|
CV_LOG_ERROR(NULL, " input[" << i << "] = " << toString(is[i]));
|
||||||
@ -2848,6 +2850,10 @@ struct Net::Impl
|
|||||||
{
|
{
|
||||||
CV_LOG_ERROR(NULL, " output[" << i << "] = " << toString(os[i]));
|
CV_LOG_ERROR(NULL, " output[" << i << "] = " << toString(os[i]));
|
||||||
}
|
}
|
||||||
|
for (size_t i = 0; i < l->blobs.size(); ++i)
|
||||||
|
{
|
||||||
|
CV_LOG_ERROR(NULL, " blobs[" << i << "] = " << typeToString(l->blobs[i].type()) << " " << toString(shape(l->blobs[i])));
|
||||||
|
}
|
||||||
CV_LOG_ERROR(NULL, "Exception message: " << e.what());
|
CV_LOG_ERROR(NULL, "Exception message: " << e.what());
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user