Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ __call__
Method
__call__
ldm/data/util.py:19–24 ·
view source on GitHub ↗
(self, sample)
Source
from the content-addressed store, hash-verified
17
return
x
18
19
def
__call__(self, sample):
20
# sample['jpg'] is tensor hwc in [-1, 1] at this point
21
x = self.pt2np(sample[
'jpg'
])
22
x = self.transform({
"image"
: x})[
"image"
]
23
sample[
'midas_in'
] = x
24
return
sample
Callers
nothing calls this directly
Calls
1
pt2np
Method · 0.95
Tested by
no test coverage detected