Krita Stable Diffusion Plugin for Windows, Mac, Linux & How to Install?
Last Updated February 15, 2023
If you’re an artist or designer, you may already be familiar with Krita – the open-source painting program that’s taken the digital art world by storm. But even if you’re a seasoned Krita user, there’s always something new to discover. That’s why we’re excited to introduce you to the Krita Stable Diffusion plugin, the latest addition to Krita’s ever-expanding toolkit.
With the Krita Stable Diffusion plugin, you can create a soft, dreamy look in your digital artwork. The plugin is just one of the many tools and features that make Krita a popular choice for artists and designers worldwide. And best of all, it’s constantly evolving, thanks to Krita’s developers’ hard work and dedication.
In this article, we’ll walk you through installing the Krita Stable Diffusion plugin on Windows, Mac, and Linux operating systems. Whether you’re a seasoned pro or just starting with Krita, our step-by-step guide will help you make the most of this powerful program and take your digital art to the next level.
Before we start, let’s go through some basic definitions of Krita & Stable Diffusion.
What is Krita?
Krita is open-source software for digital painting, meaning its source code is freely available to anyone who wants to use it. Digital artists, such as painters, illustrators, and animators, will find this program invaluable due to its extensive tools and options. Brushes, vector tools, layer masks, filters, and color management options are just a few of Krita’s many powerful capabilities.
This software may be utilized on several platforms, including Windows, macOS, and Linux to make illustrations, comics, concept art, matte paints, and textures. The software’s compatibility with numerous image file types, such as PSD, JPEG, PNG, BMP, and GIF, increases its usefulness in various contexts.
Krita was developed by Krita Foundation, a nonprofit group dedicated to free software. The organization’s mission is to provide everyone with access to high-quality, user-friendly digital painting tools.
What is Stable Diffusion?
The Stable Diffusion text-to-image model using deep learning was released in 2022. Although it can be used for various tasks, including inpainting, outpainting, and creating image-to-image translations directed by text prompts, its primary usage is to generate detailed visuals conditioned on text descriptions.
The CompVis group at LMU Munich created the latent diffusion model, or deep generative neural network, known as Stable Diffusion.
With assistance from EleutherAI and LAION, Stability AI, CompVis LMU, and Runway collaborated to release the model. In an investment round led by Lightspeed Venture Partners and Coatue Management in October 2022, Stability AI raised US$101 million.
Krita Stable Diffusion Plugin: How to Install Stable Diffusion Krita Plugin
Get Krita Stable Diffusion Plugin From GitHub Repository
One of the easiest destinations to download Krita stable diffusion plugins is the GitHub repository.
A user at GitHub who goes by the name Sygil Dev has developed the plugin from scratch and made the source code and other relevant materials for free to the users.
You can download Stable Diffusion Krita Plugin here. The package contains scripts, modules, models, templates, and other information pertaining to the plugin.
The user has advised that any users should try to use the most recent webui plugin, as it appears to support the most recent webui features and is routinely updated.
Based on this repository, a straightforward interface was created: https://github.com/AUTOMATIC1111/stable-diffusion-webui
Stable Diffusion Krita Plugin from GitHub Repository: How to Install
Please perform a clean install if you upgraded from a conda-based version. You must set it up independently of webui. Please try erasing the repo and reinstalling it if you experience any issues after doing an update.
- Go to Settings – Manage Resources… – Open Resource Folder in Krita.
- Enter the pykrita folder (or create it if it is not already there).
- Copy the krita plugin folder’s contents from this repository into the pykrita folder on your Krita computer. In the pykrita folder, you should have the krita diff folder and krita diff.desktop file.
- Relaunch Krita
- Enter Settings and select “Configure Krita” and “Python Plugin Manager.”
- “Krita Stable Diffusion Plugin” should be activated.
- Relaunch Krita
To use this, you must have an NVidia video card, Python, and Git installed.
Stable Diffusion model checkpoint, a sizable file storing the neural network weights, is required. It is available from the following sources:
- official download
- file storage
Please take note that RealESRGAN models are not ESRGAN models and are thus incompatible. RealESRGAN should not be downloaded. Keep RealESRGAN away from the folder containing ESRGAN simulators. Your gratitude is greatly appreciated.
Automatic installation and start-up
- Install Python 3.10.6, making sure to check the “Add Python to PATH” box. You must set up this particular version.
- model.ckpt should be installed and placed next to webui.bat in the webui directory.
- Put GFPGANv1.3.pth next to webui.bat in the webui directory (optional).
- Open Windows Explorer and execute webui-user.bat. Run it as a standard user rather than the administrator. Webui-user.bat should only be executed from this repository.
Installation for Linux
Run webui.sh from this clone of this git
“git clone https://github.com/sddebz/stable-diffusion-krita-plugin.gitcd stable-diffusion-krita-plugin./webui.sh”
Use options like —medvram or —lowvram if your available VRAM is less than 8GB. For more details, see the parent repository’s guide:
For further information, see https://github.com/AUTOMATIC1111/stable-diffusion-webui. Although the code in this repository has been slightly modified, most options, including those for minimal VRAM usage, should still work.
How to use Krita Stable Diffusion Plugin?
Just execute it after you enter something in the prompt. Only the region you choose will be used.
- Ctrl + Alt + Q for txt2img
- Ctrl + Alt + W for img2img
- Ctrl + Alt + E for sd upscale
- Ctrl + Alt + R for inpainting
- Ctrl + Alt + T to just upscale, no SD
Krita Stable Diffusion Inpainting Upscale plugin
It employs “SD upscale,” which divides the original image into 512×512 overlapping tiles. After each tile has undergone SD processing, it is combined into a single image. The original image resolution has a big impact on this algorithm. Try to utilize photos with a maximum size of 1408×960 for sensible processing time (max size for 6 tiles).
With this option, you ought to utilize a low denoising strength. Think 0.1-0.2.
Krita Stable Diffusion Inpainting plugin
I’m not sure if it works properly right now. Please try webui if you believe it does not.
It necessitates the use of both a picture and a mask. This plugin employs the selected layer as a mask. Simply add a new layer and paint with a white brush. This section will be painted.
High denoising strength is required for inpainting to work well. Think 0.6-0.8.
Krita Stable Diffusion Outpainting plugin
Your outcome can appear cropped if your input image touches the canvas edge. To fit the outcome in the frame, you must move the resulting layer or the canvas. A later release will provide enhanced behavior.
Krita Stable Diffusion Image resizing plugin
The upscale plugin resizes source photos in all modes except sd. The first image is downsized to meet the SD requirement of 512x(512 + 64*k). The second resulting image is resized. That implies you should be able to utilize the plugin with any size image or selection. However, larger image sizes will typically have fewer downscaling artefacts.
The Lanczos method is used internally by the plugin for both downscaling and upscaling.
Get Stable Diffusion Krita Plugin From Krita Artists
Krita Artists is a community forum of Krita and Graphic Design users. A user named w4ffl35 has released her own Krita Stable Diffusion Plugin for Windows and Linux, allowing you to use Stable Diffusion in Krita without having to install any prerequisites.
Some of the plugin’s features
- There is no need to install all of Stable Diffusion’s dependencies.
- You don’t even need Python Non-blocking image generation; simply queue images and continue working in Krita while they produce in the background.
- Toggle NSFW and watermark
Get the download and Complete Installation Instructions here at GitHub.
Installation Guide for Windows Users
- Download the most recent version.
- Unzip it and then double-click install.bat
- Follow the instructions.
- Turn on the plugin (see below for more info)
- Start the server.
Installation Guide for Linux Users
- Download the most recent version.
- Zip it up tar krita-stable-diffusion multifile-0.2.2.tar.xz
- Navigate to the appropriate directory. cd plugin_dist/0.2.2/krita-stable-diffusion_multifile-0.2.2
- Run the installation script./install
- If you don’t already have it, follow the directions to get it (requires hugging face account)
Enable Stable Diffusion Krita Plugin
- Launch Krita.
- Click Settings > Krita Configuration…
- Scroll down to Python Plugin Manager in the sidebar and click it.
- Look for the Krita Stable Diffusion Plugin in the right panel and check the box next to it.
- Click the OK button.
- Relaunch Krita.
If you encounter any issues in the installation once you have downloaded the plugin from GitHub then head over to FAQ to get all the answers you need.
What is krita stable diffusion automatic1111 ?
Automatic1111 is a user at GitHub who have developed a browser interface based on Gradio library for Stable Diffusion.
Download the Code here at GitHub.
Does krita have Stabilizer?
Yes, Krita has a stabilizer feature called “Brush Stabilizers”. This feature helps artists create smooth and precise lines by reducing the impact of shaky hands while drawing.
Krita’s Brush Stabilizers feature offers four different modes, including “Basic”, “Pulley”, “Exponential”, and “Lazy”, each providing a different level of stabilizing effect. Additionally, you can adjust the stabilization strength and set custom presets to meet your specific needs.
To enable the Brush Stabilizers feature in Krita, you can select a brush and then find the “Stabilizer” option in the tool options docker. From there, you can adjust the settings according to your preferences.
Does Krita support plugins?
Yes, Krita supports plugins, which can be used to extend its functionality and add new features. Krita provides a plugin manager that allows you to easily install, manage, and update plugins.
To access the plugin manager, go to “Settings” in the main menu, and then select “Configure Krita”. In the dialog that appears, select “Python Plugin Manager” from the left sidebar. From there, you can browse available plugins, install and uninstall them, and configure their settings.
What are Krita plug ins?
Krita plugins are add-ons that extend Krita’s functionality by providing additional features or tools to help artists and designers create digital art. Krita plugins are based on Python scripting and can be developed by anyone with knowledge of Python.
Krita plugins can add new brush presets, color palettes, and other resources to Krita, as well as provide new features and tools that enhance the painting and drawing experience. Some examples of Krita plugins include:
- Brush packs: Krita’s brush engine is powerful, allowing users to create own brushes or import brushes developed by other artists. Many brush packs are offered as plugins that are simple to install, allowing users to quickly extend their brush collection.
- Filters and effects: Krita plugins can add image processing filters and effects, which can be used to tweak colours, add special effects, or modify images in numerous ways.
- Krita comes with a robust set of animation tools, but some plugins can expand the animation capabilities even further by introducing additional features and tools.
- Krita’s user interface is highly customisable, and several plugins enable users to create unique toolbars or add additional menus to the interface.
- Scripting: Krita includes Python scripting, and plugins can supply additional scripts that automate common operations or bring new capabilities to the application.
In conclusion, Krita users who are digital artists and designers will find the Stable Diffusion plugin to be a powerful and practical tool. Users may quickly make slick, stylish, and organic strokes with this plugin, boosting their digital artwork. By following the instructions on this page, the plugin may be quickly installed and is compatible with Krita on Windows, Mac, and Linux. Users can choose from a variety of tools and features to personalize their painting and drawing experience thanks to Krita’s robust support for plugins. Users can easily download and install the numerous plugins that the Krita community has produced, allowing them to modify the software to meet their unique requirements.
Table of Contents
Thanks for Reading!
Tech Content Writer
Danesh is a scientist and a content writer with more than 2 years of experience. He is also a published author of a science fiction children’s book titled Imaginary Tales.
AI has always been in his mind and soul ever since the cult classic movie 2001: A Space Odyssey inspired him to become a writer. Seeing a lot of stigma and misconceptions on AI, he has decided to found Ava Machina as an Hub for people from different backgrounds to gather and learn about AI through expert insights as well as redirecting them to the right source.