mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i (#664)
This commit is contained in:
@@ -134,6 +134,9 @@ def sample_hacked(model, noise, positive, negative, cfg, device, sampler, sigmas
|
||||
if step == refiner_switch_step and current_refiner is not None:
|
||||
refiner_switch()
|
||||
if callback is not None:
|
||||
# residual_noise_preview = x - x0
|
||||
# residual_noise_preview /= residual_noise_preview.std()
|
||||
# residual_noise_preview *= x0.std()
|
||||
callback(step, x0, x, total_steps)
|
||||
|
||||
samples = sampler.sample(model_wrap, sigmas, extra_args, callback_wrap, noise, latent_image, denoise_mask, disable_pbar)
|
||||
|
||||
Reference in New Issue
Block a user