MCPcopy Create free account
hub / github.com/ali-vilab/ACE_plus / encode_list

Method encode_list

modules/embedder.py:195–202  ·  view source on GitHub ↗
(self, text, return_mask = False)

Source from the content-addressed store, hash-verified

193 }
194
195 def encode_list(self, text, return_mask = False):
196 t5_embeds = self.t5_model.encode_list(text, return_mask = return_mask)
197 clip_embeds = self.clip_model.encode_list(text, return_mask = return_mask)
198 # change embedding strategy here
199 return {
200 'context': t5_embeds,
201 'y': clip_embeds,
202 }
203
204 def encode_list_of_list(self, text, return_mask = False):
205 t5_embeds = self.t5_model.encode_list_of_list(text, return_mask = return_mask)

Callers

nothing calls this directly

Calls 1

encode_listMethod · 0.45

Tested by

no test coverage detected