Skip to main content
Remote tissue segmentation mask model. Wraps a tissue segmentation EndpointModel as a TissueMaskModel, forwarding each ModelRequest to the remote tissue segmentation endpoint.

BioptimusTissueMaskModel

Tissue mask model backed by a segmentation endpoint. Forwards each ModelRequest to the EndpointModel and returns the ModelResponse.
An EndpointModel configured for tissue segmentation.
Example:

tile_spec

Returns the tile spec from the backbone’s model spec.

process

Sends a request to the remote tissue segmentation endpoint.
A ModelRequest containing the tile image and metadata.
Returns: A ModelResponse with the segmentation output.

process_async

Sends a request asynchronously to the segmentation endpoint.
A ModelRequest containing the tile image and metadata.
An aiohttp.ClientSession for connection pooling.
Returns: A ModelResponse with the segmentation output.