Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: soft inpaint reports errors, it works though #436

Open
4 of 6 tasks
lostwing22 opened this issue Apr 7, 2024 · 4 comments
Open
4 of 6 tasks

[Bug]: soft inpaint reports errors, it works though #436

lostwing22 opened this issue Apr 7, 2024 · 4 comments
Labels
directml DirectML related or specific issue

Comments

@lostwing22
Copy link

lostwing22 commented Apr 7, 2024

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?

when I tried to use soft inpaint,

"Error running post_sample: C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py"

this appears

I think it works though, but it might means something is going wrong

if I changed COMMANDLINE_ARGS it disappears.

it disappears when I change "--use-directml" to any command line using CPU instead

Steps to reproduce the problem

I dont know why it happens

What should have happened?

i hope it disappears, so I can be relief

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-04-07-01-45.json

Console logs

it appears every steps

---
 88%|███████████████████████████████████████████████████████████████████████▊          | 14/16 [00:10<00:01,  1.35it/s]*** Error running post_sample: C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui-directml\modules\scripts.py", line 848, in on_mask_blend
        script.on_mask_blend(p, mba, *script_args)
      File "C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py", line 678, in on_mask_blend
        mba.blended_latent = latent_blend(settings,
      File "C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py", line 81, in latent_blend
        a_magnitude = torch.norm(a, p=2, dim=1, keepdim=True).to(torch.float64).pow_(
    RuntimeError

---
 94%|████████████████████████████████████████████████████████████████████████████▉     | 15/16 [00:11<00:00,  1.31it/s]*** Error running post_sample: C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py
    Traceback (most recent call last):
      File "C:\stable-diffusion-webui-directml\modules\scripts.py", line 848, in on_mask_blend
        script.on_mask_blend(p, mba, *script_args)
      File "C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py", line 678, in on_mask_blend
        mba.blended_latent = latent_blend(settings,
      File "C:\stable-diffusion-webui-directml\extensions-builtin\soft-inpainting\scripts\soft_inpainting.py", line 81, in latent_blend
        a_magnitude = torch.norm(a, p=2, dim=1, keepdim=True).to(torch.float64).pow_(
    RuntimeError

Additional information

No response

@lshqqytiger
Copy link
Owner

torch-directml doesn't seem to support float64 power operation. What's your gpu?

@lshqqytiger lshqqytiger added the directml DirectML related or specific issue label Apr 7, 2024
@lostwing22
Copy link
Author

torch-directml doesn't seem to support float64 power operation. What's your gpu?

it's Radeon RX 6600

@lshqqytiger
Copy link
Owner

I'll add CPU fallback, but you'd better to try ZLUDA that has more wide support.

@lshqqytiger
Copy link
Owner

I think this is fixed now. Could we close this issue?

@lshqqytiger lshqqytiger moved this from In Progress to Done in stable-diffusion-webui-amdgpu Backlog Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
directml DirectML related or specific issue
Development

No branches or pull requests

2 participants