Acly/krita-ai-diffusion
Krita plugin for controlled canvas editing with ComfyUI generation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Krita AI Diffusion is a Python plugin, not a standalone inference application. Its AI Image Generation docker is a dockable Krita panel, not a container. The plugin turns canvas context, selections, layer-defined regions, prompts, and visual guides into generation requests for ComfyUI. Artists queue jobs, cancel them, and preview previous results without leaving the editor. ComfyUI handles inference and can run as a plugin-managed local server or as a separately configured local or remote service.
The tree contains the Krita plugin descriptor ai_diffusion.desktop and the ai_diffusion/ source directory. pyproject.toml declares Python >=3.10 for the project, but the installed plugin runs in Krita's embedded Python. The requirements file describes the Krita 5-era runtime as standard library plus Qt5 and lists tools such as ruff, pyright, and pytest for development and testing; those entries are not workstation runtime prerequisites. The Krita 6 prerelease moves the host integration to Qt6.
Key Capabilities & Differentiators
The core workflow is editing an existing image rather than relying on a prompt for the entire frame. Selections constrain inpainting and object replacement; outpainting extends the canvas; adjustable refinement strength controls how much existing content changes. Layer-defined regions can carry separate prompts. ControlNet supports guides including scribble, line art, Canny edges, pose, depth, normals, and segmentation, while IP-Adapter adds reference-based style and composition guidance.
The supported model list includes Flux 2, Z-Image, Stable Diffusion 1.5, XL, and Illustrious, as well as edit models driven by text instructions. Style presets expose checkpoints, LoRAs, and samplers without making every painting session a configuration exercise. Live painting gives feedback as the canvas changes, while queued jobs and history support less interactive iteration. The upscaling workflow targets 4K, 8K, and beyond; treat those as output sizes, not a memory guarantee for every model and GPU.
Trade-offs & Limitations
Compared with working in ComfyUI directly, the plugin trades direct access to the node graph for controls that map to painting tasks: selections, layers, presets, and guides. This is a good exchange when the image is the work in progress. Use ComfyUI directly when the workflow graph itself is the artifact you need to inspect or redesign. A custom server preserves the option to manage the backend separately, but you must keep the required extensions and models compatible.
Local execution avoids sending canvas inputs to a remote inference service, but shifts model storage, GPU sizing, and maintenance to the operator. CPU support is a slow fallback, not a practical substitute for a GPU when using live painting. Remote or cloud execution reduces workstation compute requirements but adds network dependence and makes it important to decide where canvas content may be sent. GPL-3.0 applies to the plugin; check the terms of individual model weights and other assets before adopting them in a commercial pipeline.
Hardware & Deployment Guide
Install the release ZIP from Krita's Tools → Scripts → Import Python Plugin from File, restart, open a document, and enable Settings → Dockers → AI Image Generation. Use Configure to install the managed local server or connect to ComfyUI. An existing local or remote server needs compatible extensions and models for the chosen workflows. Cloud generation is a separate option when you do not want to provision local inference hardware.
The local recommendation is an NVIDIA GPU with at least 6 GB of VRAM. CUDA, ROCm, and XPU are listed for Windows/Linux, and MPS is supported on macOS 14+ with Apple Silicon. Match the plugin ZIP to the host: v1.53.0 recommends Krita 5.3.2.1 and adds Anima segmentation control. v1.54.0-pre recommends Krita 6.0.4, moves to Qt6, and does not run on Krita 5. That prerelease has had limited testing and is known to perform poorly on macOS, so evaluate that combination before committing production work to it.
Krita artists and studios that want selection-based retouching, outpainting, or guided generation without leaving the canvas, with the option to own the inference setup.
The node graph is your primary workspace, you need a standalone generation service, or you need responsive live painting on CPU-only hardware and cannot use a remote backend.
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Acly/krita-ai-diffusion.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about krita-ai-diffusion
Can I reuse an existing ComfyUI installation?
How should I size a workstation for local inference?
Can a studio self-host it for commercial work?
When is it preferable to using ComfyUI directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy