Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
148
def
load_image_from_base64(image):
149
return
Image.open(BytesIO(base64.b64decode(image)))
150
151
152
def
expand2square(pil_img, background_color):
Callers
3
generate_stream
Method · 0.90
generate_stream
Method · 0.90
eval_model
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected