diff options
author | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-05-22 16:09:49 +0000 |
---|---|---|
committer | Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> | 2023-05-22 16:09:49 +0000 |
commit | 65a87ccc9bf92a0fd24a453e2837dd2d19bbf5ce (patch) | |
tree | 1ce058a02f99c2f2592891ce53384d4447133140 | |
parent | 302d95c72697ecaf436445817f4676e70ba68f20 (diff) | |
download | stable-diffusion-webui-gfx803-65a87ccc9bf92a0fd24a453e2837dd2d19bbf5ce.tar.gz stable-diffusion-webui-gfx803-65a87ccc9bf92a0fd24a453e2837dd2d19bbf5ce.tar.bz2 stable-diffusion-webui-gfx803-65a87ccc9bf92a0fd24a453e2837dd2d19bbf5ce.zip |
Add error information for recursion error
-rw-r--r-- | modules/sd_samplers_kdiffusion.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/sd_samplers_kdiffusion.py b/modules/sd_samplers_kdiffusion.py index ba0cf08e..e2f18b54 100644 --- a/modules/sd_samplers_kdiffusion.py +++ b/modules/sd_samplers_kdiffusion.py @@ -272,6 +272,12 @@ class KDiffusionSampler: try:
return func()
+ except RecursionError:
+ print(
+ 'rho>5 with polyexponential scheduler may cause this error.'
+ 'You should try to use smaller rho instead.'
+ )
+ return self.last_latent
except sd_samplers_common.InterruptedException:
return self.last_latent
|