Skip to main content

Local AI image editing/generation using Krita AI

If you want to use local AI video/image/TTS/... generation the current state-of-the-art tool is ComfyUI. The problem with ComfyUI is that it's actually not that comfy and a complex visual programming language with a lot of nodes (that you'll have to install yourself!). For simple image editing like how Photoshop or Canva/AffinityV3 does it it's way too complicated to set up.

Fortunately there are AI tools for the popular open source drawing/painting application Krita that work on Windows and Linux.

Available tools

The following tools may be useful for you:

Tool Description OS
https://github.com/Acly/krita-vision-tools For selecting objects with AI, background removal Windows, Linux
https://github.com/Acly/krita-ai-diffusion Generating AI images, changing specific parts of an image (inpainting), extending images (outpainting), ... Windows, Linux, macOS (?)

Installing Krita

  • For Windows: just get the Setup from their official website
  • For Linux: use the Flatpak if possible (if you are using Ubuntu, look up how to enable Flatpak)

Tip: You can change Krita's language by via Settings > Switch Application Language

Installing Vision Tools

  1. Download the vision tools from the GitHub link
  2. Navigate to Tools > Scripts > Import Python Plugin from File ...
  3. Select the downloaded ZIP file
  4. Restart Krita

image.png

Add additional background removal models

The vision tools come only with a small background removal model pre-installed. It's recommended to also download the other models:

  1. Go to https://huggingface.co/Acly/BiRefNet-GGUF/tree/main
  2. Download the full model *-F16.gguf and the dynamic model *-dynamic-F16.gguf
  3. Open the Background Removal tools (you can search through commands by pressing Ctrl+Enter)
  4. Click the small folder icon to open the models folder
  5. Copy the additional models into this folder

image.png

Installing AI Diffusion

  1. Like with the Vision Tools, download the ZIP plugin and run Tools > Scripts > Import Python Plugin from File ...
  2. Open the AI Docker by navigating to Settings > Dockers > AI Image Generation (you can only enable the docker if you have an image opened)
  3. Click the Configure button in the docker
  4. Just select "Local Managed Server"
  5. Select everything except the "IP Adapter" entries (installation is broken for me)
  6. Let it install by clicking the "Install" button. Ensure that you'll have enough space for the models (it's very very large!)

image.png

image.png