Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ single32tensor5
Function
single32tensor5
ldm/modules/image_degradation/utils_image.py:333–334 ·
view source on GitHub ↗
(img)
Source
from the content-addressed store, hash-verified
331
332
333
def
single32tensor5(img):
334
return
torch.from_numpy(np.ascontiguousarray(img)).float().unsqueeze(0).unsqueeze(0)
335
336
337
def
single42tensor4(img):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected