centreborelli / s2p

Satellite Stereo Pipeline
GNU Affero General Public License v3.0
208 stars 67 forks source link

How to change the number of using gpus? #67

Closed yueluming closed 4 years ago

yueluming commented 4 years ago

When I use this code to process large images, it comes with this error, "subprocess.CalledProcessError: Command '['mgm', '-r', '-22', '-R', '48', '-s', 'vfit', '-t', 'census', '-O', '8', '-confidence_consensusL',..................died with <Signals.SIGKILL: 9>."

carlodef commented 4 years ago

s2p doesn't use GPUs. Your error is likely due to running out of memory. To reduce the memory footprint, you can limit the number of parallel stereo matching runs by setting max_processes_stereo_matching to 1 in the input json configuration file.

yueluming commented 4 years ago

s2p doesn't use GPUs. Your error is likely due to running out of memory. To reduce the memory footprint, you can limit the number of parallel stereo matching runs by setting max_processes_stereo_matching to 1 in the input json configuration file.

Thanks!