Nov 10 08:01:46 ubuntu-gpu bash[10008]: 2023-11-10 08:01:46,692 - ControlNet - INFO - Loading model from cache: control_v11f1p_sd15_depth [cfd03158]
Nov 10 08:01:46 ubuntu-gpu bash[10008]: *** Error running process: /home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py
Nov 10 08:01:46 ubuntu-gpu bash[10008]: Traceback (most recent call last):
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/modules/api/api.py", line 98, in decode_base64_to_image
Nov 10 08:01:46 ubuntu-gpu bash[10008]: image = Image.open(BytesIO(base64.b64decode(encoding)))
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/venv/lib/python3.10/site-packages/PIL/Image.py", line 3305, in open
Nov 10 08:01:46 ubuntu-gpu bash[10008]: raise UnidentifiedImageError(msg)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7feb38a568e0>
Nov 10 08:01:46 ubuntu-gpu bash[10008]: The above exception was the direct cause of the following exception:
Nov 10 08:01:46 ubuntu-gpu bash[10008]: Traceback (most recent call last):
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/modules/scripts.py", line 619, in process
Nov 10 08:01:46 ubuntu-gpu bash[10008]: script.process(p, *script_args)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 977, in process
Nov 10 08:01:46 ubuntu-gpu bash[10008]: self.controlnet_hack(p)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 966, in controlnet_hack
Nov 10 08:01:46 ubuntu-gpu bash[10008]: self.controlnet_main_entry(p)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 696, in controlnet_main_entry
Nov 10 08:01:46 ubuntu-gpu bash[10008]: input_image, image_from_a1111 = Script.choose_input_image(p, unit, idx)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 560, in choose_input_image
Nov 10 08:01:46 ubuntu-gpu bash[10008]: image = image_dict_from_any(unit.image)
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 105, in image_dict_from_any
Nov 10 08:01:46 ubuntu-gpu bash[10008]: image['image'] = external_code.to_base64_nparray(image['image'])
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 195, in to_base64_nparray
Nov 10 08:01:46 ubuntu-gpu bash[10008]: return np.array(api.decode_base64_to_image(encoding)).astype('uint8')
Nov 10 08:01:46 ubuntu-gpu bash[10008]: File "/home/waura/stable-diffusion-webui/modules/api/api.py", line 101, in decode_base64_to_image
Nov 10 08:01:46 ubuntu-gpu bash[10008]: raise HTTPException(status_code=500, detail="Invalid encoded image") from e
Nov 10 08:01:46 ubuntu-gpu bash[10008]: fastapi.exceptions.HTTPException
### Additional information
The issues output same error message.
https://github.com/Mikubill/sd-webui-controlnet/issues/1058
https://github.com/Mikubill/sd-webui-controlnet/issues/1001
https://github.com/Mikubill/sd-webui-controlnet/issues/950
Is there an existing issue for this?
What happened?
I use version 05ef0b1c.
I send POST requests to /sdapi/v1/txt2img . The request body is as follow.
input_image file is as follow.
I generate the Base64 text as follow.
After accept the POST request, the webui output the following logs.
Full stack trace is the following section.
Steps to reproduce the problem
please see the above description.
What should have happened?
No error occurs and the specified input_image is used.
Commit where the problem happens
webui: v1.6.0 controlnet: 05ef0b1c.
What browsers do you use to access the UI ?
No response
Command Line Arguments
List of enabled extensions
Console logs