Revision history [back]

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.

 2 retagged berak 32993 ●7 ●81 ●312

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.