Skip to content

Commit

Permalink
update pytorch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stax124 committed Nov 26, 2023
1 parent 02e42f1 commit f43bc33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/inference/test_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,18 @@ def test_inpaint(pipe: PyTorchStableDiffusion):
pipe.generate(job)


def test_controlnet(pipe: PyTorchStableDiffusion):
@pytest.mark.parametrize(
"scheduler", [KarrasDiffusionSchedulers.UniPCMultistepScheduler, "dpmpp_2m"]
)
def test_controlnet(pipe: PyTorchStableDiffusion, scheduler):
"Generate an image with ControlNet Image to Image"

job = ControlNetQueueEntry(
data=ControlNetData(
image=generate_random_image_base64(),
prompt="This is a test",
id="test",
scheduler=KarrasDiffusionSchedulers.UniPCMultistepScheduler,
scheduler=scheduler,
controlnet="lllyasviel/sd-controlnet-canny",
width=128,
height=128,
Expand Down

0 comments on commit f43bc33

Please sign in to comment.