Skip to content

Commit

Permalink
Fixed broken link.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavD committed Mar 4, 2024
1 parent 5b6d487 commit 424eb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/csharp/stable-diffusion-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ tensor([[49406, 1078, 320, 1674, 539, 1901, 2677, 593, 4023, 1630,

## Text embedding with the CLIP text encoder model

The tokens are sent to the text encoder model and converted into a tensor of shape (1, 77, 768) where the first dimension is the batch size, the second dimension is the number of tokens and the third dimension is the embedding size. The text encoder is a [OpenAI CLIP](https://openai.com/blog/clip/) model that connects text to images.
The tokens are sent to the text encoder model and converted into a tensor of shape (1, 77, 768) where the first dimension is the batch size, the second dimension is the number of tokens and the third dimension is the embedding size. The text encoder is a [OpenAI CLIP](https://openai.com/research/clip) model that connects text to images.

The text encoder creates the text embedding which is trained to encode the text prompt into a vector that is used to guide the image generation. The text embedding is then concatenated with the uncond embedding to create the text embeddings that is sent to the unet model for inferencing.

Expand Down

0 comments on commit 424eb3f

Please sign in to comment.