krita-ai-diffusion README

The project's README from github.com/Acly/krita-ai-diffusion. As one markdown file: README.md.

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:

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
  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 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.

Live painting with regions (Click for video) 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

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

Technology

krita-ai-diffusion (Acly/krita-ai-diffusion)

Searching Database…

这是什么?这是一个免费开源的 Krita 插件,把生成式 AI 融入绘画和图像编辑流程:可以用可选的文字提示词对图片进行局部重绘、扩图、实时绘画和放大,全部在你自己的硬件上运行。
这是独立软件,还是 Krita 里面的东西?它是 Krita 的 Python 插件,不是独立软件:它会在 Krita 里添加一个名为 'AI Image Generation' 的停靠面板,并使用 ComfyUI 作为生成后端,这个后端它可以帮你自动安装和管理。
怎么安装这个插件?先安装 Krita 5.2.0 或更新版本,下载插件 ZIP 文件,然后在 Krita 里使用 Tools ▸ Scripts ▸ Import Python Plugin from File...,重启 Krita,启用 AI Image Generation 停靠面板,再点击 Configure 来安装本地服务器或直接连接。
在本地运行需要什么样的硬件?建议使用配备至少 6 GB 显存的高性能显卡:Windows/Linux 上支持 NVIDIA(CUDA)、AMD(ROCm)或 Intel(XPU),macOS 14 及以上版本支持 Apple Silicon(MPS)。只用 CPU 也能跑,但速度非常慢。
如果我的电脑配置不够,没法在本地生成怎么办?硬件太弱会导致生成速度很慢,或者出现内存不足的错误。可以换一种方式:让插件连接现有的本地或远程 ComfyUI 服务器,或者使用可选的云端生成,不用先花大钱买硬件就能上手。
我的作品会留在我自己的电脑上吗?可以:这个项目坚持使用开源模型,所有内容都在你自己的硬件上本地运行。云端生成只是一个方便快速上手的可选项。
为什么不直接用独立的 AI 图像生成工具,而要开发这个插件?大多数生成工具都把重点放在 AI 参数上;这个项目则希望成为一个不打扰你的工具,与 Krita 的编辑流程深度整合,让你在绘画、编辑和生成之间无缝切换,不用操心分辨率和各种技术细节。
对 AI 生成内容的控制能有多精确?非常精确:你可以把生成范围限定在选区内,以可调的强度润色现有内容,把文字提示词集中在图片的某个区域,还可以用参考图、草图、线稿或深度图来引导生成结果。
它还能选中物体或去除背景吗?可以,通过另一个配套插件实现,它提供 AI 分割工具,可以轻松选中图中的物体或去除背景。
Creator
Acly
Size
32.7 MB
Stars
10.7K
Age
3y
Commits · 90 Days