Skip to content

Commit

Permalink
Add unittest for not valid boxes coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
EMalagoli92 committed Apr 22, 2024
1 parent 78d7c0b commit 5368dff
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,34 @@
"to_cover": {"pycoco_converter": False, "box_format_converter": False},
"ids": "annotations_exception_ypred_no_boxes"
},
{
"compute_settings": {"extended_summary": True},
"y_true": [
{"labels": [0, 2],
"boxes": [[17, 83, 97, 47], [57, 86, 96, 73]]}
],
"y_pred": [
{
"labels": [0, 2],
"boxes": [[-17, -83, 0, 47], [0, 86, -96, 73]],
"scores": [.2, .3]}
],
"ids": "annotations_with_no_valid_y_pred_boxes"
},
{
"compute_settings": {"extended_summary": True},
"y_true": [
{"labels": [0, 2],
"boxes": [[-17, -83, 0, 47], [0, 86, -96, 73]]}
],
"y_pred": [
{
"labels": [0, 2],
"boxes": [[17, 83, 97, 47], [57, 86, 96, 73]],
"scores": [.2, .3]}
],
"ids": "annotations_with_no_valid_y_true_boxes"
},
]


Expand Down

0 comments on commit 5368dff

Please sign in to comment.