Skip to content

Commit

Permalink
Update tests/label_image_diff macro
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Apr 4, 2024
1 parent ab5d053 commit 4121085
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions macros/tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
token_metric="mae"
token_eps="0.01">

<output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
<assert_contents>
<has_image_n_labels n="2"/>
<has_image_mean_object_size labels="0" min="1"/>
<has_image_mean_object_size labels="255" min="1"/>
<yield/>
</assert_contents>
</output>
Expand All @@ -23,7 +25,7 @@
token_metric="iou"
token_eps="0.01">

<output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
<assert_contents>
<yield/>
</assert_contents>
Expand Down Expand Up @@ -53,9 +55,11 @@
token_metric="mae"
token_eps="0.01">

<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
<assert_contents>
<has_image_n_labels n="2"/>
<has_image_mean_object_size labels="0" min="1"/>
<has_image_mean_object_size labels="255" min="1"/>
<yield/>
</assert_contents>
</element>
Expand All @@ -68,7 +72,7 @@
token_metric="iou"
token_eps="0.01">

<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
<element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
<assert_contents>
<yield/>
</assert_contents>
Expand Down

0 comments on commit 4121085

Please sign in to comment.