Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ encode
Method
encode
ldm/modules/encoders/modules.py:21–22 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
19
class
IdentityEncoder(AbstractEncoder):
20
21
def
encode(self, x):
22
return
x
23
24
25
class
ClassEmbedder(nn.Module):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected