Skip to content

ImagePreparationConfig

Module: fast_llm.data.preparation.image_patch

Fields

heightcore

Type: int    Default: 16

Height of the image patches, in pixels.

widthcore

Type: int    Default: 16

Height of the image patches, in pixels.

image_break_tokenoptional

Type: int or None    Default: None

Add this token at the end of each row of image patches.

image_end_tokenoptional

Type: int or None    Default: None

Add this token after the last patch of each image.If image_break_token is also defined, only image_end_token is added after the last row.

max_image_heightoptional

Type: int    Default: 1024

Maximum height of the complete image, in pixels.If the original image is larger than this and resizing is enabled, it will be resized to this height.

max_image_widthoptional

Type: int    Default: 1024

Maximum width of the complete image, in pixels.If the original image is larger than this and resizing is enabled, it will be resized to this width.

do_resize

Type: bool    Default: True

Whether to resize the image.

Used in