ResizeImgPreProcessor¶
- class maze.core.wrappers.observation_preprocessing.preprocessors.resize_img.ResizeImgPreProcessor(observation_space: gymnasium.spaces.Box, target_size: Sequence[int], transpose: bool)¶
An image resizing pre-processor.
- Parameters:
observation_space – The observation space to pre-process.
target_size – Target size of resized image.
transpose – Transpose rgb channel is required (should be last dimension such as [96, 96, 3]).
- process(observation: numpy.ndarray) numpy.ndarray¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_shape() Tuple[int, ...]¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_space() gymnasium.spaces.Box¶
(overrides
PreProcessor)implementation of
PreProcessorinterface