Skip to main content
PatchModelAddDownscale (Kohya Deep Shrink) applies the Kohya Deep Shrink technique to a model by shrinking intermediate features at a chosen block and then scaling them back to their original size. The shrinking only happens during a selected part of the denoising process, which can reduce processing cost while keeping the final result close to the original.

Inputs

The downscale patch is applied only when the current denoising step falls within the range defined by start_percent and end_percent, and only at the block selected by block_number. When downscale_after_skip is enabled, the patch is applied after the skip connection; when disabled, it is applied before the skip connection. Features are scaled back up to their original size afterwards, but only when the current feature size no longer matches the size recorded before downscaling. The parameters block_number, start_percent, end_percent, and downscale_after_skip are marked as advanced options in the node interface.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): aa9434a521ab585b290a3bd8db804469bd3bb02103a0d830b6be6eb8e8c26a5e