Clean intermediate files and overwrite option

5 views
Skip to first unread message

Amaury Dehecq

unread,
Feb 5, 2026, 5:38:22 AM (13 days ago) Feb 5
to Ames Stereo Pipeline Support
Hi,

I have two requests/questions.

1) I would like to be able to clean all intermediate files created by ASP (at least the heavy ones, mostly from parallel_stereo) at the end of the processing.
I know there is the option "--keep-only essentials" to do that, but it will delete all files at the end of parallel_stereo. I would prefer to keep all files until my entire workflow is over, so that I can examine them in case of failure. Is there a way to do this?
Would it be possible to call parallel_stereo a posteriori? If I call it again at the very end, it will still run many steps, but I would like to run only the "keep-only" steps. Maybe having a standalone tool could be nice, or the option below.

2) When running parallel_stereo on a folder that already contains all output files, it will skip some steps, but it will still run many intensive processing. It would be great to have parallel_stereo skip re-creating existing files and add an option such as --overwrite to force recreating those.

Thanks Oleg for all the effort!

Amaury


Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Feb 5, 2026, 11:50:58 AM (13 days ago) Feb 5
to Amaury Dehecq, Ames Stereo Pipeline Support
>1) I would like to be able to clean all intermediate files created by ASP (at least the heavy ones, mostly from parallel_stereo) at the end of the processing.
I know there is the option "--keep-only essentials" to do that, but it will delete all files at the end of parallel_stereo. I would prefer to keep all files until my entire workflow is over, so that I can examine them in case of failure. Is there a way to do this?
>Would it be possible to call parallel_stereo a posteriori? If I call it again at the very end, it will still run many steps, but I would like to run only the "keep-only" steps. Maybe having a standalone tool could be nice, or the option below.

If you run parallel_stereo on an existing run with the options:

  --entry-point 6 --keep-only 'PC.tif' 

it will wipe all files but PC.tif.

>2) When running parallel_stereo on a folder that already contains all output files, it will skip some steps, but it will still run many intensive processing. It would be great to have parallel_stereo skip re-creating existing files and add an option such as --overwrite to force recreating those.

The default behavior is to always reuse L.tif, R.tif, D_sub.tif, the matches, and recreate the others.  If you want to skip recreating D.tif, you can start at --entry-point 2. If you want to redo only triangulation, you can start at --entry-point 5. Note that some of these may not play nicely with stereo blending step, for asp_mgm, so if blending is done, resuming at subpixel refinement may run into issues I think. But one can resume at the corr step. 

There is also the option --prev-run-prefix that resumes at triangulation, in a new directory, with updated cameras.

Looks to me that this is addressing most of what you ask. Anything pressing left out?

Oleg

Reply all
Reply to author
Forward
0 new messages