Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/huggingface/diffusers into …
Browse files Browse the repository at this point in the history
…release-0-5-1
  • Loading branch information
patrickvonplaten committed Oct 13, 2022
2 parents d5a0f0d + effe9d6 commit 3538e03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ def __call__(
# block images
if any(has_nsfw_concept):
for i, is_nsfw in enumerate(has_nsfw_concept):
images[i] = np.asarray(images_uint8_casted[i])
if is_nsfw:
images[i] = np.asarray(images_uint8_casted[i])

images = images.reshape(num_devices, batch_size, height, width, 3)
else:
Expand Down

0 comments on commit 3538e03

Please sign in to comment.