X-AnyLabeling icon indicating copy to clipboard operation
X-AnyLabeling copied to clipboard

Unable to delete individual annotation points in AI annotation mode — only “Delete All” works AI 批注模式下无法删除单个标注点,只能全部删除

Open finnianXie opened this issue 1 year ago • 4 comments

Search before asking

  • [x] I have searched the X-AnyLabeling issues and found no similar bug report.

X-AnyLabeling Component

User Interface (UI)

Bug

Image

问题描述:
我在使用自己训练的模型进行 AI 批注时,发现无法删除单个标注点。点击删除按钮(例如删除某个点或框)没有反应,必须使用“全部删除”功能,但这会删除当前所有的标注记录,严重影响标注效率。 复现步骤:

  1. 加载自己训练的模型进行 AI 批注;
  2. 标注完成后尝试删除某个点或框;
  3. 点击删除按钮,无任何反应;
  4. 只能使用“全部删除”按钮来清空所有标注。 预期行为:
    应能正常删除单个点或框,而不是必须全部删除。 实际行为:
    删除单个点或框无效,只有“全部删除”功能可用。 环境信息:
  • App name: X-AnyLabeling
  • App version: 3.2.3
  • Device: CPU
  • Operating System: Windows-10-10.0.26100-SP0
  • CPU: Intel64 Family 6 Model 197 Stepping 2, GenuineIntel
  • GPU: None
  • CUDA: None
  • Python Version: 3.9.7
  • PyQt5 Version: 5.15.7
  • ONNX Version: 1.16.1
  • ONNX Runtime Version: 1.18.1
  • ONNX Runtime GPU Version: None
  • OpenCV Contrib Python Headless Version: 4.11.0.86

🇬🇧 English Version

Title:
Unable to delete individual annotation points in AI annotation mode — only "Delete All" works Description:
When using my own trained model for AI-assisted annotation, I found that I cannot delete individual annotation points or bounding boxes. Clicking the delete button (for a point or box) has no effect. The only way to remove annotations is to use the "Delete All" button, which clears all annotations at once, severely affecting labeling efficiency. Steps to Reproduce:

  1. Load a custom-trained model for AI annotation;
  2. After some annotations are made, try to delete a single point or box;
  3. Click the delete button — nothing happens;
  4. Only the "Delete All" button works to clear everything. Expected Behavior:
    Individual points or boxes should be deletable normally. Actual Behavior:
    Deleting a single point or box does nothing; only "Delete All" is functional. Environment:
  • App name: X-AnyLabeling
  • App version: 3.2.3
  • Device: CPU
  • Operating System: Windows-10-10.0.26100-SP0
  • CPU: Intel64 Family 6 Model 197 Stepping 2, GenuineIntel
  • GPU: None
  • CUDA: None
  • Python Version: 3.9.7
  • PyQt5 Version: 5.15.7
  • ONNX Version: 1.16.1
  • ONNX Runtime Version: 1.18.1
  • ONNX Runtime GPU Version: None
  • OpenCV Contrib Python Headless Version: 4.11.0.86

Information

App name: X-AnyLabeling App version: 3.2.3 Device: CPU

Operating System: Windows-10-10.0.26100-SP0 CPU: Intel64 Family 6 Model 197 Stepping 2, GenuineIntel GPU: None CUDA: None Python Version: 3.9.7

PyQt5 Version: 5.15.7 ONNX Version: 1.16.1 ONNX Runtime Version: 1.18.1 ONNX Runtime GPU Version: None OpenCV Contrib Python Headless Version: 4.11.0.86

Link to a Reproducible Demonstration Video

Image

Execution Mode

Pre-compiled Executable

Additional

No response

Are you willing to submit a PR?

  • [ ] Yes I'd like to help by submitting a PR!

finnianXie avatar Sep 22 '25 02:09 finnianXie

