View Source Bumblebee.Vision.ClipFeaturizer (Bumblebee v0.1.2)
CLIP featurizer for image data.
configuration
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. The image is resized to (:size
,:size
). Only has an effect if:resize
istrue
. Defaults to224
:resize_method
- the resizing method, either of:nearest
,:bilinear
,:bicubic
,:lanczos3
,:lanczos5
. Defaults to:bicubic
:center_crop
- whether to crop the input at the center. If the input size is smaller than:crop_size
along any edge, the image is padded with zeros and then center cropped . Defaults totrue
:crop_size
- the size to center crop the image to. Only has an effect if:center_crop
istrue
. Defaults to224
: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.485, 0.456, 0.406]
:image_std
- the sequence of standard deviations for each channel, to be used when normalizing images. Defaults to[0.229, 0.224, 0.225]