Closed TeutonJon78 closed 11 months ago
Only other reference I could find with the same issue (and the person posting it would make sense): https://github.com/microsoft/DirectML/issues/421
@lshqqytiger do you know if this is the same issue?
It seems like a similar issue, but I'm not sure it is the same issue. It requires a specific data type (is it complex? or other one?), but DirectML does not have support of that. When I found DirectML does not have complex type, I added print
to most of the lines of the whole code and catched the specific point when that error occurred. Because it does not give us any traceback, I had to trace it back myself.
Hello! I followed this video tutorial and the same problem occurred. How to solve it? https://www.youtube.com/watch?v=BsxVtu3ocsc
2023-11-04 19:54:27,364 - ControlNet - INFO - preprocessor resolution = -1 [F D:\a_work\1\s\pytorch-directml-plugin\torch_directml\csrc\engine\dml_util.cc:118] Invalid or unsupported data type. Press any key to continue . . .
I'm not 100% sure, but I think the issue is with DirectML, that falls to MS so don't expect a fix. I'm saddened by this too, it looks like a great solution, I wish I'd spent a bit more and gone nVidea, so many great solutions seem to be in the way under AMD.
Not sure if this helps but I literally had the exact same error:
[F D:\a\_work\1\s\pytorch-directml-plugin\torch_directml\csrc\engine\dml_util.cc:118] Invalid or unsupported data type.
Press any key to continue . . .
TLDR: Try removing all models from models\Stable-diffusion and rerun. This fixed the issue for me at least.
I was about to do a fresh install and moved all my downloaded and custom models out of models\Stable-diffusion to a different directory outside of the project just so i didn't have to redownload/remerge. I only left the "original v1-5-pruned-emaonly.safetensors" in the directory. Out of curiosity I reran the webui bat file and voila SD started right up with no issues.
It also looks like it was only the model Deliberate V3 that SD didn't like since it worked with every other model even custom merged ones. Funny thing is that I can still add in Deliberate after SD boot and apply the model with no issue, I just can't have it in the model dir at startup.
Hope this helps.
I'm not 100% sure, but I think the issue is with DirectML, that falls to MS so don't expect a fix. I'm saddened by this too, it looks like a great solution, I wish I'd spent a bit more and gone nVidea, so many great solutions seem to be in the way under AMD.
this is unfortunate, as i am getting the same error on AMD when trying to use inpaint_only+lama
Exact same error, would've been great to have a solution, saddened that I bought an AMD card without thinking about SD, so many workarounds for what previous to having an AMD GPU was as simple as installing and running.
Please use ZLUDA that has complex data type support if possible.
Please use ZLUDA that has complex data type support if possible.
After installing zluda I can’t seem to find models that work on it, all models say “model not loaded” upon trying to generate and somehow control net is installed but I don’t see it in Zluda’s cluttered and contrasty UI, I’ll look into it more since it seems promising but thus far it’s problem galore
Is there an existing issue for this?
What happened?
The inpaint_only+lama preprocessor fails on the DirectML builds of both WebUI and SD.Next. The inpaint only preprocessor works correctly.
It errors out with:
And then crashes the whole SD process.
Steps to reproduce the problem
What should have happened?
The preprocessor should complete and allow image generation.
Commit where the problem happens
webui (DirectML fork): https://github.com/lshqqytiger/stable-diffusion-webui-directml/commit/ba780a8e4fb27d1eb9595947380a63bd84fc419e SD.Next: https://github.com/vladmandic/automatic/commit/1afb7c6ca86c1e154f811e61da3f7c5ce0ae867f controlnet: v1.1.224 - https://github.com/Mikubill/sd-webui-controlnet/commit/c488ef2cbb4c02802564600abb0057fabd3d4cad
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of enabled extensions
a1111-sd-webui-lycoris canvas-zoom multidiffusion-upscaler-for-automatic1111 openpose-editor sd-dynamic-thresholding sd-extension-system-info sd-webui-3d-open-pose-editor sd-webui-aspect-ratio-helper sd-webui-controlnet sd-webui-infinite-image-browsing sd-webui-regional-prompter sd-webui-segment-anything sd_save_intermediate_images stable-diffusion-webui-composable-lora stable-diffusion-webui-images-browser stable-diffusion-webui-two-shot (ashen-sensored) ultimate-upscale-for-automatic1111
Console logs