Wrong Roboflow return result after prediction
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从 model.predict("test.jpg", confidence=40, overlap=0).json() 调用开始,复现为 test.jpg 报告的坐标。将这些结果与 Roboflow UI 的输出和保存的可视化结果进行比较,然后确定 bounding boxes 存在差异的原因。当此次复现中的 API 和 UI 结果一致,或已对差异及明确的解决方案进行文档记录时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hi
I am trying out the api to return the result. The result of the bounding box seem to be off despite when I do the roboflow save action to save the image to visualize the bounding box. The save action shows the correct position of the bounding box but not the return result. Any advice?
predict = model.predict("test.jpg", confidence=40, overlap=0).json()
gives when the python return the json result:
{'x': 508.5, 'y': 212.5, 'width': 263.0, 'height': 225.0, 'confidence': 0.9291292428970337, 'class': 'car', 'image_path': 'test.jpg', 'prediction_type': 'ObjectDetectionModel'}
{'x': 233.0, 'y': 164.0, 'width': 40.0, 'height': 34.0, 'confidence': 0.8354455232620239, 'class': 'car', 'image_path': 'test.jpg', 'prediction_type': 'ObjectDetectionModel'}
{'x': 347.5, 'y': 173.0, 'width': 53.0, 'height': 146.0, 'confidence': 0.7597783803939819, 'class': 'person', 'image_path': 'test.jpg', 'prediction_type': 'ObjectDetectionModel'}
whereas if i drop the image into the roboflow ui to do the detection, using confidence level of 40 and overlap of 0, on the roboflow ui , it is
{
"predictions": [
{
"x": 406.5,
"y": 170,
"width": 211,
"height": 180,
"confidence": 0.929,
"class": "car"
},
{
"x": 277.5,
"y": 138.5,
"width": 43,
"height": 117,
"confidence": 0.84,
"class": "person"
},
{
"x": 186.5,
"y": 131.5,
"width": 31,
"height": 27,
"confidence": 0.784,
"class": "car"
}
]
}
- 主要语言
- Python
- 星标
- 629
- 派生
- 140
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 6
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
roboflow/roboflow-python 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
roboflow/roboflow-python#505 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
roboflow/roboflow-python#433 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
roboflow/roboflow-python#429 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
roboflow/roboflow-python#427 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
roboflow/roboflow-python#426 ·
维护者通常 1 天内回复
查看 roboflow/roboflow-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
solana-foundation/pay-kit#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nasa/python_cmr#123 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
EleutherAI/lm-evaluation-harness#4243 ·
维护者通常 1 天内回复
-
area: dashboard bug perceived difficulty: 3
难度 2/5 1-3 小时 新手友好度 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
cusp-ai-oss/tojax#17 ·