Skip to content

[Bug]: Cannot do inpainting #17041

Description

@Rabcor

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Nothing happens.

Steps to reproduce the problem

Try to do inpainting on blackwell gpu (setup with torch 2.7.0+cu128 and xformers 0.0.30)

What should have happened?

Inpainting should work.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2025-06-24-02-04.json

Console logs

Traceback (most recent call last):███████████████████████████████| 32/32 [00:13<00:00,  2.14it/s]
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/components/image.py", line 270, in preprocess
    assert isinstance(x, dict)
           ^^^^^^^^^^^^^^^^^^^
AssertionError

Sometimes I get this instead:

Traceback (most recent call last):
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/components/image.py", line 290, in preprocess
    mask_im = processing_utils.decode_base64_to_image(mask)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/processing_utils.py", line 58, in decode_base64_to_image
    image_encoded = extract_base64_data(encoding)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sdwebui/venv/lib/python3.11/site-packages/gradio/processing_utils.py", line 49, in extract_base64_data
    return x.rsplit(",", 1)[-1]
           ^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'rsplit'

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions