(
self,
prompt,
positive=True,
device="cuda"
)
| 36 | |
| 37 | |
| 38 | def encode_prompt( |
| 39 | self, |
| 40 | prompt, |
| 41 | positive=True, |
| 42 | device="cuda" |
| 43 | ): |
| 44 | prompt = self.process_prompt(prompt, positive=positive) |
| 45 | prompt_emb = self.encode_prompt_using_t5(prompt, self.text_encoder, self.tokenizer, 226, device) |
| 46 | return prompt_emb |
nothing calls this directly
no test coverage detected