From 312d8d251a0918d7e942ece63d0377e580685a65 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Wed, 8 Mar 2023 23:06:52 -0600 Subject: [PATCH] fix(tests): add release test for partial blending --- api/scripts/test-refs/blend-512-muffin-black-0.png | 3 +++ api/scripts/test-refs/blend-512-muffin-blend-0.png | 3 +++ api/scripts/test-refs/blend-512-muffin-white-0.png | 3 +++ api/scripts/test-refs/mask-blend.png | 3 +++ api/scripts/test-release.py | 13 +++++++++++-- 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 api/scripts/test-refs/blend-512-muffin-black-0.png create mode 100644 api/scripts/test-refs/blend-512-muffin-blend-0.png create mode 100644 api/scripts/test-refs/blend-512-muffin-white-0.png create mode 100644 api/scripts/test-refs/mask-blend.png diff --git a/api/scripts/test-refs/blend-512-muffin-black-0.png b/api/scripts/test-refs/blend-512-muffin-black-0.png new file mode 100644 index 00000000..9af7aed2 --- /dev/null +++ b/api/scripts/test-refs/blend-512-muffin-black-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4106859b033cf57d0f2b08c36cff38beb5a67f6e99e2eddefad998223be4182 +size 498897 diff --git a/api/scripts/test-refs/blend-512-muffin-blend-0.png b/api/scripts/test-refs/blend-512-muffin-blend-0.png new file mode 100644 index 00000000..43f669d2 --- /dev/null +++ b/api/scripts/test-refs/blend-512-muffin-blend-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0e2a2cdf8d29c7fb34c8af518ca88d87bc9a52f3ab83b666f25adaeb2aa754c +size 509236 diff --git a/api/scripts/test-refs/blend-512-muffin-white-0.png b/api/scripts/test-refs/blend-512-muffin-white-0.png new file mode 100644 index 00000000..9af7aed2 --- /dev/null +++ b/api/scripts/test-refs/blend-512-muffin-white-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4106859b033cf57d0f2b08c36cff38beb5a67f6e99e2eddefad998223be4182 +size 498897 diff --git a/api/scripts/test-refs/mask-blend.png b/api/scripts/test-refs/mask-blend.png new file mode 100644 index 00000000..a849de0f --- /dev/null +++ b/api/scripts/test-refs/mask-blend.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:615d89fe39e12433d20b40af56f95ebf53d9a164e22e47b71855c3e3cfae0824 +size 28419 diff --git a/api/scripts/test-release.py b/api/scripts/test-release.py index f4454065..cb832a61 100644 --- a/api/scripts/test-release.py +++ b/api/scripts/test-release.py @@ -162,7 +162,7 @@ TEST_DATA = [ ), TestCase( "blend-512-muffin-black", - "blend?prompt=a+giant+pumpkin&seed=0&scheduler=ddim&upscaling=upscaling-real-esrgan-x2-plus&scale=2&outscale=2", + "blend?prompt=a+giant+pumpkin&seed=0&scheduler=ddim", mask="mask-black", source=[ "txt2img-sd-v1-5-512-muffin-0", @@ -171,13 +171,22 @@ TEST_DATA = [ ), TestCase( "blend-512-muffin-white", - "blend?prompt=a+giant+pumpkin&seed=0&scheduler=ddim&upscaling=upscaling-real-esrgan-x2-plus&scale=2&outscale=2", + "blend?prompt=a+giant+pumpkin&seed=0&scheduler=ddim", mask="mask-white", source=[ "txt2img-sd-v2-1-512-muffin-0", "txt2img-sd-v1-5-512-muffin-0", ], ), + TestCase( + "blend-512-muffin-blend", + "blend?prompt=a+giant+pumpkin&seed=0&scheduler=ddim", + mask="mask-blend", + source=[ + "txt2img-sd-v2-1-512-muffin-0", + "txt2img-sd-v1-5-512-muffin-0", + ], + ), ]