Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ forward
Method
forward
ldm/modules/encoders/modules.py:210–213 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
208
return
self(text)
209
210
def
forward(self, text):
211
clip_z = self.clip_encoder.encode(text)
212
t5_z = self.t5_encoder.encode(text)
213
return
[clip_z, t5_z]
214
215
Callers
nothing calls this directly
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected