mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 15:00:23 +00:00
Add block swap for uncond (neg) for sample images
This commit is contained in:
@@ -665,6 +665,7 @@ def denoise(
|
||||
|
||||
# compute whether to apply classifier-free guidance based on current timestep
|
||||
if current_timestep[0] < cfg_trunc_ratio:
|
||||
model.prepare_block_swap_before_forward()
|
||||
noise_pred_uncond = model(
|
||||
img,
|
||||
current_timestep,
|
||||
|
||||
Reference in New Issue
Block a user