WordWeight

WordWeight lets you generate stunning images from text using cutting-edge diffusion models — then pulls back the curtain to reveal which words carried the most weight.

WordWeight

Overview

WordWeight takes your input prompt, and first generates an image for you. Then, when you ask for an explanation of a part of the image, wordweight computes the scalar of the sum of the products of the image mask and the actual generated image. A backward propagation follows, populating the gradients of the token embeddings. Using a vanilla gradient embedding method, each token's weight is computed and shown on the UI.

Technologies Used

Replicate
PyTorch
Azure
PostgresQL

Key Challenges

View on Github