Skip to main content

MonaiParams

AI Segmentation

Configuration parameters for MONAI bundle AI model.

Import​

import ScriptingApi as api

# Create parameter instance
params = api.MonaiParams()

Properties​

bundle_dir​

Path to the MONAI bundle directory containing model and configs.

Type: str


config_file​

Configuration file path within the bundle (relative to bundle root). The default is 'configs/inference.json'.

Type: str


device​

Processing device ('cpu' or 'gpu'). The default is 'cpu'.

Type: str


model_file​

Optional model file override (relative to bundle root). The default is empty (use default model).

Type: str


roi_size​

ROI size for sliding window inference (e.g., 96,96,96). The default is empty (no ROI size).

Type: str


sw_batch_size​

Sliding window batch size (0 for automatic selection). The default is 0.

Type: int


overlap​

Overlap ratio for sliding window inference (0.0 to 1.0). The default is 0.8.

Type: float


mode​

Sliding window mode ('gaussian' or 'constant'). The default is 'gaussian'.

Type: str


See Also​