Skip to content

Commit

Permalink
controlnet integration tests num_inference_steps=3 (huggingface#2672)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamberman authored Mar 14, 2023
1 parent ee71d9d commit 279f744
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def test_canny(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/bird_canny.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -349,7 +349,7 @@ def test_depth(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/stormtrooper_depth.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -376,7 +376,7 @@ def test_hed(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/man_hed.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -403,7 +403,7 @@ def test_mlsd(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/room_mlsd.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -430,7 +430,7 @@ def test_normal(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/cute_toy_normal.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -457,7 +457,7 @@ def test_openpose(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/pose.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -484,7 +484,7 @@ def test_scribble(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/bag_scribble.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand All @@ -511,7 +511,7 @@ def test_seg(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/house_seg.png"
)

output = pipe(prompt, image, generator=generator, output_type="np")
output = pipe(prompt, image, generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand Down Expand Up @@ -581,7 +581,7 @@ def test_pose_and_canny(self):
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/pose.png"
)

output = pipe(prompt, [image_pose, image_canny], generator=generator, output_type="np")
output = pipe(prompt, [image_pose, image_canny], generator=generator, output_type="np", num_inference_steps=3)

image = output.images[0]

Expand Down

0 comments on commit 279f744

Please sign in to comment.