Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
)
from inference_sdk import InferenceConfiguration, InferenceHTTPClient

_OUTPUT_DEFINITIONS = [
OutputDefinition(name=INFERENCE_ID_KEY, kind=[STRING_KIND]),
OutputDefinition(
name="predictions",
kind=[INSTANCE_SEGMENTATION_PREDICTION_KIND],
),
]

LONG_DESCRIPTION = """
Run inference on an instance segmentation model hosted on or uploaded to Roboflow.

Expand Down Expand Up @@ -159,13 +167,7 @@ def get_parameters_accepting_batches(cls) -> List[str]:

@classmethod
def describe_outputs(cls) -> List[OutputDefinition]:
return [
OutputDefinition(name=INFERENCE_ID_KEY, kind=[STRING_KIND]),
OutputDefinition(
name="predictions",
kind=[INSTANCE_SEGMENTATION_PREDICTION_KIND],
),
]
return _OUTPUT_DEFINITIONS

@classmethod
def get_execution_engine_compatibility(cls) -> Optional[str]:
Expand Down