You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
(This is intended as an umbrella issue to follow up my ongoing proposal on the dev mailing list & work on handling OpenCV exceptions)
Description
I am working on migrating a classification product currently using Caffe to
MXNet. Along the way I'm encountering some issues loading and augmenting
the images dataset.
Basically it seems my dataset contains some technically invalid images.
When loading them using mx.io.ImageRecordIter (from a Python script), they
get passed eventually to the OpenCV library which will throw a C++
exception. MXNet currently doesn't capture those, resulting in my script
aborting with a not very clear error message.
Error Message:
"
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.3)
/home/lgo/dev/opencv-3.4.3/modules/imgproc/src/resize.cpp:4044: error:
(-215:Assertion failed) !ssize.empty() in function 'resize'
Aborted (core dumped)
"
Environment info (Required)
Linux (Ubuntu 18.04), OpenCV 3.4.3, mxmet master branch, Python 3.6.6
It's not clear exactly which image causes this particular exception. As the process aborts due to the unhandled exception, there is no easy way to capture good information about the process status - in this case the image name.
The text was updated successfully, but these errors were encountered:
Late reply, I missed the notification. But what exactly do you mean?
An application using mxnet will abort whenever there is an Assert triggered in the 3rd party libraries it uses, or atleast in OpenCV. That can for instance happen when you pass it an incorrect image file (take a text file and load it as .jpg for instance).
(This is intended as an umbrella issue to follow up my ongoing proposal on the dev mailing list & work on handling OpenCV exceptions)
Description
I am working on migrating a classification product currently using Caffe to
MXNet. Along the way I'm encountering some issues loading and augmenting
the images dataset.
Basically it seems my dataset contains some technically invalid images.
When loading them using mx.io.ImageRecordIter (from a Python script), they
get passed eventually to the OpenCV library which will throw a C++
exception. MXNet currently doesn't capture those, resulting in my script
aborting with a not very clear error message.
Error Message:
"
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.3)
/home/lgo/dev/opencv-3.4.3/modules/imgproc/src/resize.cpp:4044: error:
(-215:Assertion failed) !ssize.empty() in function 'resize'
Aborted (core dumped)
"
Environment info (Required)
Linux (Ubuntu 18.04), OpenCV 3.4.3, mxmet master branch, Python 3.6.6
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Steps to reproduce
It's not clear exactly which image causes this particular exception. As the process aborts due to the unhandled exception, there is no easy way to capture good information about the process status - in this case the image name.
The text was updated successfully, but these errors were encountered: