xy-guo / GwcNet

Group-wise Correlation Stereo Network, CVPR 2019
MIT License
322 stars 60 forks source link

huge gpu memory consume #4

Closed forvd closed 5 years ago

forvd commented 5 years ago

I tried to train on TITAN(12GB Total), but it always went out of memory. Not even batch_size = 1.Is that normal?

xy-guo commented 5 years ago

For each image, it consumes around 4.2GB memory on average. You may need to set both batch_size and test_batch_size to 1.

forvd commented 5 years ago

sry, i modified some of the code and forget about it, that cause the problem. But I also want to know about memory consumption in inference.

xy-guo commented 5 years ago

The inference memory depends on the input size and the code. I forgot the accurate memory consumption in the inference mode