Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
17.05k stars 1.96k forks source link

[Bug]: SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid) #1559

Closed highjohnconquer closed 11 months ago

highjohnconquer commented 1 year ago

Is there an existing issue for this?

What happened?

controlnet refuses to see any images in control net

Steps to reproduce the problem

  1. Place Image in Control Net
  2. COntrol Net reads image
  3. Generate
  4. ...SyntaxError: not a TIFF file (header b"b'Exif\x" not valid)

What should have happened?

Txt2Img or Img2Img should have recognized that the image was a jpeg and not a tiff and still worked?

I am having this problem on my google colab too.

Commit where the problem happens

webui: [5ab7f213] controlnet: [960d7221]

What browsers do you use to access the UI ?

No response

Command Line Arguments

set COMMANDLINE_ARGS= --autolaunch --opt-sdp-attention --api

List of enabled extensions

image

Console logs

Already on 'master'
D       extensions/put extensions here.txt
M       webui-user.bat
Your branch is up to date with 'origin/master'.
venv "E:\Documents\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Installing requirements

Installing None
Installing opencv-contrib-python...

Fetching updates for midas...
Checking out commit for midas with hash: 1645b7e...

Installing requirements for scikit_learn

current transparent-background 1.2.3

Installing requirements 1 for Infinite-Zoom

Installing requirements for Prompt Gallery

Installing SD-CN-Animation requirement: scikit-image

Requirement already satisfied: send2trash~=1.8 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (1.8.0)
Requirement already satisfied: dynamicprompts[attentiongrabber,magicprompt]~=0.27.0 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (0.27.0)
Requirement already satisfied: pyparsing~=3.0 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.0.9)
Requirement already satisfied: jinja2~=3.1 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.1.2)
Requirement already satisfied: transformers[torch]~=4.19 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.25.1)
Requirement already satisfied: MarkupSafe>=2.0 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from jinja2~=3.1->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.0.1)
Requirement already satisfied: pyyaml>=5.1 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (6.0)
Requirement already satisfied: tqdm>=4.27 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.65.0)
Requirement already satisfied: packaging>=20.0 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (23.0)
Requirement already satisfied: filelock in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.11.0)
Requirement already satisfied: regex!=2019.12.17 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2023.3.23)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.13.3)
Requirement already satisfied: requests in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.25.1)
Requirement already satisfied: numpy>=1.17 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.23.5)
Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.13.4)
Requirement already satisfied: torch!=1.12.0,>=1.7 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.0.0+cu118)
Requirement already satisfied: typing-extensions>=3.7.4.3 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from huggingface-hub<1.0,>=0.10.0->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.5.0)
Requirement already satisfied: sympy in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.11.1)
Requirement already satisfied: networkx in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.1)
Requirement already satisfied: colorama in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from tqdm>=4.27->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.4.6)
Requirement already satisfied: idna<3,>=2.5 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2022.12.7)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.0.0)
Requirement already satisfied: mpmath>=0.19 in e:\documents\ai\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.3.0)
sd-dynamic-prompts installer: running 'E:\Documents\AI\stable-diffusion-webui\venv\Scripts\python.exe' -m pip install 'send2trash~=1.8' 'dynamicprompts[attentiongrabber,magicprompt]~=0.27.0'

...

Installing imageio-ffmpeg requirement for depthmap script
Installing pyqt5 requirement for depthmap script

Stop Motion CN - Running Preload
Set Gradio Queue: True

Installing requirements for TemporalKit extension

