Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ single2uint
Function
single2uint
ldm/modules/image_degradation/utils_image.py:254–256 ·
view source on GitHub ↗
(img)
Source
from the content-addressed store, hash-verified
252
253
254
def
single2uint(img):
255
256
return
np.uint8((img.clip(0, 1)*255.).round())
257
258
259
def
uint162single(img):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected