ImagePreparationConfig¶
Module: fast_llm.data.preparation.image_patch
Fields¶
height—core-
Type:
intDefault:16Height of the image patches, in pixels.
width—core-
Type:
intDefault:16Height of the image patches, in pixels.
image_break_token—optional-
Type:
intorNoneDefault:NoneAdd this token at the end of each row of image patches.
image_end_token—optional-
Type:
intorNoneDefault:NoneAdd this token after the last patch of each image.If
image_break_tokenis also defined, onlyimage_end_tokenis added after the last row. max_image_height—optional-
Type:
intDefault:1024Maximum 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:
intDefault:1024Maximum 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:
boolDefault:TrueWhether to resize the image.