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

Method encode_prompt

diffsynth/pipelines/sd3_image.py:62–66  ·  view source on GitHub ↗
(self, prompt, positive=True, t5_sequence_length=77)

Source from the content-addressed store, hash-verified

60
61
62 def encode_prompt(self, prompt, positive=True, t5_sequence_length=77):
63 prompt_emb, pooled_prompt_emb = self.prompter.encode_prompt(
64 prompt, device=self.device, positive=positive, t5_sequence_length=t5_sequence_length
65 )
66 return {"prompt_emb": prompt_emb, "pooled_prompt_emb": pooled_prompt_emb}
67
68
69 def prepare_extra_input(self, latents=None):

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected