Image Utilities
Reference information for the multimodal image utilities API.
eva.multimodal.utils.image.encode_image
Encodes an image tensor into a string format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image |
Image
|
The image tensor to encode. |
required |
encoding |
Literal['base64']
|
The encoding format to use. Currently only supports "base64". |
required |
**kwargs |
Additional keyword arguments to pass to the encoding function. |
{}
|
Returns:
| Type | Description |
|---|---|
str
|
An encoded string representation of the image. |