> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bioptimus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bioptimus.runtime.models.tissue_seg

Tissue segmentation server-side model.

Loads the exported tissue segmentation checkpoint and produces per-pixel binary masks flattened to a 1-D output vector.

## TissueSegModel

```python theme={null}
class TissueSegModel(checkpoint_name: str,
                     device: str = 'cuda',
                     model_root: Path = MODEL_ROOT)
```

Tissue segmentation model (512x512, MPP 8.0).

Produces a flat `(H*W,)` binary mask output where each value is the probability of tissue at that pixel.

***

#### forward

```python theme={null}
def forward(requests: list[ModelRequest]) -> torch.Tensor
```

Runs segmentation returning flattened masks (legacy path).

<ParamField body="requests">
  List of tile requests.
</ParamField>

**Returns**:

Flattened mask tensor of shape `(N, H*W)`.
