You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inference/core/workflows/core_steps/classical_cv/size_measurement/v1.py
+36-18Lines changed: 36 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -85,12 +85,16 @@ class SizeMeasurementManifest(WorkflowBlockManifest):
85
85
examples=["$segmentation.object_predictions"],
86
86
)
87
87
88
-
reference_predictions: Selector(
89
-
kind=[
90
-
INSTANCE_SEGMENTATION_PREDICTION_KIND,
91
-
OBJECT_DETECTION_PREDICTION_KIND,
92
-
]
93
-
) =Field(
88
+
reference_predictions: Union[
89
+
list,
90
+
Selector(
91
+
kind=[
92
+
INSTANCE_SEGMENTATION_PREDICTION_KIND,
93
+
OBJECT_DETECTION_PREDICTION_KIND,
94
+
LIST_OF_VALUES_KIND,
95
+
]
96
+
),
97
+
] =Field(
94
98
description="Reference object used to calculate the dimensions of the specified objects. If multiple objects are provided, the highest confidence prediction will be used.",
0 commit comments