File tree Expand file tree Collapse file tree 5 files changed +20
-40
lines changed
inference/core/workflows/core_steps/models/roboflow
multi_class_classification
multi_label_classification Expand file tree Collapse file tree 5 files changed +20
-40
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments