outputs
ModelForImageSegmentationOutput
Bases: TypedDict
The output for image segmentation models.
Source code in glasses/models/vision/image/segmentation/outputs.py
pixel_logits: Tensor
class-attribute
A torch.Tensor
of shape (batch_size, num_classes, height, width)
.
Note
The height
and width
are usually smaller than the original image.