-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为什么标注得到的坐标值会超过图像边界 #833
Comments
Hi, @Ggstuddu: Thanks for your feedback! Before I can provide a detailed solution, could you tell me are you using the default built-in model provided by X-AnyLabeling, or a custom-trained one? If you could provide these details, I can better diagnose the root cause and suggest appropriate fixes for the coordinate prediction issue. |
你好,十分感谢你的回复。 |
The official built-in model is trained on the COCO dataset weights. As you provided in the label file example above, it includes categories such as |
对不起,我记混了,记成另外一个项目了,这个越界的框应该是我自己手动框的,或者是通过yolo模型预测得到的txt导入得到的,具体是哪一个我不太记得,因为如果yolo模型预测的不准的话我会自己手动框一下。 |
If you manually draw a rectangle box, the maximum coordinate value is (image_height-1, image_width-1). Specifically, you can load any new image and try drawing a rectangle box. Therefore, this is most likely due to a deviation in the coordinates output by your custom model. But, don't worry, you can just add a simple truncation logic here. |
感谢您的建议,我觉得应该是可行的,我明天会添加截断功能并且测试一下。 |
今天再进行了测试,发觉问题并没有完全解决: |
Regarding the possibility of generating out-of-bounds coordinate values in the JSON label file when dragging a rectangle towards the canvas boundary, would you be able to record a video demonstrating this? I have tested this multiple times and have not encountered the situation. |
我在家里的电脑复现了一下,家里用的anylabeling的版本是2.4.4,仍有出现拖拽后越界的情况,以下是视频: 2025-02-24-20-53-59.mp4 |
Thank you for the detailed feedback. It does appear there is an overflow of coordinate values. |
Search before asking
Question
我使用2.5.3版本的anylabeling进行标注,发觉通过软件转换后的yolo标签有出现坐标值为-1的情况,然后通过排查发觉是在标注的时候得到的json标签文件里的坐标就有问题,得到的坐标(640.4121557454889)超过了图像的边界(640)。
我尝试手动调整一下框的位置,但是更新后的json标签文件仍存在坐标越界问题,请问这个情况应该如何解决?
以下是一个有问题的完整的json标签文件:
Additional
No response
The text was updated successfully, but these errors were encountered: