MCPcopy Create free account
hub / github.com/ant-research/MagicQuill / encode

Method encode

MagicQuill/comfyui_utils.py:124–127  ·  view source on GitHub ↗
(self, clip, text)

Source from the content-addressed store, hash-verified

122
123class CLIPTextEncode:
124 def encode(self, clip, text):
125 tokens = clip.tokenize(text)
126 cond, pooled = clip.encode_from_tokens(tokens, return_pooled=True)
127 return ([[cond, {"pooled_output": pooled}]], )
128
129class KSampler:
130 def common_ksampler(self, model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False):

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
encode_from_tokensMethod · 0.80

Tested by

no test coverage detected