---
description: This page provides a detailed reference for the InstanceSegmentation class in the Ultralytics solutions package, enabling instance segmentation in images and videos.
keywords: Ultralytics, InstanceSegmentation, instance segmentation, masks, Python, computer vision
---

# Reference for `ultralytics/solutions/instance_segmentation.py`

!!! note

    This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/instance_segmentation.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/instance_segmentation.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/solutions/instance_segmentation.py) 🛠️. Thank you 🙏!

<br>

## ::: ultralytics.solutions.instance_segmentation.InstanceSegmentation

<br><br>
