Unverified Commit 64da5c46 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

Merge pull request #8931 from LipeCarmel/patch-1

loopback.py Colab compatibility and bug fix
parents a0d07fb5 5c7ab90a
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -54,14 +54,11 @@ class Script(scripts.Script):
                return strength

            progress = loop / (loops - 1)
            match denoising_curve:
                case "Aggressive":
            if denoising_curve == "Aggressive":
                strength = math.sin((progress) * math.pi * 0.5)

                case "Lazy":
            elif denoising_curve == "Lazy":
                strength = 1 - math.cos((progress) * math.pi * 0.5)

                case _:
            else:
                strength = progress

            change = (final_denoising_strength - initial_denoising_strength) * strength