Everyday Series beta

Prompt-to-Prompt Image Editing with Cross-Attention Control

Prompt-to-Prompt Image Editing with Cross-Attention Control
Photo by 🇸🇮 Janko Ferlič / Unsplash


If you like our work, please consider supporting us so we can keep doing what we do. And as a current subscriber, enjoy this nice discount!

Also: if you haven’t yet, follow us on Twitter, TikTok, or YouTube!


Text-based image synthesis models are appealing to humans because they can verbally describe their intent. However, these models are challenging to edit because a small modification of the text prompt often leads to a completely different outcome. Editing is challenging for these models because an innate property of an editing technique is to preserve most of the original image, but in the text-based models, even a small modification of the text often leads to a completely different outcome. One way to preserve that is by providing a spatial mask to localize the edit, but that ignores the original structure and content within the masked region

The author presents a method for editing images that do not require a mask and demonstrate how this method can be used to edit images by replacing or adding words to the text prompt.

Source: https://github.com/google/prompt-to-prompt

Research Paper:

Prompt-to-Prompt Image Editing with Cross Attention Control
Recent large-scale text-driven synthesis models have attracted much attentionthanks to their remarkable capabilities of generating highly diverse imagesthat follow given text prompts. Such text-based synthesis methods areparticularly appealing to humans who are used to verbally describe theirint…

GitHub code:

GitHub - google/prompt-to-prompt
Contribute to google/prompt-to-prompt development by creating an account on GitHub.


Do you like our work?
Consider becoming a paying subscriber to support us!

Productive AI is here

Enhance your productivity by adding AI to your everyday work. Hassle free.

Everyday Series

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Everyday Series.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.