Skip to content

Commit

Permalink
fix(tests): add release test for partial blending
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 9, 2023
1 parent d794835 commit 312d8d2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/scripts/test-refs/blend-512-muffin-black-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions api/scripts/test-refs/blend-512-muffin-blend-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions api/scripts/test-refs/blend-512-muffin-white-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions api/scripts/test-refs/mask-blend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions api/scripts/test-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(
),
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",
Expand All @@ -171,13 +171,22 @@ def __init__(
),
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",
],
),
]


Expand Down

0 comments on commit 312d8d2

Please sign in to comment.