| sd_encode_text | R Documentation |
Runs only the text-encoder stage of the pipeline, returning the
conditioning tensors (analogue of SDCondition). Building block for
custom pipelines; most users want sd_generate.
sd_encode_text(ctx, prompt, clip_skip = -1L, width = -1L, height = -1L)
ctx |
SD context from |
prompt |
Text prompt |
clip_skip |
CLIP layers to skip (-1 = model default) |
width, height |
Intended generation size (affects size-conditioning for some models, e.g. SDXL). -1 lets the model decide. |
A conditioning list with elements crossattn, vector,
concat; each is an sd_tensor list (type, ne,
data) or NULL when the model does not produce it.
sd_sample, sd_decode_latent
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.