MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / single42tensor4

Function single42tensor4

ldm/modules/image_degradation/utils_image.py:337–338  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

335
336
337def single42tensor4(img):
338 return torch.from_numpy(np.ascontiguousarray(img)).permute(2, 0, 1, 3).float()
339
340
341# from skimage.io import imread, imsave

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected