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

使用xanylabeling训练的YOLO11自动标注报错

Open lngg8er opened this issue 11 months ago • 1 comments

Search before asking

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

X-AnyLabeling Component

Model

Bug

使用xanylabeling训练了一个模型,然后调用这个yolo11模型进行自动批注,提示错误如下: 2025-12-27 19:55:14,254 | ERROR | model_manager:predict_shapes:2068 - Error in predict_shapes: OpenCV(4.12.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4211: error: (-215:Assertion failed) inv_scale_x > 0 in function 'cv::resize'

进行的排查:1、图片全部没有问题;2、导出模型时导出onnx时dynamic=True;3、resize图片到640*640;4、yolo predict model=best.onnx task=segment source=D:/xanylabeling/images_resized imgsz=640,运行没有报错,识别正常。

Information

Application ──────────────────────────────────────────────────────────── App Name: X-AnyLabeling App Version: 3.3.3 Preferred Device: CPU ──────────────────────────────────────────────────────────── System ──────────────────────────────────────────────────────────── Operating System: Windows-10-10.0.26200-SP0 CPU: Intel64 Family 6 Model 151 Stepping 5, GenuineIntel CPU Count: 12 RAM: 31.7 GB Disk: 640.1/738.2 GB GPU: None CUDA: None Python Version: 3.10.19 ──────────────────────────────────────────────────────────── Packages ──────────────────────────────────────────────────────────── PyQt5 Version: 5.15.11 ONNX Version: 1.20.0 ONNX Runtime Version: 1.23.2 ONNX Runtime GPU Version: None OpenCV Contrib Python Headless Version: 4.11.0.86 ────────────────────────────────────────────────────────────

Link to a Reproducible Demonstration Video

none

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!

lngg8er avatar Dec 27 '25 12:12 lngg8er

Duplicate of #1121, @1031, #1016, #885, #784, #406

CVHub520 avatar Dec 27 '25 12:12 CVHub520