Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not enough memory #15

Open
hungnguyen0606 opened this issue Dec 27, 2016 · 6 comments
Open

Not enough memory #15

hungnguyen0606 opened this issue Dec 27, 2016 · 6 comments

Comments

@hungnguyen0606
Copy link

hungnguyen0606 commented Dec 27, 2016

Thanks to yifan254 & mjohn123, I'm finally able to run "run.sh".
However, the memory of my gpu is not big enough for the model.
Is there anyway to reduce the size of the model or size of the data used for evaluation.
Here is my configuration:

case 'VOC2012'
isVal = false; %evaluation on testset
step = 364; %=1456/4
data_root = '/home/ubuntu16/my_user/workspace/thesis/Framework/PSPNet-segmentation/data/test/VOCdevkit/VOC2012';
eval_list = 'samplelist/VOC2012_test.txt';
save_root = 'mc_result/VOC2012/test/pspnet101_473/';
model_weights = 'model/pspnet101_VOC2012.caffemodel';
model_deploy = 'prototxt/pspnet101_VOC2012_473.prototxt';
fea_cha = 21;
base_size = 512;
crop_size = 473;
data_class = 'objectName21.mat';
data_colormap = 'colormapvoc.mat';

@Fromandto
Copy link

I believe evaluation @ 473 resolution consumes < 12gb memory

If you don't have a gpu of 12gb memory, maybe you can further reduce resolution to ~300 (like 321)

remember to modify conv5_3_pool1/2/3/6_interp accordingly

since pascal images are typically 513 resolution and this model is trained under 0.5 resolution data augmentation (according to the paper) that's around 256 resolution so i guess evaluating @ ~ 300 resolution still works. (with some performance losses).

@rener1199
Copy link

@Fromandto How to modify conv5_3_pool1/2/3/6_interp with a new size? such as 640?

@Fromandto
Copy link

@rener1199

if input resolution is 473, then conv5_3_pool1/2/3/6_interp resolution is 60

60 * 8 = 480 ~= 473

that's the rule (with 7 pixels mismatch caused by padding/striding)

640 / 8 = 80 means conv5_3_pool1/2/3/6_interp should be 80 (or 81/82/79/78 depending on your network padding/striding)

@SMMohammadi
Copy link

Hi every body,
I tried to run the code eval_all.m on a GPU with 3 GB of memory but I encountered "Out of memory error".
Did anyone run the code successfully? If the answer is yes, please explain the the steps and minimum required hardware.
If there is a way to run the code on a GPU with 3GB memory, successfully, I would appreciate if you let me know.

@ishann
Copy link

ishann commented Jul 1, 2017

@rener1199 If the crop size is N = 8x + 1, then conv5_3_pool1/2/3/6_interp would need to be set at x, for the model to run out of the box.

@AI-liu
Copy link

AI-liu commented Sep 24, 2017

a GPU with 8 GB of memory , GTX 1070 , is it enough memory to run test ?

This was referenced Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants