stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: AttributeError: 'NoneType' object has no attribute 'split'

Open JohnTeddy3 opened this issue 3 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

After I upgrade to the 2.0 UI, the inpaint mask function cannot be used. Any model will report the same error. AttributeError: 'NoneType' object has no attribute 'split'

Steps to reproduce the problem

Sorry, I'm not a programmer, I updated the UI program normally.

What should have happened?

Will output normally

Commit where the problem happens

img2img inpaint mask

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

LatentDiffusion: Running in v-prediction mode
DiffusionWrapper has 865.91 M params.
Loading weights [2c02b20a] from C:\stable-diffusion-webui\models\Stable-diffusion\768-v-ema.ckpt
Applying cross attention optimization (Doggettx).
Model loaded.
Traceback (most recent call last):
  File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict
    output = await app.blocks.process_api(
  File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 980, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 891, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1374, in preprocess
    mask_im = processing_utils.decode_base64_to_image(mask)
  File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 45, in decode_base64_to_image
    content = encoding.split(";")[1]
AttributeError: 'NoneType' object has no attribute 'split'

Additional information, context and logs

No response

JohnTeddy3 avatar Dec 02 '22 08:12 JohnTeddy3

Getting the same issue

ptppan avatar Feb 21 '23 21:02 ptppan

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Feb 21 '23 21:02 JohnTeddy3

Getting the same issue

tuchang avatar Mar 10 '23 07:03 tuchang

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Mar 10 '23 07:03 JohnTeddy3

Was this solved? I cannot inpaint either.

3dcinetv avatar Apr 08 '23 01:04 3dcinetv

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Apr 08 '23 01:04 JohnTeddy3

With the latest version, the startup arg "--opt-split-attention-v1" was causing the same issue. I removed it from the startup and I can use inpaint now. Don't know the reason tho 🤷‍♂️

fernandesdiego avatar Jul 31 '23 14:07 fernandesdiego

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Jul 31 '23 14:07 JohnTeddy3

Closing as stale.

catboxanon avatar Aug 26 '23 09:08 catboxanon

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Aug 26 '23 09:08 JohnTeddy3

You can find the solution here, so why don't you try it?

I modified ControlNet to v1.1.14, the latest version, and it became unusable due to an error. ControlNetを最新版のv1.1.14にしたらエラーが出て使えなくなったので改修した

takengo avatar Sep 18 '23 13:09 takengo

么,收到此条消息,证明我的代理已经帮我收到来信啦。

JohnTeddy3 avatar Sep 18 '23 13:09 JohnTeddy3