MMSegmentation is an open-source semantic segmentation toolbox based on PyTorch, part of the OpenMMLab project. It provides a unified framework for training, testing, and deploying segmentation models, supporting a wide range of architectures (e.g., DeepLabV3+, PSPNet, U-Net) and datasets. Current version is 1.2.2 (Dec 2023), with a major v1.0.0 release marking a structural overhaul from v0.x. Release cadence is irregular, with minor patches every few months.
pip install mmsegmentation==1.2.2Verified import paths — ran on the pinned version, not inferred.
Perform semantic segmentation inference using the high-level inferencer API.
Migrate configs to the new format using mmseg's migration tools or rewrite for v1.x. Use mmcv>=2.0.0.
Use 'from mmseg.apis import init_model, inference_model'.
Update imports to use mmseg.apis instead of mmseg.core.
Always define 'palette' in the dataset config and ensure it matches the order of classes in 'classes'.