Home

Awesome

<h1><img width="64px" src="ai_diffusion/icons/logo-128.png"> Generative AI <i>for Krita</i></h1>

Features | ⭳ Download | 🛠️Installation | 🎞️ Video | 🖼️Gallery | 📖Wiki | 💬Discussion | 🗣️Discord

This is a plugin to use generative AI in image painting and editing workflows from within Krita. For a more visual introduction, see www.interstice.cloud

The main goals of this project are:

Watch video demo

<a name="features"></a> Features

<a name="installation"></a> Getting Started

See the Plugin Installation Guide for instructions.

A concise (more technical) version is below:

Requirements

Hardware support

To run locally a powerful graphics card with at least 6 GB VRAM (NVIDIA) is recommended. Otherwise generating images will take very long or may fail due to insufficient memory!

<table> <tr><td>NVIDIA GPU</td><td>supported via CUDA</td></tr> <tr><td>AMD GPU</td><td>limited support, DirectML on Windows, ROCm on Linux (custom install)</td></tr> <tr><td>Apple Silicon</td><td>community support, MPS on macOS</td></tr> <tr><td>CPU</td><td>supported, but very slow</td></tr> </table>

Installation

  1. If you haven't yet, go and install Krita! Required version: 5.2.0 or newer
  2. Download the plugin.
  3. Start Krita and install the plugin via Tools ▸ Scripts ▸ Import Python Plugin from File...
  4. Restart Krita and create a new document or open an existing image.
  5. To show the plugin docker: Settings ‣ Dockers ‣ AI Image Generation.
  6. In the plugin docker, click "Configure" to start local server installation or connect.

[!NOTE] If you encounter problems please check the FAQ / list of common issues for solutions.

Reach out via discussions, our Discord, or report an issue here. Please note that official Krita channels are not the right place to seek help with issues related to this extension!

Optional: Custom ComfyUI Server

The plugin uses ComfyUI as backend. As an alternative to the automatic installation, you can install it manually or use an existing installation. If the server is already running locally before starting Krita, the plugin will automatically try to connect. Using a remote server is also possible this way.

Please check the list of required extensions and models to make sure your installation is compatible.

Optional: Object selection tools (Segmentation)

If you're looking for a way to easily select objects in the image, there is a separate plugin which adds AI segmentation tools.

Contributing

Contributions are very welcome! Check the contributing guide to get started.

<a name="gallery"></a> Gallery

Live painting with regions (Click for video) Watch video demo

Inpainting on a photo using a realistic model <img src="media/screenshot-2.png">

Reworking and adding content to an AI generated image <img src="media/screenshot-1.png">

Adding detail and iteratively refining small parts of the image <img src="media/screenshot-3.png">

Modifying the pose vector layer to control character stances (Click for video) Watch video demo

Control layers: Scribble, Line art, Depth map, Pose Scribble control layer Line art control layer Depth map control layer Pose control layer

Technology