face-alignment icon indicating copy to clipboard operation
face-alignment copied to clipboard

A problem about "img_gray"

Open twyt opened this issue 10 years ago • 4 comments

if size(img_region, 3) == 1 Data{i}.img_gray = img_region; else Data{i}.img_gray = rgb2gray(img_region); end
problem:You store all the sample data, the data is too large,which will cause be out of memory?

twyt avatar Oct 28 '14 09:10 twyt

Yes, you are right, I save the memory by merely saving the gray-scale enlarged face region. Because the number of samples is less than 4.000, a PC with 8G is enough.

At 2014-10-28 17:11:22, "twyt" [email protected] wrote:

if size(img_region, 3) == 1 Data{i}.img_gray = img_region; else Data{i}.img_gray = rgb2gray(img_region); end

problem:You store all the sample data, the data is too large,which will cause be out of memory?

— Reply to this email directly or view it on GitHub.

jwyang avatar Oct 28 '14 10:10 jwyang

you merely save the gray-scale enlarged face region,the shape of the calibration will not match the enlarged img.

twyt avatar Oct 29 '14 06:10 twyt

I reset the groundtruth shape according to the size of face region, as the codes interpret.

At 2014-10-29 14:19:10, "twyt" [email protected] wrote:

you merely save the gray-scale enlarged face region,the shape of the calibration will not match the enlarged img.

— Reply to this email directly or view it on GitHub.

jwyang avatar Oct 29 '14 06:10 jwyang

oh oh! so that,thanks.

twyt avatar Oct 29 '14 07:10 twyt