the Stable Diffusion Plugin for Photoshop and Krita
current release: v0.0.2-alpha2
release date: 01.11.2022
A Plugin for Photoshop and Krita that can interface with AUTOMATIC1111s Stable Diffusion WebUI.
You will not need to switch to another WebUI or modify your existing installation in any way.
Changelog:
alpha2:
-Fix candidate for Krita showing an empty UI because of a bad request in the plugin
v0.0.2:
-Rewrote the UI renderer, it should not error anymore because users have different Extensions/Scripts installed to their WebUI
In case you haven’t already, install AUTOMATIC1111s Stable Diffusion WebUI
Wait for it launch before you start Krita or Photoshop, or the plugin panel will be empty.
https://internationaltd.github.io/defuser/build/defuser-pykrita.zip
Tools - Scripts - Import Python Plugin from Web
and paste the linkSettings - Dockers - Defuser
and start proomting!Tools - Scripts - Import Python Plugin from file
C:\Windows\System32\drivers\etc\hosts
in a text editor and add the line 127.0.0.1 localhost.tech
this is a workaround for an Adobe Photoshop bug that prevents connections to localhost from plugins on some machines. Sorry!Plugins - Defuser
and start proomting!%APPDATA%\Adobe\UXP\Plugins\External\defuser_0.0.2
Open %APPDATA%\Adobe\UXP\PluginsInfo\v1\PS.json
and
this is .json format, so:
]}
at the end of the file, then paste {"hostMinVersion":"22.0.0","name":"Defuser","path":"$localPlugins\\External\\defuser_0.0.2","pluginId":"defuser","status":"enabled","type":"uxp","versionString":"0.0.2"}
{"plugins":[{"hostMinVersion":"22.0.0","name":"Defuser","path":"$localPlugins\\External\\defuser_0.0.2","pluginId":"defuser","status":"enabled","type":"uxp","versionString":"0.0.2"}]}
To test the installation, we are going to create any size document, then an exactly 512x512 selection, and finally generate a txt2img output. Here is how to do that:
Defuser will take care of requirements automatically for you. For example, it creates selections and inpainting masks and it will switch to an appropriate tool.
Defuser will never stretch or crop generated images. This means that if you press generate when no selection is made, Defuser defaults to a 512x512 selection. If you want a different aspect ratio, make a rough selection and press generate to snap to the nearest increment quickly. You don’t need to waste time trying to be pixel-perfect yourself. This goes for the other modes as well.
If you want to transfer styles (e.g. turn a pencil sketch into watercolor), you should run img2img “stacked”. Don’t try to achieve a perfect result in one run. Use results as further input. Decrease noise_scale with subsequent generations, or the end result will diverge too much from the original composition.
After generation, the current mask is hidden. If you unhide the !sdmask
layer, it will be reused.
Result quality varies wildly based on the masked_content
parameter.
Experiment with different brush hardnesses and mask_blur
settings.
If your input image borders the canvas edge, your result might seem cropped. You need to move the resulting layer, or the canvas, to get the result into frame. This behavior will be improved in a future release.
output/txt2img-images
for txt2img by default. This can be useful if you need the prompt from an old output but you renamed the layer/merged it with something else.