v6.1.0
LabelMe v6.1 adds SAM3 support and reworks the AI toolbar. The "Open Recent" submenu has been removed and labelme.utils.lblsave is deprecated; if you depend on either, see Breaking changes and Migration guide below.
Breaking changes
- "Open Recent" removed. The recent-files submenu in the File menu is gone. Use the file list dock or the OS file dialog. (#1921)
labelme.utils.lblsavedeprecated. The old import still works (emits aDeprecationWarning) but will be removed in a future release. See Migration guide. (#1911, #1959)
Migration guide
labelme.utils.lblsave -> imgviz.io.lblsave
- from labelme.utils import lblsave
- lblsave(filename, lbl)
+ from imgviz.io import lblsave
+ lblsave(filename, lbl)The old import still works in v6.1 but emits a DeprecationWarning. (#1911, #1959)
"Open Recent" replacement
There is no drop-in replacement. Use the file list dock (which now auto-populates with sibling images) or your OS file dialog. (#1921)
Changelog
Added
- Added SAM3 to the AI model list with AI-Box support, producing multiple shapes from a single bounding box annotation (#1917)
- Unified AI annotation tools into two modes: AI Points -> Shape and AI Box -> Shape, each with a polygon/mask output toggle; added a visual separator between manual and AI tools in the toolbar (#1914, #1915, #1916)
- Added a progress bar with cancellation support during AI model downloads (#1948)
- Added auto-import of sibling images from the same directory when opening a single image file (#1924)
- Added highlighting of AI toolbar buttons when hovering the disabled AI-Assisted Annotation widget to help new users find them (#1961)
- Switched canvas repainting from synchronous to asynchronous rendering, avoiding blocking redraws (#1869)
- Added Greek (el_GR) translation (#1893)
- Added Ukrainian (uk_UA) translation (#1892)
- Added Russian (ru_RU) translation (#1891)
Changed
- Shortened toolbar button labels by removing the redundant "Create" prefix (e.g., "Create Polygon" becomes "Polygon") (#1914)
- Disabled the file list dock with an explanatory tooltip when a label
.jsonfile is opened directly; re-enabled it when a directory or image is opened (#1924) - Added support for cropped masks returned by osam 0.4.0 (SAM3) for accurate annotation on large images (#1919)
Deprecated
- Deprecated
labelme.utils.lblsave; useimgviz.io.lblsaveinstead. The old import will be removed in a future release (#1911, #1959)
Removed
- Removed the "Open Recent" submenu from the File menu; use the file list dock (which now auto-populates with sibling images) or the OS file dialog instead (#1921)
Fixed
- Fixed single undo to fully restore a deleted shape; previously two undos were required (#1932)
- Disabled SAM3 in the model selector during AI-Points mode and showed a warning, as SAM3 does not support point prompts (#1918)
- Fixed AI mode tooltip names to match the renamed menu labels (#1928)
- Equalized button widths in the vertical toolbar (#1961)
Contributors
- @kancheng: Greek, Ukrainian, and Russian translations (#1891, #1892, #1893)
- @minewilliam: async canvas repainting and
boundedMoveVertexrefactor (#1868, #1869)
Install
pip install -U labelme==6.1.0
# or
uv tool install labelme==6.1.0Full Changelog: v6.0.2...v6.1.0