Skip to content
Snippets Groups Projects
Commit a1e85ffc authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

No longer return model_id in record

parent 6735a2f7
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,5 @@ class PipelineParams(BaseModel):
class PipelineRecord(BaseModel):
output_accessor_id: str
interm_accessor_ids: Union[List[str], None]
model_id: str
success: bool
timer: dict
......@@ -16,14 +16,19 @@ router = APIRouter(
tags=['pipelines'],
)
class SegmentParams(PipelineParams):
accessor_id: str = Field(description='ID(s) of previously loaded accessor(s) to use as pipeline input')
model_id: str = Field(description='ID(s) of previously loaded segmentation model(s)')
channel: int = Field(None, description='Channel to use for segmentation; use all channels if empty.')
class SegmentRecord(PipelineRecord):
pass
@router.put('/segment')
def segment(p: SegmentParams) -> PipelineRecord:
def segment(p: SegmentParams) -> SegmentRecord:
"""
Run a semantic segmentation model to compute a binary mask from an input image
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment