Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ single2uint16
Function
single2uint16
ldm/modules/image_degradation/utils_image.py:264–266 ·
view source on GitHub ↗
(img)
Source
from the content-addressed store, hash-verified
262
263
264
def
single2uint16(img):
265
266
return
np.uint16((img.clip(0, 1)*65535.).round())
267
268
269
# --------------------------------------------
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected