Bases: DataDescription
, ABC
DataDescription used for models with images as input
get_input_channel_count()
Returns the number of channels of the input image(s)
Source code in niceml/data/datadescriptions/inputdatadescriptions.py
| @abstractmethod
def get_input_channel_count(self) -> int:
"""Returns the number of channels of the input image(s)"""
|
Returns the ImageSize of the input image(s)
Source code in niceml/data/datadescriptions/inputdatadescriptions.py
| @abstractmethod
def get_input_image_size(self) -> ImageSize:
"""Returns the ImageSize of the input image(s)"""
|
Returns the 3-dim shape of the input tensor [height, width, channel_count]
Source code in niceml/data/datadescriptions/inputdatadescriptions.py
| def get_input_tensor_shape(self) -> Tuple[int, int, int]:
"""Returns the 3-dim shape of the input tensor [height, width, channel_count]"""
return self.get_input_image_size().to_numpy_shape() + (
self.get_input_channel_count(),
)
|