Skip to content

Commit 2f6a960

Browse files
committed
feedback
1 parent 78b2a5d commit 2f6a960

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/source/en/using-diffusers/weighted_prompts.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ bad hands,missing fingers,(extra arms and legs),(worst quality:2),(low quality:2
277277

278278
Use the `get_weighted_text_embeddings_sdxl` function to generate the prompt embeddings and the negative prompt embeddings. It'll also generated the pooled and negative pooled prompt embeddings since you're using the SDXL model.
279279

280+
> [!TIP]
281+
> You can safely ignore the error message below about the token index length exceeding the models maximum sequence length. All your tokens will be used in the embedding process.
282+
>
283+
> ```
284+
> Token indices sequence length is longer than the specified maximum sequence length for this model
285+
> ```
286+
280287
```py
281288
(
282289
prompt_embeds,
@@ -303,7 +310,7 @@ image = pipe(
303310
image
304311
```
305312
306-
<div class="flex jsutify-center">
313+
<div class="flex justify-center">
307314
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sd_embed_sdxl.png"/>
308315
</div>
309316

0 commit comments

Comments
 (0)