lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
Other
1k stars 318 forks source link

Where can turn the parameter to solve the "out of memory" problem? #118

Closed songjiaxina closed 6 years ago

songjiaxina commented 6 years ago

When I run the demo,an error occur is

F0404 14:23:42.628688 24692 syncedmem.cpp:56] Check failed: error == cudaSuccess (2 vs. 0) out of memory Check failure stack trace: I know this is due to the small memory of my graphics card.Is there some parameter like yaml file to solve this problem?Thanks a lot.

nikolausmayer commented 6 years ago

You can use smaller input images, or a smaller model: FlowNet2-c needs less memory than FlowNet2-C, and FlowNet2-CS needs less memory than FlowNet2-CSS.

You could also rewrite the runtime script to execute the network layer-by-layer instead of loading the whole thing into memory at once. However, that'll be much slower, and (I imagine) also quite a bit of work.

Other than that, you'll need retraining.

nikolausmayer commented 6 years ago

(closed due to inactivity)