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 Center および File ExchangeData Export to MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by