Skip to content

Install Guide

John-Henry Lim edited this page Nov 2, 2022 · 21 revisions

This guide is primarily written for Windows users. However, development is done on a (Gentoo) Linux laptop, so Linux users should have a smooth setup.

NOTE: Even if you have used a another/previous Krita plugin, you must follow Installing the Extension below. Our APIs are very unlikely to be compatible.

Installing AUTOMATIC1111's Fork

Follow the corresponding installation guide from AUTOMATIC1111's wiki:

Installing the Extension

Download or clone this repository https://github.com/Interpause/auto-sd-paint-ext into the extensions folder within AUTOMATIC1111's stable-diffusion-webui repository. Make sure to add --api to COMMANDLINE_ARGS in webui-user.bat or webui-user.sh.

Afterwards, double click webui-user.bat as per normal to run it.

Plugin Installation

Download Krita and launch it.

Find the pykrita folder

On the menubar, go to Settings > Manage Resources....

On the popup, click Open Resource Folder. Take note of the pykrita folder located inside (or create it if it doesn't exist).

Install the plugin

The plugin consists of the krita_diff folder and krita_diff.desktop file located in stable-diffusion-webui\extensions\auto-sd-paint-ext\frontends\krita. To install the plugin, copy them into the pykrita folder from earlier.

(Alternative) Symlink install

A symlink is a shortcut to a file or folder that redirects to the real file or folder when read by an application, allowing for automatic updates to the plugin. However, symlinks require admin permissions and are fragile on Windows.

Open an admin prompt and run the following commands, adjusting the file/folder paths based on your own configuration:

cd <location-of-pykrita-folder>
mklink /j krita_diff <location-of-auto-fork>\stable-diffusion-webui\extensions\auto-sd-paint-ext\frontends\krita\krita_diff
mklink krita_diff.desktop <location-of-auto-fork>\stable-diffusion-webui\extensions\auto-sd-paint-ext\frontends\krita\krita_diff.desktop

Enabling the plugin

  1. Restart Krita.
  2. On the menubar, go to Settings > Configure Krita...
  3. On the left sidebar, go to Python Plugin Manager.
  4. Look for Stable Diffusion Plugin and tick the checkbox.
  5. Restart Krita again for changes to take effect.

The SD Plugin docked window should appear on the left of the Krita window. If it does not, look on the menubar under Settings > Dockers for SD Plugin.

Next Steps

Clone this wiki locally