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

Function ismap

ldm/util.py:35–38  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

33
34
35def ismap(x):
36 if not isinstance(x, torch.Tensor):
37 return False
38 return (len(x.shape) == 4) and (x.shape[1] > 3)
39
40
41def isimage(x):

Callers 3

log_imagesMethod · 0.90
log_imagesMethod · 0.90
log_imagesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected