Spaces:
Build error
Build error
deploy: 74742225f881c53ee5a2d7f8a6f5c64fee2ff2ee
Browse files- layout-maximum-iou.py +1 -2
layout-maximum-iou.py
CHANGED
|
@@ -149,7 +149,7 @@ def _compute_maximum_iou_for_layout(layout1: Layout, layout2: Layout):
|
|
| 149 |
|
| 150 |
|
| 151 |
def _compute_maximum_iou(
|
| 152 |
-
layouts_1_and_2: Tuple[List[Layout], List[Layout]]
|
| 153 |
) -> npt.NDArray[np.float64]:
|
| 154 |
assert len(layouts_1_and_2) == 2
|
| 155 |
layouts1, layouts2 = layouts_1_and_2
|
|
@@ -194,7 +194,6 @@ def compute_maximum_iou(args):
|
|
| 194 |
|
| 195 |
|
| 196 |
class LayoutMaximumIoU(evaluate.Metric):
|
| 197 |
-
|
| 198 |
def _info(self) -> evaluate.EvaluationModuleInfo:
|
| 199 |
return evaluate.EvaluationModuleInfo(
|
| 200 |
description=_DESCRIPTION,
|
|
|
|
| 149 |
|
| 150 |
|
| 151 |
def _compute_maximum_iou(
|
| 152 |
+
layouts_1_and_2: Tuple[List[Layout], List[Layout]],
|
| 153 |
) -> npt.NDArray[np.float64]:
|
| 154 |
assert len(layouts_1_and_2) == 2
|
| 155 |
layouts1, layouts2 = layouts_1_and_2
|
|
|
|
| 194 |
|
| 195 |
|
| 196 |
class LayoutMaximumIoU(evaluate.Metric):
|
|
|
|
| 197 |
def _info(self) -> evaluate.EvaluationModuleInfo:
|
| 198 |
return evaluate.EvaluationModuleInfo(
|
| 199 |
description=_DESCRIPTION,
|