MMPrompt
MMPrompt
is the class for multimodal prompt, supporting input an image and question LLMs. We are now supporting two types of image encoding methods which are ASCII and caption.
Constructor
Parameters
resize
(str): The size of the transformed image.
Example
build_prompt
Description
Build a prompt from a given Image path and a question prompt.
Parameters
prompt
(str): The prompt string.img_path
(str): The path of the input image.encode_format
(str): The format to encode the input image.ASCII
orcaption
.scale
(float): Control the encoding granularity inASCII
encoding format.
Example
Last updated