Skip to main content

ISAT插件 - 自动标注

PyPI - Version Pepy Total Downlods

这是一个ISAT的插件开发示例。

仅使用240行代码,开发一个带界面的ISAT插件,为ISAT提供基于yolo模型的自动标注功能。

该插件使用yolo计算目标框,然后通过sam框提示进行目标分割。

auto_annotate.img

功能

  • 可导入其他模型(项目提供了yolo11n.onnx模型以及yolo11n-seg.onnx模型供测试)
  • 兼容IAST,支持所有ISAT提供的sam模型

安装与使用

安装

pip install isat-plugin-auto-annotate

使用

  • 运行isat
  • 插件界面,激活AutoAnnotatePlugin,在插件界面选择提供的yolo11n.onnx模型与coco.csv类别文件
  • 选择sam模型(经不严谨测试,原始sam模型对框提示效果最好)
  • 每次切换图片后,自动开始标注当前图片

说明

模型文件

项目使用带nms的onnx模型。

对于目标检测模型,支持所有经nms后输出shape为[n, 6]格式数据的模型,具体表示n个[xmin, ymin, xmax, ymax, score, category_index] 对于图像分割模型,支持所有经nms后输出shape为[n, N]格式数据的模型,具体表示n个[xmin, ymin, xmax, ymax, score, category_index, ...]

以ultralytics导出yolov11模型为例:

yolo export model=path/to/yolo11n.pt format=onnx nms=True iou=0.45
yolo export model=path/to/yolo11n-seg.pt format=onnx nms=True iou=0.45

类别文件

类别文件使用cvs格式存储,每行一个类别,分别与category_index对应。

以coco数据集为例:

person
bicycle
car
motorcycle
airplane
bus
train
truck
...

模型输出的category_index 0 对应person, 1对应bicycle, ...

Metadata

Release files for isat-plugin-auto-annotate 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isat-plugin-auto-annotate 1.2.2
File Size Uploaded Provenance Actions
isat_plugin_auto_annotate-1.2.2.tar.gz 19.5 MB Without provenance Details for isat_plugin_auto_annotate-1.2.2.tar.gz

Release files / isat_plugin_auto_annotate-1.2.2.tar.gz

Download URL isat_plugin_auto_annotate-1.2.2.tar.gz
Size 19.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b49040579eb9548ee6c36ee3753d05bda69529b7d7011179a289761fc6bf38d4
BLAKE2b-256 checksum
How to use checksums
f3ed7b6f4443f950a5cb14685bfbd2984df5bbc6bab6cddc6f748d88fd769967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for isat-plugin-auto-annotate 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page