Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
35
def
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
41
def
isimage(x):
Callers
3
log_images
Method · 0.90
log_images
Method · 0.90
log_images
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected