The rise of AI models for content generation has been meteoric. Practical scenarios for using AI in everyday work are emerging alongside sample applications. Highlights include online services or Photoshop’s AI tools for advanced photo editing. However, not everyone wants to pay a subscription fee. We’ll explore what the open-source graphics editor Krita lets users achieve with free local AI models and how to run them on a gaming graphics card.
How to install it?
In the Configure Image Diffusion panel, you have three options to choose from – Local Managed Server, Custom Server, and the default Online service setting. We will want to run it locally, the AI model will run on the GPU. You can also choose your own server in the settings if you are already using Comfy UI, we will leave it to the plugin to download and run ComfyUI itself.
By default, it is installed in the C:\users\%UserProfile%\AppData\Roaming\krita\ai_diffusion\server folder. You can leave it as it is, I’ll put it in the folder where Krita is extracted. It’s quicker to access than if it’s buried somewhere within applications in the user profile, and it can come in handy when adding more models, for example.
Next, we’ll select GPU acceleration – Use CUDA (NVIDIA GPU) in the drop-down list and add other items. For starters, it’s a good idea to enable Stable Diffusion XL, which is more hardware-intensive but supports image generation at resolutions up to 1024×1024 pixels and is better at interpreting text input, generating details, anatomy and complex scenes, while the classic Stable Diffusion 1.5 is trained on 512×512 pixel images.
There are various dependencies between the items, they are interrelated and it is possible that if you do not select the correct ones, some functions will not be available or will not work as they should. I started out with a few items, but as I gradually tried different features and poked around the AI Image Generation dock options, I couldn’t find some features and found some that didn’t work as they should. I didn’t have time to figure out which components I needed for which functions, so I ended up installing them all. Take into account that in the latest plugin version 1.29.0 this means downloading about 46 GB of data.
ComfyUI, which takes care of all the smart features, has the necessary files for Python in its folder, on which it runs and starts automatically with Krita. Once Krita is running, you can verify the functionality of ComfyUI by opening a web browser and entering the ip address 127.0.0.1:8188 in the address bar. It should open the local server and display the ComfyUI GUI, to which the Krita plugin then feeds the queued tasks.
I will add a brief indicative description of all items from the component list as generated by ChatGPT 4o:
Core Components
- Python:
- Provides the basic functionality to run the server and plugin in Krita.
- ComfyUI:
- A framework for running generative AI. Must be installed for everything to work.
- Custom Nodes:
- Allows you to add custom modules and extensions to ComfyUI.
- Control Nodes:
- These nodes are needed for functions such as ControlNet or other input/output functions.
Workloads
- Here you can choose whether to use Stable Diffusion 1.5 or Stable Diffusion XL.
- SDXL provides better output quality, but requires more computing performance.
- SD 1.5 is faster and less demanding, but the quality may be slightly lower.
Recommended Checkpoints
- Serenity (SD1.5 – Photography):
- Optimized for photorealistic outputs.
- DreamShaper (SD1.5 – Artwork):
- Suitable for artistic illustrations.
- Flat2D AnimeMerge (SD1.5 – Cartoon/Anime):
- Specialized in generating anime and cartoon styles.
- RealVisc (SDXL – Photography):
- Photorealistic outputs for SDXL.
- ZavyChroma (SDXL – Artwork):
- Focused on artistic and stylized generation.
- Pixelwave (SDXL – Artwork):
- Stylized generation with an emphasis on retro or pixel art.
Upscalers (Super-Resolution)
- HAT GAN Super-Resolution (Quality):
- Increasing resolution with an emphasis on fine details.
- Real HAT GAN Super-Resolution (Sharper):
- Improves sharpness when upscaling images.
Control Extensions for SD 1.5
- ControlNet Scribble:
- It converts sketches into detailed images.
- ControlNet Line Art:
- Allows you to generate based on line drawings.
- ControlNet Soft Edge:
- Works with blurred edges for more realistic results.
- ControlNet Canny Edge:
- Uses edge detection for accurate generation.
- ControlNet Depth:
- Generation using depth maps.
- ControlNet Normal:
- Works with normal maps for textures and surfaces.
- ControlNet Pose:
- Generate characters according to specific poses.
- ControlNet Segmentation:
- Splitting the image into parts, such as backgrounds and objects.
- ControlNet Stencil:
- It uses stencils to control the results, which you can use to generate shapes and patterns on certain parts of the image
- ControlNet Hand Refiner:
- Improves the quality of hands in generated images, which AI models have problems with
- IP-Adapter Face (SD1.5):
- It transfers facial features to the output.
Control Extensions for SD XL
- ControlNet Universal (XL):
- Universal support for various inputs (depth, lines, sketches).
- IP-Adapter Face (XL):
- Similar to the SD1.5 version, but optimized for SDXL.
You can let the AI explain the items in more detail yourself, just ask a question in some of the common AI chat clients. You’ll also find your way around with the help of the freely available ones, you can still ask for details and the answer will point you to other resources.
⠀










