Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Insufficient memory in function cvAlloc, how to release memory?

$
0
0
I have tried training my own classifier for a couple of times now (to detect cows) and just when I finally fine-tune my images in the positives data-set, I run into this while training: ![Error](/upfiles/15200112264025509.jpg) I realize I have to release memory in order to free some space and referred to [THIS](http://aishack.in/tutorials/opencv-memory-management/) But I am actually a little confused as to how to proceed further. Can anyone help with an optimal solution for this so that I can resume my training? Thanks in advance. Note: 1. my positives vary from 20-25KB on an average and negatives from 30-55KB. 2. Positives: 355x 280 pixels, I read somewhere that w,h must maintain this aspect ratio , hence used -w 71 -h 56 3. Im using 133 positives and 200 negatives, cows in positives all face the left side ( same profile) Are these parameters alright for the training? This is the 11th time I am trying to build a decent classifier for this :(

Viewing all articles
Browse latest Browse all 2088

Trending Articles