Ask Your Question

Revision history [back]

Error why trying to run the dnn for object detection

I'm following the tutorial on how to do object detection using opencv 3.4 and mobilenet, but I have a problem when runnning this error appears, I already have created the graph.txt from the .pb file.

OpenCV Error: Assertion failed (!_aspectRatios.empty(), _minSize > 0) in cv::dnn ::PriorBoxLayerImpl::PriorBoxLayerImpl, file D:\Build\OpenCV\opencv-3.4.0\module s\dnn\src\layers\prior_box_layer.cpp, line 207 Traceback (most recent call last): File "opencv_tf_detection_2.py", line 11, in <module> cvOut = cvNet.forward() cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\dnn\src\layers\prior_box_layer.c pp:207: error: (-215) !_aspectRatios.empty(), _minSize > 0 in function cv::dnn:: PriorBoxLayerImpl::PriorBoxLayerImpl

click to hide/show revision 2
None

updated 2018-02-03 05:27:39 -0600

berak gravatar image

Error why trying to run the dnn for object detection

I'm following the tutorial on how to do object detection using opencv 3.4 and mobilenet, but I have a problem when runnning this error appears, I already have created the graph.txt from the .pb file.

OpenCV Error: Assertion failed (!_aspectRatios.empty(), _minSize > 0) in cv::dnn
::PriorBoxLayerImpl::PriorBoxLayerImpl, file D:\Build\OpenCV\opencv-3.4.0\module
s\dnn\src\layers\prior_box_layer.cpp, line 207
Traceback (most recent call last):
File "opencv_tf_detection_2.py", line 11, in <module>
cvOut = cvNet.forward()
cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\dnn\src\layers\prior_box_layer.c
pp:207: error: (-215) !_aspectRatios.empty(), _minSize > 0 in function cv::dnn::
PriorBoxLayerImpl::PriorBoxLayerImpl

PriorBoxLayerImpl::PriorBoxLayerImpl
click to hide/show revision 3
retagged

updated 2018-02-03 05:28:07 -0600

berak gravatar image

Error why trying to run the dnn for object detection

I'm following the tutorial on how to do object detection using opencv 3.4 and mobilenet, but I have a problem when runnning this error appears, I already have created the graph.txt from the .pb file.

OpenCV Error: Assertion failed (!_aspectRatios.empty(), _minSize > 0) in cv::dnn
::PriorBoxLayerImpl::PriorBoxLayerImpl, file D:\Build\OpenCV\opencv-3.4.0\module
s\dnn\src\layers\prior_box_layer.cpp, line 207
Traceback (most recent call last):
  File "opencv_tf_detection_2.py", line 11, in <module>
    cvOut = cvNet.forward()
cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\dnn\src\layers\prior_box_layer.c
pp:207: error: (-215) !_aspectRatios.empty(), _minSize > 0 in function cv::dnn::
PriorBoxLayerImpl::PriorBoxLayerImpl

Error why trying to run the dnn for object detection

I'm following the tutorial on how to do object detection using opencv 3.4 and mobilenet, but I have a problem when runnning this error appears, I already have created the graph.txt from the .pb file.

OpenCV Error: Assertion failed (!_aspectRatios.empty(), _minSize > 0) in cv::dnn
::PriorBoxLayerImpl::PriorBoxLayerImpl, file D:\Build\OpenCV\opencv-3.4.0\module
s\dnn\src\layers\prior_box_layer.cpp, line 207
Traceback (most recent call last):
  File "opencv_tf_detection_2.py", line 11, in <module>
    cvOut = cvNet.forward()
cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\dnn\src\layers\prior_box_layer.c
pp:207: error: (-215) !_aspectRatios.empty(), _minSize > 0 in function cv::dnn::
PriorBoxLayerImpl::PriorBoxLayerImpl

Error why trying to run the dnn for object detection

I'm following the tutorial on how to do object detection using opencv 3.4 and mobilenet, but I have a problem when runnning this error appears, I already have created the graph.txt from the .pb file.

OpenCV Error: Assertion failed (!_aspectRatios.empty(), _minSize > 0) in cv::dnn
::PriorBoxLayerImpl::PriorBoxLayerImpl, file D:\Build\OpenCV\opencv-3.4.0\module
s\dnn\src\layers\prior_box_layer.cpp, line 207
Traceback (most recent call last):
  File "opencv_tf_detection_2.py", line 11, in <module>
    cvOut = cvNet.forward()
cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\dnn\src\layers\prior_box_layer.c
pp:207: error: (-215) !_aspectRatios.empty(), _minSize > 0 in function cv::dnn::
PriorBoxLayerImpl::PriorBoxLayerImpl