Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

train memory error

Hi everybody!

Does anybody know if there's a max number of images (ora space) for the train method in the eigenfaces model? I'm training it with 2000 images for a geneder recognizer, but It takes a lot of time and at the end it gives a memory error.

OpenCV Error: Insufficient memory (Failed to allocate 587520004 bytes) in cv::Ou
tOfMemoryError, file C:\builds\2_4_PackSlave-win32-vc12-shared\opencv\modules\co
re\src\alloc.cpp, line 52

I've also see from the docs that eigen and fisher can't perform and update of the model, so I'd like to know if there's a way to avoid this problem.

click to hide/show revision 2
retagged

updated 2014-04-24 08:02:27 -0500

berak gravatar image

train memory error

Hi everybody!

Does anybody know if there's a max number of images (ora space) for the train method in the eigenfaces model? I'm training it with 2000 images for a geneder recognizer, but It takes a lot of time and at the end it gives a memory error.

OpenCV Error: Insufficient memory (Failed to allocate 587520004 bytes) in cv::Ou
tOfMemoryError, file C:\builds\2_4_PackSlave-win32-vc12-shared\opencv\modules\co
re\src\alloc.cpp, line 52

I've also see from the docs that eigen and fisher can't perform and update of the model, so I'd like to know if there's a way to avoid this problem.