Better hint for user

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>
This commit is contained in:
Kohaku-Blueleaf 2023-05-23 09:38:30 +08:00 committed by GitHub
parent 403b304162
commit 38aaad654b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,8 +274,9 @@ class KDiffusionSampler:
return func() return func()
except RecursionError: except RecursionError:
print( print(
'rho>5 with polyexponential scheduler may cause this error.' 'Encountered RecursionError during sampling, returning last latent. '
'You should try to use smaller rho instead.' 'rho >5 with a polyexponential scheduler may cause this error. '
'You should try to use a smaller rho value instead.'
) )
return self.last_latent return self.last_latent
except sd_samplers_common.InterruptedException: except sd_samplers_common.InterruptedException: