View Source Bumblebee.Vision.BlipFeaturizer (Bumblebee v0.4.2)
BLIP featurizer for image data.
Configuration
:resize
- whether to resize (and optionally center crop) the input to the given:size
. Defaults totrue
:size
- the size to resize the input to. Either a single number or a{height, width}
tuple. Only has an effect if:resize
istrue
. Defaults to384
:resize_method
- the resizing method, either of:nearest
,:bilinear
,:bicubic
,:lanczos3
,:lanczos5
. Defaults to:bicubic
:normalize
- whether or not to normalize the input with mean and standard deviation. Defaults totrue
:image_mean
- the sequence of mean values for each channel, to be used when normalizing images. Defaults to[0.48145466, 0.4578275, 0.40821073]
:image_std
- the sequence of standard deviations for each channel, to be used when normalizing images. Defaults to[0.26862954, 0.26130258, 0.27577711]