Merge pull request #8931 from LipeCarmel/patch-1
loopback.py Colab compatibility and bug fix
This commit is contained in:
commit
64da5c46ef
1 changed files with 6 additions and 9 deletions
|
@ -54,14 +54,11 @@ class Script(scripts.Script):
|
||||||
return strength
|
return strength
|
||||||
|
|
||||||
progress = loop / (loops - 1)
|
progress = loop / (loops - 1)
|
||||||
match denoising_curve:
|
if denoising_curve == "Aggressive":
|
||||||
case "Aggressive":
|
|
||||||
strength = math.sin((progress) * math.pi * 0.5)
|
strength = math.sin((progress) * math.pi * 0.5)
|
||||||
|
elif denoising_curve == "Lazy":
|
||||||
case "Lazy":
|
|
||||||
strength = 1 - math.cos((progress) * math.pi * 0.5)
|
strength = 1 - math.cos((progress) * math.pi * 0.5)
|
||||||
|
else:
|
||||||
case _:
|
|
||||||
strength = progress
|
strength = progress
|
||||||
|
|
||||||
change = (final_denoising_strength - initial_denoising_strength) * strength
|
change = (final_denoising_strength - initial_denoising_strength) * strength
|
||||||
|
|
Loading…
Reference in a new issue