bearpaw / pose-attention

Code for "Multi-Context Attention for Human Pose Estimation " (CVPR 2017)
BSD 3-Clause "New" or "Revised" License
170 stars 49 forks source link

out of memory #1

Closed Jee-King closed 7 years ago

Jee-King commented 7 years ago

Hello , I download your pretrain model(model.t7).But when I run 'qlua main.lua demo ',the terminal give me an error : {{{ THCudaCheck FAIL file=/home/zhangjiqing/torch/extra/cutorch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory qlua: ...zhangjiqing/torch/install/share/lua/5.1/nn/Container.lua:67: In 1 module of nn.Sequential: In 1 module of nn.ConcatTable: In 1 module of nn.Sequential: /home/zhangjiqing/torch/install/share/lua/5.1/nn/THNN.lua:110: cuda runtime error (2) : out of memory at /home/zhangjiqing/torch/extra/cutorch/lib/THC/generic/THCStorage.cu:66 }}}

Is it just out of memory of GPU ? Can I turn the batchsize to a small value yet using your model.t7 ? Or could you provide a samll batchsize for me? Thanks!

bearpaw commented 7 years ago

If your GPU memory is less than 3G, there might be such out of memory problem.

The example testing code evaluates one image on a single scale in each forward pass. So there is no room for reducing memory. On my own GPUs (Titan black 6G), it consumes about 2400 Mib memory during testing.

We may provide smaller model later for running on GPUs with limited memory.

Jee-King commented 7 years ago

So much cost !! I have another question : can this construction guarantee real-time ?Or how about speed ?

bearpaw commented 7 years ago

The running time is about 1.3 second per image.

Jee-King commented 7 years ago

I run your test code using larger memory GPU successfully. And I wonder that how did you get ‘ test.h5’ ? I just tested 7 images which you provide. Whether it is related to test.h5 ? Excuse me,I am a newer

bearpaw commented 7 years ago

As demonstrated in the README, you need to first download the MPII dataset, then replace the images folder by the images from the MPII dataset.

Since your original question is solved. I close this issue.

larklili commented 6 years ago

@bearpaw hi,i have only one 12GB gpu.how can i train this model in mpii?In the readme of train,it has to use 4 gpu.so i dont know how to solve with it.thanks:)