Launching Web UI with arguments: --autolaunch --opt-sdp-attention --api
E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release
  warnings.warn(
Stop Motion CN - Running Preload
Set Gradio Queue: True
No module 'xformers'. Proceeding without it.
reading checkpoint metadata: E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\Unknown\aZovyaPhotoreal_v1VAE.safetensors: AssertionError
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 60, in __init__
    self.metadata = read_metadata_from_safetensors(filename)
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 230, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\Unknown\aZovyaPhotoreal_v1VAE.safetensors is not a safetensors file

reading checkpoint metadata: E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\Unknown\aZovyaRPGArtistTools_v3.safetensors: AssertionError
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 60, in __init__
    self.metadata = read_metadata_from_safetensors(filename)
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 230, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\Unknown\aZovyaRPGArtistTools_v3.safetensors is not a safetensors file

reading lora E:\Documents\AI\stable-diffusion-webui\models\Lora\zombie_v1.3.safetensors: JSONDecodeError
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts\..\..\..\extensions-builtin/Lora\lora.py", line 84, in __init__
    self.metadata = sd_models.read_metadata_from_safetensors(filename)
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 232, in read_metadata_from_safetensors
    json_obj = json.loads(json_data)
  File "C:\Python310\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python310\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 67 (char 66)

reading lora E:\Documents\AI\stable-diffusion-webui\models\Lora\ZuluPunkAI.safetensors: JSONDecodeError
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\extensions\a1111-sd-webui-locon\scripts\..\..\..\extensions-builtin/Lora\lora.py", line 84, in __init__
    self.metadata = sd_models.read_metadata_from_safetensors(filename)
  File "E:\Documents\AI\stable-diffusion-webui\modules\sd_models.py", line 232, in read_metadata_from_safetensors
    json_obj = json.loads(json_data)
  File "C:\Python310\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python310\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 66 (char 65)

Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
[-] ADetailer initialized. version: 23.6.1.post0, num models: 8
Error loading script: ddetailer.py
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "E:\Documents\AI\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\Documents\AI\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 458, in <module>
    from mmdet.core import get_classes
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\mmdet\__init__.py", line 3, in <module>
    import mmengine
ModuleNotFoundError: No module named 'mmengine'

[AddNet] Updating model hashes...
  0%|                                                                                            | 0/3 [00:00<?, ?it/s]Failed to read model file E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-additional-networks\models/lora\lycoris\DudouHoodies.safetensors: cannot mmap an empty file
100%|██████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 3000.22it/s]
[AddNet] Updating model hashes...
  0%|                                                                                            | 0/3 [00:00<?, ?it/s]Failed to read model file E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-additional-networks\models/lora\lycoris\DudouHoodies.safetensors: cannot mmap an empty file
100%|██████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1499.75it/s]
2023-06-04 18:16:10,117 - ControlNet - INFO - ControlNet v1.1.217
ControlNet preprocessor location: E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-06-04 18:16:10,237 - ControlNet - INFO - ControlNet v1.1.217
Hypernetwork-MonkeyPatch-Extension found!
Error loading script: patch_fixer.py
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "E:\Documents\AI\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd_auto_fix\scripts\patch_fixer.py", line 16, in <module>
    from modules.sd_hijack_inpainting import do_inpainting_hijack, should_hijack_inpainting
ImportError: cannot import name 'should_hijack_inpainting' from 'modules.sd_hijack_inpainting' (E:\Documents\AI\stable-diffusion-webui\modules\sd_hijack_inpainting.py)

