MCPcopy Create free account
hub / github.com/modelscope/DiffSynth-Studio / encode_prompt

Method encode_prompt

diffsynth/pipelines/sd_image.py:81–83  ·  view source on GitHub ↗
(self, prompt, clip_skip=1, positive=True)

Source from the content-addressed store, hash-verified

79
80
81 def encode_prompt(self, prompt, clip_skip=1, positive=True):
82 prompt_emb = self.prompter.encode_prompt(prompt, clip_skip=clip_skip, device=self.device, positive=positive)
83 return {"encoder_hidden_states": prompt_emb}
84
85
86 def prepare_extra_input(self, latents=None):

Callers 7

__call__Method · 0.95
__call__Method · 0.45
processMethod · 0.45
processMethod · 0.45
__call__Method · 0.45
processMethod · 0.45
prepare_entity_inputsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected