diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-02 10:41:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 10:41:35 +0000 |
commit | bb21a4cb35986d95ec63ace48ce13b75a776f5a5 (patch) | |
tree | f5f8e0b45eff327fd8c2a69a8a2e2b9cf85a2fcc | |
parent | e6060a7e6b6ec543511b1aa7fcf05f9789484695 (diff) | |
parent | 5c864be010b42373e51eac4c6869d561adca4202 (diff) | |
download | stable-diffusion-webui-gfx803-bb21a4cb35986d95ec63ace48ce13b75a776f5a5.tar.gz stable-diffusion-webui-gfx803-bb21a4cb35986d95ec63ace48ce13b75a776f5a5.tar.bz2 stable-diffusion-webui-gfx803-bb21a4cb35986d95ec63ace48ce13b75a776f5a5.zip |
Merge pull request #3715 from shwang95/master
Fix error caused by EXIF transpose when using custom scripts
-rw-r--r-- | modules/img2img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index fac010aa..be9f3653 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -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]'
|