Loading weights [428d778605] from E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\M4RV3LSDUNGEONSNEWV25_mD25.safetensors
Creating model from config: E:\Documents\AI\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: E:\Documents\AI\stable-diffusion-webui\models\VAE\kl-f8-anime2.ckpt
Applying scaled dot product cross attention optimization.
Textual inversion embeddings loaded(174): 4d0t4k3ch, 4l3xj0n35, 7dirtywords, _stardeaf-greenmageddon_, advntr, ajiona, alinebernardes, angry512, arcan3, arcan3v2, art by Smoose2, ashleypink, Asian-Less-Neg, bad-artist, bad-artist-anime, bad-hands-5, bad_prompt, bad_prompt_version2, badhandv4, beauty512, blowjobpose, c0183rt, cardstyle15, charturnerv2, cloudport, clrs, corneo_paizuri, corneo_pov_anal, corneo_spitroast, d354nt15, dangercrow, danperk, DarkFantasy, darkskin_style, defiance512, dichen, easynegative, emb-daisy, eonn, fantasycharacter, flame_surge_style, flower_style, fs2023, gh15l41n3, ghst-3000, gigaschizonegs, goldstyle, grin512, gustavedore, happy512, honeygold, hoodnude, hoppagames, hro, kiranoir, kiranoir_2, koh_miakhalifa, laugh512, laurenmcclain, leafskin, m4arj0r13t4y10rgr33n, magicalinterior, marsattacks3, MCHasDex, misslexi, neg_anime512, neg_facelift512, neg_realism512, nervous512, ng_deepnegative_v1_75t, nianacci, No512-neg, pinup512, PlanIt, Portrait512, pppascal, render512, rfktr_bwmnga, RFKTR_plastic, rico_tubbs, rosalinenobodysd15, sad512, sarahbanks, selfie512, shock512, silky-folds, skaijackson, smile512, stormimaya, Style-Autumn, style-bridal, Style-Cupola, Style-Cupola-neg, Style-Empire, style-empire, Style-Empire-neg, style-empire-neg, Style-Glass, Style-Glorious, Style-Glorious-neg, Style-Hamunaptra, style-hamunaptra, Style-HeavyMetal, Style-Hoggy, Style-Hoggy-neg, Style-Lab, Style-LostTemple, Style-LostTemple-neg, Style-Micro, Style-Moana, Style-Moana-neg, Style-NebMagic, Style-Necromancy, Style-Neeko, Style-Nippon, style-paintmagic, Style-Petal, Style-Petal-neg, style-princess, Style-Psycho, style-psycho, Style-Psycho-neg, Style-Renaissance, Style-Renaissance-neg, style-rustmagic, Style-SwampMagic, style-swirlmagic, style-sylvamagic, Style-Water, Style-Winter, Style-Winter-neg, style_solarpunk-neg, tarot512, useembeddingname, useembeddingname-neg, v3rh03v3n, verybadimagenegative_v1.3, was-dieselpunk, was-mecha, was-steampunk, was-transformers, wholesomegrandpas, wholesomegrannies, æoèÉê╟ - Futaba Anzu, æüùM - Sayu, æπ-Åùÿ╗ - Noshiro-maid, è├ëJ - GanYu, ê└öÉ - Amber, ë┬ê╪ - Formidable, ë┬Σ╗ - Klee, ìÅÉ░ - Keqing, î╙ôì - Hu Tao, ïvè≥öE - Kuki Shinobu, ôVÿTÉ»-è°σ┌ - Sirius-cheongsam, öhû╓ - Paimon, ömöm¥f - Barbara, ö£¢P - Mona, ö¬ÅdÉ_Äq - Yae Miko, ûéÅùöVù╖ - ê╔σQ¢P - Majo no Tabitabi - Elaina, 云堇 - Yun Jin, 寒蝉鸣泣之时 - 羽入 - Higurashi When They Cry Hou - Hanyuu, 岛风 - Shimakaze, 无职转生 - 洛琪希 - Mushoku Tensei - Roxy, 无职转生 - 洛 琪希-无帽子 - Mushoku Tensei - Roxy-no hat, 物语系列 - 忍野忍 - Monogatari - Shinobu Oshino, 独角兽 - Unicorn, 独角兽-校服 - Unicorn-JK, 珊瑚宫心海 - Sangonomiya Kokomi, 纳西妲 - Nahida, 萤 - Lumine, 诺艾尔 - Noelle, 贝尔法斯特 - Belfast,  间谍过家家 - 约尔·福杰 - SPY×FAMILY - Yor Forger, 间谍过家家 - 阿尼亚·福杰 - SPY×FAMILY - Anya Forger
Textual inversion embeddings skipped(17): 0xisometric, SD2_NSFWifier, 21charturnerv2, Art by Smoose-22, dangerowl, DrD_PNTE768, emb_blck_egpt_v4-1000, hellscape768, InkPunk768, inksketchcolour1subtle, Lavastyle, pinup768, rzminjourney, SDA768, UlukInkSketch2, WEBUI, Zootopiav4
Model loaded in 4.1s (load weights from disk: 0.2s, create model: 0.4s, apply weights to model: 1.4s, apply half(): 0.7s, load VAE: 0.2s, move model to device: 0.9s, load textual inversion embeddings: 0.2s).
INFO:     Started server process [37952]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:5173 (Press CTRL+C to quit)
INFO:     127.0.0.1:58715 - "GET / HTTP/1.1" 200 OK
LAB
add tab
*Deforum ControlNet support: enabled*
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 46.7s (import torch: 4.9s, import gradio: 1.2s, import ldm: 0.5s, other imports: 0.9s, load scripts: 12.0s, load SD checkpoint: 4.4s, create ui: 21.8s, gradio launch: 0.8s).

Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
                                  Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
