InstanceEngine.predict_instances

InstanceEngine.predict_instances(model_name=None, split='test', *, decode=None)

One label map per source image: objects numbered from 1.

A list rather than a stacked array even when every image is the same size, because what a caller does with these is read one case at a time - count the objects, measure them, draw them with overlay_instances.

Parameters

Name Type Description Default
model_name str | None Which model, by name. Defaults to the first. None
split str Which data to predict on. 'test'
decode str | None Which decoding, by name. Defaults to the model’s first. None

Returns

Name Type Description
list[np.ndarray] One (H, W) int32 label map per sample, in the split’s own order.