Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/XPixelGroup/DiffBIR
/ get_transform
Function
get_transform
ram/transform.py:7–13 ·
view source on GitHub ↗
(image_size=384)
Source
from the content-addressed store, hash-verified
5
return
image.convert(
"RGB"
)
6
7
def
get_transform(image_size=384):
8
return
Compose([
9
convert_to_rgb,
10
Resize((image_size, image_size)),
11
ToTensor(),
12
Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
13
])
Callers
1
__init__
Method · 0.90
Calls
1
Normalize
Function · 0.50
Tested by
no test coverage detected