Skip to content

ImagePreparationConfig

Module: fast_llm.data.preparation.image_patch

Fields

height — core

Type: int    Default: 16

Height of the image patches, in pixels.

width — core

Type: int    Default: 16

Height of the image patches, in pixels.

image_break_token — optional

Type: int or None    Default: None

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

image_end_token — optional

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_height — optional

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_width — optional

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