Traceback (most recent call last):
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess
    return preprocess(inputs)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image
    exif = img.getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif
    return super().getexif()
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif
    self._exif.load(exif_info)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load
    self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
  File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in __init__
    raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid)
100%|████████████████████████████████████████████████████████████████████████████████| 100/100 [00:11<00:00,  9.08it/s]
100%|████████████████████████████████████████████████████████████████████████████████| 100/100 [00:40<00:00,  2.49it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 200/200 [01:18<00:00,  2.56it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 200/200 [01:18<00:00,  2.53it/s]

Additional information

No response

huchenlei commented 1 year ago

This does not seem like a controlnet bug. Can you disable all extensions other than ControlNet and see if the problem persists?

highjohnconquer commented 1 year ago

turned off everything. still having the same problem.

highjohnconquer commented 1 year ago

Already on 'master' D extensions/put extensions here.txt M webui-user.bat Your branch is up to date with 'origin/master'. venv "E:\Documents\AI\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89 Installing requirements

Launching Web UI with arguments: --autolaunch --opt-sdp-attention --api E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\pkg_resources__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release warnings.warn( Stop Motion CN - Running Preload Set Gradio Queue: True No module 'xformers'. Proceeding without it. Error loading script: image_reward.py Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\Documents\AI\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 879, in exec_module File "", line 1017, in get_code File "", line 947, in source_to_code File "", line 241, in _call_with_frames_removed File "E:\Documents\AI\stable-diffusion-webui\scripts\image_reward.py", line 14

45d635454c2dbc31fa1e75a4ccb8dd1031183974 ^ SyntaxError: invalid decimal literal

2023-06-06 18:05:54,907 - ControlNet - INFO - ControlNet v1.1.217 ControlNet preprocessor location: E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads 2023-06-06 18:05:55,069 - ControlNet - INFO - ControlNet v1.1.217 Loading weights [428d778605] from E:\Documents\AI\stable-diffusion-webui\models\Stable-diffusion\M4RV3LSDUNGEONSNEWV25_mD25.safetensors Creating model from config: E:\Documents\AI\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: E:\Documents\AI\stable-diffusion-webui\models\VAE\kl-f8-anime2.ckpt Applying scaled dot product cross attention optimization. Textual inversion embeddings loaded(174): 4d0t4k3ch, 4l3xj0n35, 7dirtywords, stardeaf-greenmageddon, advntr, ajiona, alinebernardes, angry512, arcan3, arcan3v2, art by Smoose2, ashleypink, Asian-Less-Neg, bad-artist, bad-artist-anime, bad-hands-5, bad_prompt, bad_prompt_version2, badhandv4, beauty512, blowjobpose, c0183rt, cardstyle15, charturnerv2, cloudport, clrs, corneo_paizuri, corneo_pov_anal, corneo_spitroast, d354nt15, dangercrow, danperk, DarkFantasy, darkskin_style, defiance512, dichen, easynegative, emb-daisy, eonn, fantasycharacter, flame_surge_style, flower_style, fs2023, gh15l41n3, ghst-3000, gigaschizonegs, goldstyle, grin512, gustavedore, happy512, honeygold, hoodnude, hoppagames, hro, kiranoir, kiranoir_2, koh_miakhalifa, laugh512, laurenmcclain, leafskin, m4arj0r13t4y10rgr33n, magicalinterior, marsattacks3, MCHasDex, misslexi, neg_anime512, neg_facelift512, neg_realism512, nervous512, ng_deepnegative_v1_75t, nianacci, No512-neg, pinup512, PlanIt, Portrait512, pppascal, render512, rfktr_bwmnga, RFKTR_plastic, rico_tubbs, rosalinenobodysd15, sad512, sarahbanks, selfie512, shock512, silky-folds, skaijackson, smile512, stormimaya, Style-Autumn, style-bridal, Style-Cupola, Style-Cupola-neg, Style-Empire, style-empire, Style-Empire-neg, style-empire-neg, Style-Glass, Style-Glorious, Style-Glorious-neg, Style-Hamunaptra, style-hamunaptra, Style-HeavyMetal, Style-Hoggy, Style-Hoggy-neg, Style-Lab, Style-LostTemple, Style-LostTemple-neg, Style-Micro, Style-Moana, Style-Moana-neg, Style-NebMagic, Style-Necromancy, Style-Neeko, Style-Nippon, style-paintmagic, Style-Petal, Style-Petal-neg, style-princess, Style-Psycho, style-psycho, Style-Psycho-neg, Style-Renaissance, Style-Renaissance-neg, style-rustmagic, Style-SwampMagic, style-swirlmagic, style-sylvamagic, Style-Water, Style-Winter, Style-Winter-neg, style_solarpunk-neg, tarot512, useembeddingname, useembeddingname-neg, v3rh03v3n, verybadimagenegative_v1.3, was-dieselpunk, was-mecha, was-steampunk, was-transformers, wholesomegrandpas, wholesomegrannies, æoèÉê╟ - Futaba Anzu, æüùM - Sayu, æπ-Åùÿ╗ - Noshiro-maid, è├ëJ - GanYu, ê└öÉ - Amber, ë┬ê╪ - Formidable, ë┬Σ╗ - Klee, ìÅÉ░ - Keqing, î╙ôì - Hu Tao, ïvè≥öE - Kuki Shinobu, ôVÿTÉ»-è°σ┌ - Sirius-cheongsam, öhû╓ - Paimon, ömöm¥f - Barbara, ö£¢P - Mona, ö¬ÅdÉ_Äq - Yae Miko, ûéÅùöVù╖ - ê╔σQ¢P - Majo no Tabitabi - Elaina, 云堇 - Yun Jin, 寒蝉鸣泣之时 - 羽入 - Higurashi When They Cry Hou - Hanyuu, 岛风 - Shimakaze, 无职转生 - 洛琪希 - Mushoku Tensei - Roxy, 无职转生 - 洛 琪希-无帽子 - Mushoku Tensei - Roxy-no hat, 物语系列 - 忍野忍 - Monogatari - Shinobu Oshino, 独角兽 - Unicorn, 独角兽-校服 - Unicorn-JK, 珊瑚宫心海 - Sangonomiya Kokomi, 纳西妲 - Nahida, 萤 - Lumine, 诺艾尔 - Noelle, 贝尔法斯特 - Belfast, 间谍过家家 - 约尔·福杰 - SPY×FAMILY - Yor Forger, 间谍过家家 - 阿尼亚·福杰 - SPY×FAMILY - Anya Forger Textual inversion embeddings skipped(16): SD2_NSFWifier, 21charturnerv2, Art by Smoose-22, dangerowl, DrD_PNTE768, emb_blck_egpt_v4-1000, hellscape768, InkPunk768, inksketchcolour1subtle, Lavastyle, pinup768, rzminjourney, SDA768, UlukInkSketch2, WEBUI, Zootopiav4 Model loaded in 5.3s (load weights from disk: 0.2s, create model: 0.5s, apply weights to model: 1.4s, apply half(): 0.8s, load VAE: 0.3s, move model to device: 0.9s, load textual inversion embeddings: 1.3s). Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 27.6s (import torch: 5.5s, import gradio: 1.3s, import ldm: 0.5s, other imports: 1.0s, setup codeformer: 0.1s, load scripts: 2.7s, load SD checkpoint: 5.7s, create ui: 10.3s, gradio launch: 0.4s). Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid) Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid) Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid) Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid) Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid) Traceback (most recent call last): File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1297, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1145, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\Documents\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 109, in svg_preprocess return preprocess(inputs) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1784, in preprocess im = processing_utils.decode_base64_to_image(x) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 49, in decode_base64_to_image exif = img.getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\PngImagePlugin.py", line 1040, in getexif return super().getexif() File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1454, in getexif self._exif.load(exif_info) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3670, in load self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head) File "E:\Documents\AI\stable-diffusion-webui\venv\lib\site-packages\PIL\TiffImagePlugin.py", line 504, in init raise SyntaxError(msg) SyntaxError: not a TIFF file (header b"b'Exif\x" not valid)

Neph0s commented 1 year ago

According to my experience and https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11126, this problem seems to happen because:

the current webui saved some wrong information into the picure. so that it can not be properly read by other functions. In my case, I want to use the picture in ControlNet, and I found that only pictures generated by webui can not be used, other pictures work well. To solve your question, you can simply screenshot your picture to get a copy of it, and try.

It takes me two hours.