MCPcopy 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
333def single32tensor5(img):
334 return torch.from_numpy(np.ascontiguousarray(img)).float().unsqueeze(0).unsqueeze(0)
335
336
337def single42tensor4(img):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected