标签工作室中的预通道(YOLO V5)的问题

发布于 2025-01-26 11:02:00 字数 373 浏览 2 评论 0 原文

我正在尝试在标签studio中使用我的Yolo V5模型的注释。我能够将注释带给标签studio并向他们展示。问题在于标签studio显示的标签中的不准确性(我具有从Yolo生成的图像到预测的外观)。我对从Yolo获得的X,Y,宽度,高度数据进行的唯一转换是乘以100。

从Yolo的预测: yolo 标签 - 馆: label-studio

I am trying to use annotations from my Yolo v5 model in label-studio. I was able to bring the annotations to label-studio and show them. The problem is the inaccuracy in the labels displayed by label-studio (I have images generated from Yolo to how the predictions should look like). The only transformation I did to the x, y, width, height data obtained from yolo is multiplying by 100.

Predictions from yolo:
YOLO
label-studio:
label-studio

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独闯女儿国 2025-02-02 11:02:00

我对x,y,宽度,从yolo获得的高度数据进行的转换乘以100

@max答案构建的100构建您可以使用以下公式(来自在这里)将yolo坐标转换为标签Studio Studio兼容的坐标

x_lbstdio = (x-width/2)*100
y_lbstdio = (y-height/2)*100
w_lbstdio = w*100
h_lbstdio = h*100

。 x和y的高度分别为x乘以100

only transformation I did to the x, y, width, height data obtained from yolo is multiplying by 100

Building on @Max answer you can use the following formulas (from here) to convert yolo coordinates to label studio compatible coordinates

x_lbstdio = (x-width/2)*100
y_lbstdio = (y-height/2)*100
w_lbstdio = w*100
h_lbstdio = h*100

Note the only change being subtracting half of width and half of height from x and y respectively before multiplying by 100

帅冕 2025-02-02 11:02:00

请使用Label-studio-converter: https:/github.com/ HeartExlabs/label-studio-converter/pull/46

最有可能您计算出的坐标很可能是正确的,正确的代码在这里:https://github.com/heartexlabs/label-studio-converter/blob/master/label_studio_converter/imports/yolo.py#L85< /a>

Please use label-studio-converter for this: https://github.com/heartexlabs/label-studio-converter/pull/46

Most likely you incorrectly calculated coordinates, the correct code is here: https://github.com/heartexlabs/label-studio-converter/blob/master/label_studio_converter/imports/yolo.py#L85

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文