MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / encode_prompt

Method encode_prompt

diffsynth/prompters/cog_prompter.py:38–46  ·  view source on GitHub ↗
(
        self,
        prompt,
        positive=True,
        device="cuda"
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

process_promptMethod · 0.80

Tested by

no test coverage detected