---
title: solutions.instance_segmentation API Reference
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`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/instance_segmentation.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/solutions/instance_segmentation.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing) — thank you! 🙏

<br>

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

<br><br>
