Inference pipeline 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 and model — the rest of the guide follows the same steps.- On-premise
- AWS SageMaker
Run the pipeline
<workspace>/tissue/<slide>.png 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:
| Segment | Config field | Appended when |
|---|---|---|
<output_path> | output_path | always (required) |
<experiment> | experiment | set |
run_<run> | run | set |
<variant> | variant | 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:

