Skip to content

vllm.multimodal.media.image

Classes:

ImageEmbeddingMediaIO

Bases: MediaIO[Tensor]

Image embedding MediaIO implementation.

Configuration values can be user-provided either by --media-io-kwargs or by the runtime API field "media_io_kwargs". Ensure proper validation and error handling.

ImageMediaIO

Bases: MediaIO[Image | Tensor]

Configuration values can be user-provided either by --media-io-kwargs or by the runtime API field "media_io_kwargs". Ensure proper validation and error handling.

_convert_image_mode(image)

Convert image mode with custom background color.