Skip to content

Commit

Permalink
fix unit test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Taited committed Aug 9, 2023
1 parent 1334067 commit bc9f677
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_stable_diffusion():
StableDiffuser.text_encoder = dummy_text_encoder()

image = torch.clip(torch.randn((1, 3, 64, 64)), -1, 1)
mask = torch.clip(torch.randn((1, 3, 64, 64)), -1, 1)
mask = torch.clip(torch.randn((1, 3, 64, 64)), 0, 1)

with pytest.raises(Exception):
StableDiffuser.infer('temp', image, mask, height=31, width=31)
Expand Down

0 comments on commit bc9f677

Please sign in to comment.