# Labelme

> Desktop image annotation in Python, with AI-assisted polygons and masks

- Category: Data & Labeling / Labeling & Annotation
- Language: Python
- Licence: GPL-3.0
- Repository: https://github.com/wkentaro/labelme
- Website: https://labelme.io
- Canonical page: https://ai-tldr.dev/tools/labelme/

## In short

Labelme is a graphical image annotation tool written in Python on top of Qt, inspired by MIT's original LabelMe project. It sits in the Labeling & Annotation category of the Data & Labeling tools and is open-source, written in Python and licensed GPL-3.0. To get started: install with pip.

## Overview

Labelme is a graphical image annotation tool written in Python on top of Qt, inspired by MIT's original LabelMe project. It runs as a desktop application rather than a hosted service, which makes it a common choice when images cannot leave a machine or when a team wants annotation without standing up a server.

It covers the usual annotation primitives — polygon, rectangle, circle, line and point — plus image-level flag annotation for classification and dataset cleaning, and video annotation. Finished projects export straight to the two formats downstream training code expects: VOC-format datasets for semantic and instance segmentation, and COCO-format datasets for instance segmentation.

Newer versions add model-assisted labeling: point-to-polygon and point-to-mask annotation driven by SAM and EfficientSAM, and text-to-annotation using YOLO-World and SAM3, so a rough prompt or a single click becomes a precise boundary. The interface is localised into 20 languages. Version 7.x targets Python 3.12–3.14 on Qt6 via PySide6; the 6.3.x line remains as a maintenance branch for Qt5 and Python 3.10/3.11, receiving critical fixes only. Note that from v7 Labelme is explicitly an application, not a library — its internal modules were privatized and it exposes no stable Python API.

## What it does

- Annotation primitives for polygon, rectangle, circle, line and point, plus image flags for classification and cleaning
- Video annotation alongside single-image workflows
- AI-assisted point-to-polygon and point-to-mask labeling powered by SAM and EfficientSAM models
- AI text-to-annotation via YOLO-World and SAM3 — describe the object and get a boundary
- Export to VOC-format datasets for semantic and instance segmentation, and COCO-format for instance segmentation
- GUI customization (predefined labels and flags, auto-saving, label validation) and a UI localised into 20 languages

## Getting started

Labelme installs from PyPI, is packaged by several Linux distributions, and is also sold as a standalone executable for users who would rather not install Python and Qt. v7.x requires Python 3.12–3.14 and 64-bit macOS, Windows or Linux.

1. Install with pip

   The published wheel pulls in PySide6 for the Qt6 GUI.

```bash
pip install labelme

# To install the latest version from GitHub:
# pip install git+https://github.com/wkentaro/labelme.git
```

2. Launch the annotator

   Run the command to open the GUI, then open an image directory and start drawing shapes.

```bash
labelme
```

3. Switch the interface language

   Labelme is available in 20 languages; set the locale via the LANG environment variable when launching.

```bash
LANG=ja_JP.UTF-8 labelme
```

4. Export a training dataset

   The repository's examples directory contains end-to-end walkthroughs for each export target — semantic segmentation, instance segmentation, bbox detection and classification — including the conversion scripts that turn saved annotations into VOC or COCO datasets.

## When to use it

- Label an image dataset for segmentation or detection entirely offline, when the data cannot be uploaded to a hosted labeling platform
- Speed up mask annotation by clicking a point and letting SAM or EfficientSAM trace the boundary
- Produce VOC- or COCO-format datasets that drop straight into an existing training pipeline
- Clean and triage an image collection using image-level flags before committing to detailed annotation
