Skip to content

Releases: Acly/krita-ai-diffusion

Version 1.17.1

27 Apr 12:23
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.17.1.zip

Sampler preset changes

There was quite a bit of confusion about the changes to samplers in the last release, and a few bugs too. This release will hopefully improve the situation!

The preset name now contains both:

  • a descriptive part (default, fast, realtime, ...) which indicates what it might be good for and how it differs from other choices, especially for users who are not familiar with Stable Diffusion
  • the technical implementation name of the sampler (Euler A, DPM++ 2M, DPM++ SDE, ...) which you may see mentioned when downloading custom checkpoints

There are two new entries:

  • Alternative - Euler Ancestral with normal scheduler and step count
  • Lightning Merge - Euler Ancestral with uniform scheduler and low CFG/steps

Related changes:

  • "Special" Lora (LCM, Lightning, FaceID) are no longer filtered out, but a warning will be displayed if they are added manually #640
    • These are added automatically when needed, eg. when choosing a sampler or control layer that requires them
  • Improved error messages for samplers which require a Lora
  • Don't auto-convert previous sampler settings to a preset that requires a Lora
  • Fixed sampler preset choice not being persisted in some cases #649
  • Custom preset link will now open the folder if the preset file cannot be opened
  • Added link to format documentation in the custom preset JSON

Please check out the documentation on the Wiki for more information about Samplers and how to customize them!

Other changes

  • Revert to previous detection model for poses to avoid issues on some installations #630
  • Fixed add pose skeleton button not being disabled when the selected layer is not a vector layer #658

Version 1.17.0

19 Apr 08:32
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.17.0.zip

Style Transfer

There are two new Control layer modes: Style and Composition.

release-1 17 0-style-ui

They work similar to the "Reference" mode: the selected image acts as a sort of inspiration, and doesn't have to match resolution or aspect ratio of your canvas. The difference is that Style will extract mostly art style and colors, while Composition focuses on the structural layout.

Composition Style Result
release-1 17 0-composition release-1 17 0-style release-1 17 0-style-result
release-1 17 0-composition release-1 17 0-style2 release-1 17 0-style2-result

Works best with SDXL. Probably need a different approach for SD1.5.

Important

If you are using a custom ComfyUI installation, make sure to update. Latest version of ComfyUI_IPAdapter_plus is required.

LoRA Search and Auto-Completion

Redesigned the LoRA selection into a searchable drop-down.
release-1 17 0-lora-settings

There is also an option to filter via folders (applies to all added LoRA).
release-1 17 0-lora-folders

And adding LoRA in the text prompt will auto-complete now.
release-1 17 0-lora-prompt

Control Presets

This release adds Presets for some Control layer and Sampler settings. The idea is to have a lean, easy to use UI where users can switch between a few recommended configuration options. Presets can be customized for those who want full control (but it may require editing a text file).

release-1 17 0-control

Control layer strength is now adjusted with a single slider, from low influence to very strong effect. This will influence the weight as well as the start and end of the interval in which ControlNet or IP-Adapter are applied.

release-1 17 0-control-expanded

If you want you can also modify those individually. The presets are stored in presets/control.json, it is recommended to copy it to the user data folder before editing.

Sampler Presets

Samplers can now be fully configured by choosing from a few pre-defined options.

release-1 17 0-samplers

As before, the number of steps and guidance strength can be tweaked in the UI. New: you can edit the presets or add your own, and choose from any sampler / scheduler which ComfyUI supports.

release-1 17 0-samplers-expanded

Other Changes

  • Added option to enable Self-Attention Guidance (advanced checkpoint settings) (by @FeepingCreature)
    • This may improve image quality at the cost of some performance
  • Fixed LoRA in the text prompt not being stored to history #586
  • Fixed error when restoring settings to default values
  • Fixed crash when toggling Live Record without generating an image #579
  • Fixed error when result images matched the thumbnail size #605
  • Correctly update the selected style when the filter changes #564
  • Removed [Live] prefix from generated layer name and added the seed value #613
  • Use PNG as the format for saving result images from the history #582 #627
  • Allow multi-selection when saving images from result history #626
  • Added fallback for WEBP images on Linux without the required Qt5 package #582
  • Improve robustness of rename during installation on Windows #515
  • Make errors during process job attach non-fatal on Windows #616
  • Improved folder selection for server installation #620

Version 1.16.1

31 Mar 09:15
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.16.1.zip

Bugfixes

  • Fixed change of connection URL in the UI not having any effect #533
  • Fixed inpaint mode chosen at 100% strength affecting masks even in refine mode (0-99% strength) #535
  • Stop live mode polling after the document is closed (previously lead to errors and inconsistent state after opening a new document) #538
  • Fixed LoRA not working when added in the text prompt #540
  • Fixed selection not working properly in live mode #539
  • Re-enabled IP-Adapter with DirectML backend (seems to be working again) #552
  • Improved error reporting for missing checkpoints and other models #553 #550 #541 #537

