Inference facade replaces the multi-step manual pipeline (Backbone + mask provider
- SlideInference + writer) with a single, reusable object. The constructor is the pipeline config; the methods do the work. It caches tissue masks, organizes outputs into a structured workspace, and can serialize its config for reproducibility.
Configure the pipeline
Pick your backend — the rest of the guide is identical for both.- On-premise
- AWS SageMaker
Run the pipeline
<workspace>/tissue/<slide>.npy and reused automatically on later calls.
Reproducibility
The config is auto-saved to<workspace>/config.yaml on first use. Reconstruct the exact pipeline later:
Workspaces & variants
Your workspace is the directory where all outputs are written. It’s resolved from the config you pass:output_path is required; experiment, run, and variant are appended when set:
variant (a string) adds a final sub-folder so you can keep multiple runs side by side — useful for experiments (e.g. comparing mask thresholds or model versions) without overwriting earlier outputs:

