nan-wang / executor-image-normalizer

Executor that reads, resizes, crops and normalizes images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jina banner

Image Normalizer

Description

The image normalizer resizes, crops and normalizes images.

Parameters

The following parameters can be used:

  • resize_dim (int): The size of the image after resizing
  • target_size (tuple or int): The dimensions to crop the image to (center cropping is used)
  • img_mean (tuple, default (0,0,0)): The mean for normalization
  • img_std (tuple, default (1,1,1)): The standard deviation for normalization
  • channel_axis (int): The channel axis in the images used
  • target_channel_axis (int): The desired channel axis in the images. If this is not equal to the channel_axis, the axis is moved.

About

Executor that reads, resizes, crops and normalizes images.

License:Apache License 2.0


Languages

Language:Python 98.5%Language:Dockerfile 1.5%