Acly / krita-ai-diffusion
- четверг, 23 ноября 2023 г. в 00:00:10
Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
Features | Download | Installation | Video | Screenshots
Generate images from within Krita with minimal fuss: Select an area, push a button, and new content that matches your image will be generated. Or expand your canvas and fill new areas with generated content that blends right in. Text prompts are optional. No tweaking required!
This plugin seeks to provide what "Generative Fill/Expand" do in Photoshop - and go beyond. Adjust strength to refine existing content (img2img) or generate images from scratch. Powerful customization is available for advanced users.
Local. Open source. Free.
Features are designed to fit an interactive workflow where AI generation is used as just another tool while painting. They are meant to synergize with traditional tools and the layer stack.
The plugin comes with an integrated installer for the Stable Diffusion backend.
apt install python3-venv
)To run locally a powerful graphics card with at least 6 GB VRAM is recommended. Otherwise generating images will take very long!
NVIDIA GPU | supported via CUDA |
AMD GPU | supported via DirectML on Windows, ROCm on Linux (only custom server) |
CPU | supported, but very slow |
Cloud GPU | supported, rent a GPU on an hourly basis, see below |
pykrita
folder.
C:\Users\<user>\AppData\Roaming\krita\pykrita
~/.local/share/krita/pykrita
You can also rent a GPU instead of running locally. In that case, step 5 is not needed. Instead use the plugin to connect to a remote server.
There is a step by step guide on how to setup cloud GPU on runpod.io or vast.ai.
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.
You can hover over the grayed out plugin name to get the error message in a tooltip. The most common reason is that a source package was used for installation (eg using GitHub's Code ‣ Download ZIP). It is automatically generated by GitHub and does not contain everything. Please try with a release package.
If you encounter an issue, it can help to check the log files. They are in the .logs
folder inside the plugin installation folder. You can also locate the folder with the "View log files" link in the plugin's connection settings. Please attach logs when you open an Issue on GitHub!
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
Using ControlNet to guide image generation with a crude scribble
Modifying the pose vector layer to control character stances (Click for video)
Upscaling to improve image quality and add details