Skip to content

Commit a2841c4

Browse files
committed
revert workflow UI change for now
1 parent 029d69b commit a2841c4

File tree

5 files changed

+20
-40
lines changed
  • inference/core/workflows/core_steps/models/roboflow
    • instance_segmentation
    • keypoint_detection
    • multi_class_classification
    • multi_label_classification
    • object_detection

5 files changed

+20
-40
lines changed

inference/core/workflows/core_steps/models/roboflow/instance_segmentation/v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,12 @@ class BlockManifest(WorkflowBlockManifest):
8585
images: Selector(kind=[IMAGE_KIND]) = ImageInputField
8686
model_id: Union[Selector(kind=[ROBOFLOW_MODEL_ID_KIND]), str] = RoboflowModelField
8787
confidence: Union[
88-
Optional[FloatZeroToOne],
88+
FloatZeroToOne,
8989
Selector(kind=[FLOAT_ZERO_TO_ONE_KIND]),
9090
] = Field(
91-
default=None,
92-
description=(
93-
"Confidence threshold for predictions. If omitted, the inference "
94-
"server uses the model's F1-optimal threshold from model evaluation "
95-
"when available, otherwise falls back to the model's default."
96-
),
97-
examples=[0.4, "$inputs.confidence_threshold"],
91+
default=0.4,
92+
description="Confidence threshold for predictions.",
93+
examples=[0.3, "$inputs.confidence_threshold"],
9894
)
9995
class_filter: Union[Optional[List[str]], Selector(kind=[LIST_OF_VALUES_KIND])] = (
10096
Field(

inference/core/workflows/core_steps/models/roboflow/keypoint_detection/v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,12 @@ class BlockManifest(WorkflowBlockManifest):
8484
images: Selector(kind=[IMAGE_KIND]) = ImageInputField
8585
model_id: Union[Selector(kind=[ROBOFLOW_MODEL_ID_KIND]), str] = RoboflowModelField
8686
confidence: Union[
87-
Optional[FloatZeroToOne],
87+
FloatZeroToOne,
8888
Selector(kind=[FLOAT_ZERO_TO_ONE_KIND]),
8989
] = Field(
90-
default=None,
91-
description=(
92-
"Confidence threshold for predictions. If omitted, the inference "
93-
"server uses the model's F1-optimal threshold from model evaluation "
94-
"when available, otherwise falls back to the model's default."
95-
),
96-
examples=[0.4, "$inputs.confidence_threshold"],
90+
default=0.4,
91+
description="Confidence threshold for predictions.",
92+
examples=[0.3, "$inputs.confidence_threshold"],
9793
)
9894
keypoint_confidence: Union[
9995
FloatZeroToOne,

inference/core/workflows/core_steps/models/roboflow/multi_class_classification/v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,12 @@ class BlockManifest(WorkflowBlockManifest):
7878
images: Selector(kind=[IMAGE_KIND]) = ImageInputField
7979
model_id: Union[Selector(kind=[ROBOFLOW_MODEL_ID_KIND]), str] = RoboflowModelField
8080
confidence: Union[
81-
Optional[FloatZeroToOne],
81+
FloatZeroToOne,
8282
Selector(kind=[FLOAT_ZERO_TO_ONE_KIND]),
8383
] = Field(
84-
default=None,
85-
description=(
86-
"Confidence threshold for predictions. If omitted, the inference "
87-
"server uses the model's F1-optimal threshold from model evaluation "
88-
"when available, otherwise falls back to 0.5."
89-
),
90-
examples=[0.5, "$inputs.confidence_threshold"],
84+
default=0.4,
85+
description="Confidence threshold for predictions.",
86+
examples=[0.3, "$inputs.confidence_threshold"],
9187
)
9288
disable_active_learning: Union[bool, Selector(kind=[BOOLEAN_KIND])] = Field(
9389
default=True,

inference/core/workflows/core_steps/models/roboflow/multi_label_classification/v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,12 @@ class BlockManifest(WorkflowBlockManifest):
7777
images: Selector(kind=[IMAGE_KIND]) = ImageInputField
7878
model_id: Union[Selector(kind=[ROBOFLOW_MODEL_ID_KIND]), str] = RoboflowModelField
7979
confidence: Union[
80-
Optional[FloatZeroToOne],
80+
FloatZeroToOne,
8181
Selector(kind=[FLOAT_ZERO_TO_ONE_KIND]),
8282
] = Field(
83-
default=None,
84-
description=(
85-
"Confidence threshold for predictions. If omitted, the inference "
86-
"server uses the model's F1-optimal threshold from model evaluation "
87-
"when available, otherwise falls back to 0.5."
88-
),
89-
examples=[0.5, "$inputs.confidence_threshold"],
83+
default=0.4,
84+
description="Confidence threshold for predictions.",
85+
examples=[0.3, "$inputs.confidence_threshold"],
9086
)
9187
disable_active_learning: Union[bool, Selector(kind=[BOOLEAN_KIND])] = Field(
9288
default=True,

inference/core/workflows/core_steps/models/roboflow/object_detection/v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,12 @@ class BlockManifest(WorkflowBlockManifest):
8282
images: Selector(kind=[IMAGE_KIND]) = ImageInputField
8383
model_id: Union[Selector(kind=[ROBOFLOW_MODEL_ID_KIND]), str] = RoboflowModelField
8484
confidence: Union[
85-
Optional[FloatZeroToOne],
85+
FloatZeroToOne,
8686
Selector(kind=[FLOAT_ZERO_TO_ONE_KIND]),
8787
] = Field(
88-
default=None,
89-
description=(
90-
"Confidence threshold for predictions. If omitted, the inference "
91-
"server uses the model's F1-optimal threshold from model evaluation "
92-
"when available, otherwise falls back to the model's default."
93-
),
94-
examples=[0.4, "$inputs.confidence_threshold"],
88+
default=0.4,
89+
description="Confidence threshold for predictions.",
90+
examples=[0.3, "$inputs.confidence_threshold"],
9591
)
9692
class_filter: Union[Optional[List[str]], Selector(kind=[LIST_OF_VALUES_KIND])] = (
9793
Field(

0 commit comments

Comments
 (0)