traincascade crashes with precalcBufSize 2048 or greater (Bug #2784)


Added by Alexander Cheparukhin about 12 years ago. Updated almost 10 years ago.


Status:Done Start date:2013-02-08
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:objdetect
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:

Description

When opencv_traincascade is training Haar features and precalcValBufSize or precalcIdxBufSize is 2048 Mb or greater, opencv_traincascade crashes with the following exception:

OpenCV Error: Unsupported format or combination of formats (Invalid matrix type) in cvCreateMatHeader, file /home/cheparukhin/Downloads/OpenCV-2.4.3/modules/core/src/array.cpp, line 117
terminate called after throwing an instance of 'cv::Exception'
what(): /home/cheparukhin/Downloads/OpenCV-2.4.3/modules/core/src/array.cpp:117: error: (-210) Invalid matrix type in function cvCreateMatHeader

Such problem doesn't seem to appear with LBP features.


Associated revisions

Revision 2c134318
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #2784 from saree90:bugfix_Simplex

History

Updated by Kirill Kornyakov about 12 years ago

Alexander, is it possible to get your vec file and parameters for the training utility?

You can try to create a synthetic vec-file, so we can reproduce the error. Otherwise the fixing process might be extremely slow... And, if you'll be able to resolve the issue, please don't mind to send a pull request!

  • Category set to objdetect

Updated by Shengyin Wu almost 12 years ago

I think compile the opencv_traincascade with 64bit opencv will fix this problem. You can alloc more memory during opencv_traincascade training with 64bit opencv.

Updated by Vadim Pisarevsky almost 10 years ago

I believe, now the bug is solved in 3.0-pre, but big buffers (>2Gb) are only supported on 64-bit machines

  • Status changed from Open to Done
  • HW Platform set to Any
  • Operating System set to Any
  • Affected version changed from 2.4.3 to branch 'master' (3.0-dev)

Updated by Steven Puttemans almost 10 years ago

Vadim Pisarevsky wrote:

I believe, now the bug is solved in 3.0-pre, but big buffers (>2Gb) are only supported on 64-bit machines

Yep it works just fine here!

Also available in: Atom PDF