Merge pull request #3715 from shwang95/master

Fix error caused by EXIF transpose when using custom scripts
master
AUTOMATIC1111 3 years ago committed by GitHub
commit bb21a4cb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -81,7 +81,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
mask = None
# Use the EXIF orientation of photos taken by smartphones.
image = ImageOps.exif_transpose(image)
if image is not None:
image = ImageOps.exif_transpose(image)
assert 0. <= denoising_strength <= 1., 'can only work with strength in [0.0, 1.0]'

Loading…
Cancel
Save