Cloud

  • Added SDXL
  • Fixed "Remove object" not working

Version 1.16.0

27 Mar 19:57
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.16.0.zip

Important

This release includes an upgrade for ComfyUI and introduces new models.

  • If you are using the managed server, the installer will do an upgrade.
  • If you are using a custom ComfyUI installation, please update to latest versions!

Per-pixel Strength Masks

This release slightly changes how selections masks are interpreted.
Previously they would be either 1 (selected) or 0 (not selected), with smooth transitions at the edges for blending.
Now you can create masks with any values in between to customize how much the image changes per pixel.

Original Mask Result
release-1 16 0-diff-original release-1 16 0-diff-mask release-1 16 0-diff-spooky

"spooky dense forest"

For example, if you paint a selection mask 50% white in a certain region, and set strength to 80%, the actual strength in that region will be half of 80% = 40%. This is also known as "Differential Diffusion" or "Soft Inpainting". You can allow more drastic changes in some regions and only small adjustments in others - with smooth transitions - in one generation.

Original Mask Result
release-1 16 0-diff2-original release-1 16 0-diff2-mask release-1 16 0-diff2-acid

"toxic waste, acid lake"

Hint: enable global selection masks in Krita to easily edit selection masks.

Streamlined Cloud GPU

I've been working on a streamlined online service for those who don't want to install or lack the hardware. It is not complete, but can be tested already. Please look for more information and leave your feedback in this discussion!

Note: Local offline will always be the option with the greatest flexibility. But it's not available to everyone, and sometimes convenient can be nice?

Sponsors

This project is happily eating all of my time, and it feels like it is only getting hungrier! 😵

So I've had to think about sustainability. Cloud GPU is part of that, but it's an experiment and won't appeal to everyone. If you like the project, please consider donating via GitHub ♥. Much appreciated!

