MCPcopy
hub / github.com/XPixelGroup/DiffBIR / load_image_from_base64

Function load_image_from_base64

llava/mm_utils.py:148–149  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

146
147
148def load_image_from_base64(image):
149 return Image.open(BytesIO(base64.b64decode(image)))
150
151
152def expand2square(pil_img, background_color):

Callers 3

generate_streamMethod · 0.90
generate_streamMethod · 0.90
eval_modelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected