Skip to main content
PatchModelAddDownscale (Kohya Deep Shrink) implements the Kohya Deep Shrink technique by applying downscaling and upscaling operations to specific blocks in a model. It reduces the resolution of intermediate features during processing and then restores them to their original size, which can improve performance while maintaining quality. The node allows precise control over when and how these scaling operations occur during the model’s execution.

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.

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