问题补充:
使用 Mobile SAM 模型后无法选中多边形标注框,必须重启软件 问题描述:
在使用预设模型(如 Mobile SAM)进行 AI 辅助标注后,标注的多边形框在点选标签列表时无法高亮显示在图中,也无法被选中进行编辑或删除。重启软件后恢复正常。 复现步骤:

  1. 加载一张图片。
  2. 使用 Mobile SAM 模型进行自动标注。
  3. 尝试在标签列表中点击某一条多边形标注记录。
  4. 发现图中对应的多边形框未高亮,也无法被选中或删除。
  5. 重启软件后,功能恢复正常。 预期行为:
    点击标签列表中的多边形记录时,图中对应的多边形框应高亮显示,并可以正常编辑或删除。 当前行为:
    多边形框无法被选中,也无法高亮显示,必须重启软件才能恢复。 环境信息:
  • App name: X-AnyLabeling
  • App version: 3.2.3
  • Device: CPU
  • Operating System: Windows-10-10.0.26100-SP0
  • CPU: Intel64 Family 6 Model 197 Stepping 2, GenuineIntel
  • GPU: None
  • CUDA: None
  • Python Version: 3.9.7
  • PyQt5 Version: 5.15.7
  • ONNX Version: 1.16.1
  • ONNX Runtime Version: 1.18.1
  • ONNX Runtime GPU Version: None
  • OpenCV Contrib Python Headless Version: 4.11.0.86

Title:
Cannot Select Polygon Annotations After Using Mobile SAM Model, Requires Restart Description:
After using a preset model (such as Mobile SAM) for AI-assisted annotation, polygon annotations cannot be selected or highlighted in the image when clicking their corresponding entries in the label list. The issue persists until the application is restarted. Steps to Reproduce:

  1. Load an image.
  2. Use the Mobile SAM model to perform automatic annotation.
  3. Try to click on a polygon annotation entry in the label list.
  4. Observe that the corresponding polygon in the image is not highlighted and cannot be selected or deleted.
  5. After restarting the application, the selection works normally again. Expected Behavior:
    Clicking on a polygon annotation in the label list should highlight it in the image and allow it to be edited or deleted. Current Behavior:
    The polygon cannot be selected or highlighted. Restarting the application is required to restore normal functionality. Environment Info:
  • App name: X-AnyLabeling
  • App version: 3.2.3
  • Device: CPU
  • Operating System: Windows-10-10.0.26100-SP0
  • CPU: Intel64 Family 6 Model 197 Stepping 2, GenuineIntel
  • GPU: None
  • CUDA: None
  • Python Version: 3.9.7
  • PyQt5 Version: 5.15.7
  • ONNX Version: 1.16.1
  • ONNX Runtime Version: 1.18.1
  • ONNX Runtime GPU Version: None
  • OpenCV Contrib Python Headless Version: 4.11.0.86

Image

finnianXie avatar Sep 22 '25 07:09 finnianXie

Hello @finnianXie,

Thank you so much for providing such a detailed and well-structured report for both of these issues! 🙏 Your clear descriptions, reproduction steps, and screenshots are incredibly helpful.

I understand that the inability to delete individual annotations in AI mode and the polygon selection issue after using the Mobile SAM model are significantly impacting your workflow. I'll definitely look into both of these thoroughly as soon as I have some free time.

Best regards,

CVHub520 avatar Sep 22 '25 07:09 CVHub520

Hello @finnianXie,

Thank you so much for providing such a detailed and well-structured report for both of these issues! 🙏 Your clear descriptions, reproduction steps, and screenshots are incredibly helpful.

I understand that the inability to delete individual annotations in AI mode and the polygon selection issue after using the Mobile SAM model are significantly impacting your workflow. I'll definitely look into both of these thoroughly as soon as I have some free time.

Best regards,

Hi, I think I’ve found the problem. After clicking this button, all the issues mentioned above no longer occur, and all polygons can be highlighted as expected.

Image

finnianXie avatar Sep 22 '25 08:09 finnianXie

https://github.com/CVHub520/X-AnyLabeling/blob/main/docs/zh_cn/user_guide.md#22-%E7%BC%96%E8%BE%91%E5%AF%B9%E8%B1%A1

CVHub520 avatar Sep 22 '25 14:09 CVHub520