Skip to content

Commit

Permalink
Changes iou samples
Browse files Browse the repository at this point in the history
  • Loading branch information
EMalagoli92 committed Apr 22, 2024
1 parent 5368dff commit 67735b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ from od_metrics import iou
y_true = [[25, 16, 38, 56], [129, 123, 41, 62]]
y_pred = [[25, 27, 37, 54], [119, 111, 40, 67], [124, 9, 49, 67]]

result = iou(y_true, y_pred)
result = iou(y_true, y_pred, box_format="xywh")
print(result)
"""
array([[0.67655425, 0. ],
Expand Down
4 changes: 2 additions & 2 deletions samples/samples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
"y_true = [[25, 16, 38, 56], [129, 123, 41, 62]]\n",
"y_pred = [[25, 27, 37, 54], [119, 111, 40, 67], [124, 9, 49, 67]]\n",
"\n",
"result = iou(y_true, y_pred)\n",
"result = iou(y_true, y_pred, box_format=\"xywh\")\n",
"result"
]
}
Expand All @@ -361,7 +361,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 67735b5

Please sign in to comment.