deepness.processing.models.preprocessing_utils.limit_channels_number

limit_channels_number(tiles_batched: array, limit: int) array

Limit the number of channels in the input image to the model

Parameters:
  • tiles_batched – Batch of tiles

  • limit – Number of channels to keep

Returns:

Batch of tiles with limited number of channels