How can I specify the memory when run programs?

조회 수: 3 (최근 30일)
Donghui  Sun
Donghui Sun 2013년 8월 7일
I try to use the trainCascadeObjectDetector to train a detector for my own purpose.This function is provided in the MatLab R2013a and supports three feature type, that is HOG,LBP,HAAR. However, error occurs when HAAR is specified.The error are "Out of memory" or "Insufficient memory". I use the memory funtion and find Maximum possible array equals 500MB. Perhaps, this function needs more memory.
So, My question is whether the memory for an unique program can be specified,for example, 2GB for the function trainCascadeObjectDetector ? Or any similiar ways can solve the MEMory error.
Appreciated for every suggestion!

채택된 답변

dpb
dpb 2013년 8월 7일
memory gives you the maximum amount of free memory at the time; how large an array can actually be created depends (as the note on the output says) on how much contiguous free memory is available--the total free may have been fragmented by earlier operations.
Look in the documentation under Resolving "Out of Memory" Errors under Advanced Software Development topic for suggestions to do what one can do.
The answer to the actual question asked is "no, you can't do that".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by