Other Changes

  • Live mode: check for changes on client side and only send a request to ComfyUI when there are actual changes #414 #509 #512
  • Use depth-anything to generate depth images for depth control layers
  • Use more recent DWPose models to estimate pose for pose control layers
  • Added EasyNegative as negative embedding (not required, but installed by default if SD1.5 is selected for managed installs)
  • Added Flat2D-Animerge checkpoint to installer as optional download
  • Support SDXL Tile ControlNet as Blur control layer and when upscaling #473
    • This is an optional model for now, it will be used if installed
  • Changed sampling to use a minimum of 4 steps even at low strength (related: #483)
    • Was 6 before for LCM, no minimum for other samplers
    • Will never inrease step count beyond what is configured as total steps
    • Tiled upscaling now uses same step scaling as other modes
  • Added option to filter out built-in styles
  • Added link to the folder where settings are stored in the UI
  • Added custom hotkey to toggle previews #426
    • While the preview browser has focus, press space bar to toggle
    • You can also assign a custom hotkey in Krita's hotkey settings which will work without focus (not set by default)
  • Scroll to bottom of history when switching canvas or opening documents
  • Updated to latest IP-Adapter "V2" nodes #524 #531
  • Fixed LoRA path splitting when server runs on Windows and client on Linux/Mac #477
  • Removed --force-fp16 as default option for MPS (macOS only) #474
  • The download_models.py script can now pre-fetch control pre-processor models

Version 1.15.0

27 Feb 00:12
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.15.0.zip

Discard Images from History

release-1 15 0-discard-image

For those images we'd prefer to have never happened. You can multi-select with Ctrl/Shift!

New location for User Data

User files such as settings, custom styles and logs are no longer inside the plugin installation directory. This has some advantages:

  • Easier to do a clean update/reinstall of the plugin without losing your settings
  • Allows system-wide plugin installation with per-user settings

The settings are now located in a subfolder of Krita's user data. Typical paths:

  • Windows: C:\User\<your-name>\AppData\Roaming\krita\ai_diffusion
  • Linux: ~/.local/share/krita/ai_diffusion
  • MacOS: ~/Library/Application Support/krita/ai_diffusion

Depending on your system the location may be different. You can find it via the "View Logs" link in the settings.

Experimental Features

Lightning

SDXL Lightning is a way to speed up generation of images with SDXL, similar to LCM and Turbo. Instructions and Discussion

Animation Workspace

This version contains a first draf for working with animations. Currently it's just a UI for batch processing, but may become a place to integrate animation checkpoints in the future. Overview and Discussion

Other Changes

  • Read style folders recursively #346
  • Potential workaround for hang when using "Fill" on some CPUs #401
  • Fixed issues with styles when there is no server connection
  • Improved error message for some common server startup failures

Version 1.14.1

18 Feb 17:47
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.14.1.zip

Changes

  • Improved speed at which preview results are displayed when working with complex documents #391
  • Replaced latent upscale during 2-pass generation (was only used for small factors, now uses image upscaling) #407
  • Fixed server process not being terminated when Krita is closed in some cases (eg. crash) #196 #360 #390
  • Fixed backup folders being copied instead of moved during server upgrade
  • Fixed some spin boxes not working properly (eg. line count settings) #393
  • Fixed inconsistencies in server UI, it should now report state (started, stopped, connected...) correctly
  • Hotkey to start generation now also works for Live mode #414
  • Set initial default grow/feather to 5% for new installs

Version 1.14.0

08 Feb 12:50
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.14.0.zip

Important

This release includes an upgrade for ComfyUI and introduces new models.

  • If you are using the managed server, the installer will do an upgrade.
  • If you are using a custom ComfyUI installation, find the new requirements at the bottom.

Selection Fill & Expand for Stable Diffusion XL

While SD XL has been supported for a long time, its capabilities to seamlessly fill selections were very limited. SD 1.5 almost always had superior results. This release adds the inpaint model developed by Fooocus to dramatically improve results. All SD XL checkpoints, including custom downloads, automatically profit from the change.

The new model will be downloaded as part of the "Stable Diffusion XL" workload, make sure to select it in the installer if you want to make use of it!

New Inpaint Modes

This release introduces more nuanced actions for filling and expanding areas of the image.

release-1 14 0-inpaint-menu

This nudges generation into a certain direction depending on what you want to do. Works especially well for SD XL, but also improves consitency for SD 1.5. Some examples are below, you can read the full documentation here.

Selection Result
Fill fill-mask fill-result
Expand release-1 14 0-inpaint-expand-mask release-1 14 0-inpaint-expand-image
Add Content release-1 14 0-inpaint-add-mask release-1 14 0-inpaint-add-image
Remove Content release-1 14 0-inpaint-remove-mask release-1 14 0-inpaint-remove-image
Replace Background release-1 14 0-inpaint-replace-mask release-1 14 0-inpaint-replace-image

Discussions and Wiki

Feel free to ask questions, discuss ideas, and share workflows, in the Discussions.

Documentation can now be found in the Wiki. It's a work in progress, contributions are appreciated! (I believe not everybody can edit yet, make a post if you have some content.)

Other Changes

  • Added option to enqueue new generations in front so they will run first #380 (by @daniel-richter)
  • Fixed crash after using flatten image on a preview layer #381
  • Fixed error when using HAT upscale models at certain resolutions #378
  • Fixed LoRA not being applied when in a subfolder and connecting to Linux server from Windows #307 #375
  • Fixed control layer generate button being visible for "Blur" mode (it does not need generation) #369
  • Linux: Prioritize Python 3.11/3.10 over other installed versions (not all dependencies support 3.12 yet) #374
  • Load checkpoint first in upscale workflow to enable caching #377
  • Fixed error during installation because of encoding issues #370
  • Added file extensions to document annotations (makes extracting them from .kra files easier)

New requirements for custom ComfyUI

As usual you can use the download script to fetch models, and the full list is here.

Version 1.13.1

25 Jan 23:48
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.13.1.zip

Changes

  • Fixed no checkpoints found after installation #358
    • Replaced civitai.com downloads which started to require a login
  • Removed old location for IP-Adapter models which no longer works #352
    • Only affects installations originally done by a relatively old version of the plugin
    • See #352 on how to migrate them manually, otherwise the models will be re-downloaded to the new location
  • Improved downscaling of control layer images, especially Canny edge #333

Version 1.13.0

19 Jan 19:47
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.13.0.zip

Important

This release includes an upgrade for ComfyUI and custom nodes.

  • If you are using the managed server, the installer will do an upgrade.
  • If you are using a custom ComfyUI installation, please update to latest versions!

Face Reference

You can now provide a reference image of a face and generate images with close likeness.

release-1 13 0-face-ui

Generate entirely new images with flexibility to change style, lighting, etc:

release-1 13 0-face-generate

Hint: Use a portrait as reference which includes hair and shoulders. Size of the reference image doesn't have to match your canvas, it's okay to leave transparent areas.

It also works for changing faces in existing images:

release-1 13 0-face-inpaint

Installation:

  • Managed server: Choose the IP-Adapter Face option from Control Extension packages. Available for both SD 1.5 and SD XL.
  • Custom ComfyUI: See IP-Adapter-FaceID for models and follow the FaceID section of ComfyUI_IPAdapter_plus. I'm testing with FaceID Plus v2 models, but others may work. Installation of insightface is required.

Hand Refiner

Stable Diffusion often struggles with generating hands. Manually sketching hand posture can often be the most reliable solution.

release-1 13 0-hands-ui

This release adds the Hand control layer as an alternative. It automatically detects hands in the image or selected area and
tries to generate a plausible depth map. This can then be used to guide generation.

release-1 13 0-hands

Hints and limitations:

  • Works for photos and realistic shading. Fails to detect hands in flat-shaded cartoon artwork.
  • You can use selections to detect specific hands!
  • Refining hands requires sufficient resolution to work with.
  • High strength leads to plastic look and color shifts, try around 50%.
  • Hands can still be frustrating...

Installation:

  • Managed server: Choose ControlNet Hand Refiner from Control Extensions packages.
  • Custom ComfyUI: See HandRefiner for model and latest comfyui_controlnet_aux for preprocessor.

Live Animation Painting (experimental)

There is a new record button in the Live tab which imports results as animation. Maybe it's useful?

LiveRecordingL.mp4

High resolution version on YouTube

Other Changes

  • Added option to save the last ComfyUI prompt for debug and experimentation purposes (Interface > Dump Workflow)
  • Reduced default max pixel count for "high" performance profile
  • Fixed wrong clip-skip setting applied to SDXL checkpoints (Styles > Checkpoint configuration (advanced) > Clip Skip) #323
    • Existing custom styles are not automatically modified, you may want to revise them
  • Line art control layer is no longer excluded from generation image input
    • The lines themselves will become part of your image - if you don't want this hide the layer
  • Fixed wrong image size when height is not a multiple of 8 but width is #306
  • Fixed some UI update issues (initial upscale model, canvas change)
  • Reorganized model search paths and put them all in one place #304
  • Disabled IP-Adapter for AMD/DirectML (it appears to be broken) #335
  • Tweaked thumbnail spacing in relation to UI font size #278

Version 1.12.0

05 Jan 21:50
Compare
Choose a tag to compare

Download krita_ai_diffusion-1.12.0.zip

Important

This release introduces new upscale models (Omni-SR):

  • If you are using the managed server, the installer will download the new models
  • If you are using a custom ComfyUI installation, download them here and place them in models/upscale_models

Persistence

release-1 12 0-persistence

The following information will now be stored in .kra documents:

  • Current workspace, prompt, strength, etc.
  • Current control layer setup
  • History of generated results

How much of the history is stored can be configured in performance settings. Keep in mind that increasing the limit also makes saving and opening documents slower! The history is compressed, so the default values are actually enough for a lot of images.

Queue Popup Menu

release-1 12 0-queue-menu

The queue button menu has been extended:

  • Batches is like hitting the "Generate" button multiple times (but slightly faster)
  • Seed options have been moved here (previously were in settings)
  • Cancel buttons to manage the job queue can still be found here

Preview Context Menu

release-1 12 0-context-menu

Previews thumbnails now have a context menu button. Alternatively you can always open the menu with right-click. Here you can:

  • Copy generation parameters, such as prompt, strength and seed
    • This will directly place them in the UI and overwrite the previous setup.
  • Quickly save the generated result to disk
    • It will be stored as WEBP in the same location as your document.

Resolution Performance Options

release-1 12 0-resolution-control

Hardware limitations are still a big problem, especially when working on a high-resolution canvas. This release provides some more options to avoid running into out-of-memory situations:

  • Resolution Multiplier will scale down the resolution which images are generated at relative to the canvas resolution.
    • For example, setting it to 0.5 will generate images at half the resolution
    • To fit into your image, results are automatically upscaled with a fast AI upscaler
  • Maximum Pixel Count allows you to set a resolution limit.
    • It works similar to the multiplier, but only kicks in when you cross a certain threshold
    • This is enabled by default now! The limit depends on your GPU.

Checkpoint Resolution Override

Stable Diffusion checkpoints have a "preferred" resolution, and the plugin will automatically take it into account. For most checkpoints this is detected automatically and nothing has to be changed!

In some cases a checkpoint may be trained with a different resolution than its base model suggests - for cases where this cannot be detected you can now set it manually. See the example below for the recommended way to setup SDXL Turbo.

release-1 12 0-preferred-resolution

Other Changes

  • Disabled area conditioning when a control layer is active - this could lead to bad inpaint results when using text prompt & control layers
  • Styles are now sorted alphabetically
  • History: create new section when negative prompt changes
  • History: add strength value and create new section when it changes
  • History: disable item dragging (by @vtvrv)
  • Fixed result thumbnails not scaling with Windows display scaling #278
  • Fixed crash when setting the upscale factor to a non-0.5 increment #264
  • Fixed division by zero when all "Image" control layer (IP-adapter) weights are 0 #271
  • Fixed history UI not being updated when old images are pruned
  • Crop control layer images before sending them to the server