Acly/krita-ai-diffusion

★ 10,587⑂ 0

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.

10,587Star
0Fork
0Watch
0Issue
PythonLanguage
-License
Created · last push · repository size 0 KB · default branch -

README

Generative AI for Krita

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

This is a plugin to use generative AI in image painting and editing workflows from within Krita. Visit www.interstice.cloud for an introduction. Learn how to install and use it on docs.interstice.cloud.

The main goals of this project are:

To get the result you envision, you can restrict generation to selections, refine existing content with a variable degree of strength, focus text on image regions, and guide generation with reference images, sketches, line art, depth maps, and more. This project aims to be an unobtrusive tool that integrates and synergizes with image editing workflows in Krita. Draw, paint, edit and generate seamlessly without worrying about resolution and technical details. own models, and run everything local on your hardware. Cloud generation is also available to get started quickly without heavy investment.

[Watch video demo](https://youtu.be/Ly6USRwTHe0 "Watch video demo")

Features

Getting Started

See the Plugin Installation Guide for instructions.

A concise (more technical) version is below:

Operating System

Windows, Linux, MacOS

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!

NVIDIA GPUsupported via CUDA (Windows/Linux)
AMD GPUsupported via ROCm (Windows/Linux)
Intel GPUsupported via XPU (Windows/Linux)
Apple SiliconMPS on macOS 14+
CPUsupported, but very slow

Installation

1. If you haven't yet, go and install Krita! _Required version: 5.2.0 or newer_ 1. Download the plugin. 2. Start Krita and install the plugin via Tools ▸ Scripts ▸ Import Python Plugin from File...

3. Restart Krita and create a new document or open an existing image. 4. To show the plugin docker: Settings ‣ Dockers ‣ AI Image Generation. 5. 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 or remove background 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.

Gallery

_Live painting with regions (Click for video)_ [Watch video demo](https://youtu.be/PPxOE9YH57E "Watch video demo")

_Inpainting on a photo using a realistic model_

_Reworking and adding content to an AI generated image_

_Adding detail and iteratively refining small parts of the image_

_Modifying the pose vector layer to control character stances (Click for video)_ [Watch video demo](https://youtu.be/-QDPEcVmdLI "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

More Image Trending projects

1
2

Comfy-Org / ComfyUI

Python★ 133,239⑂ 0
3

opencv / opencv

C++★ 90,840⑂ 0
4
5

d2l-ai / d2l-zh

Python★ 80,681⑂ 0
6

unslothai / unsloth

Python★ 76,181⑂ 0