-
Notifications
You must be signed in to change notification settings - Fork 192
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]: ONNX failed to initialize #519
Comments
Hey, these warnings can be ignored. |
I met the problem today,and it's worse. venv "E:\stable-diffusion-webui-amdgpu\venv\Scripts\Python.exe" To create a public link, set |
I see now issue here. I still recommend that you install the Zluda Version from my Guide. if you want a good performance and not running out of vram that fast. |
Sorry, since you know a lot about the subject... Can ZLUDA be installed on an RX 570?.... I looked at your tutorial and I see the RX 580... I saw that it works on RX 540 I have exactly the same problem as the user for updating the "Pip" dependency, even though I uninstall and install it, I can't get it to work anymore. |
Yes it will work on a RX570 as it has the same architecture as the RX580. |
But I am using a laptop,with a built-in GPU,4GB of VRAM. |
Have you done this step too?: Additional Step for RX580 Users: |
ZLUDA only supports the following APUs: With any other IGPU you have to use DirectML. |
Yes, I did it but without any result, in fact there are other users reporting the same thing in this series of cards... which according to them is a bug... but I don't know how to fix it. |
The screenshot from earlier shows Zluda device failed the basic test. but what you can try is to use one of these two versions below from: Source Your gpu can use this: in both cases you need to replace the rocm library files again. best is to do this with a clean copy of the library folder. A PC restart is always required after changing library files. Let me know if it worked with these files. |
Thank you very much for your great help, in fact following your guide and doing a complete cleanup of Python and Git I managed to get ZLUDA working but I don't know what happened to the dependencies that no longer work well... With ZLUDA I have problems on A111 and SDnext, the system RAM (16GB) is filled with each image, it is almost impossible to use Hires due to the same problem, from time to time it simply stops working.... |
Aside from how unstable SDnext and A111 with ZLUDA are, I have not been able to get Directml to work on any version, as this user specifies, ONNX does not work at all, I have already tried many versions and I cannot get them to work on clean installations. |
Hey np, the RAM issue can happen when you only have 16gb RAM and your using SDXL or Pony models. A RX570 has only 4gb VRAM so you need to to the following: |
I think it's not only caused by onnx.I passed --skip-ort to the commandline.However,with out "onnx failed to init",the webui still don't work.The token counters on the edit box changed to -/- when I entered something in.Maybe CLIP is not correctly loaded.And now I have no idea to solve it. |
Confirming the problem. I get this error on clean installation and every startup. Only --use-zluda parameter and custom paths to folders with models were used during installation. |
Make sure you have whitelisted the webui in any browser adblocker. |
if your on ZLUDA use |
I record on video the whole process from clean install to image generation. |
Conducted a series of experiments.
Radeon RX 5500 XT 8Gb, Windows 10, python 3.10.11, HIP SDK 5.7.1 + ROCmLibs for old cards |
Excuse me, how do I install or revert to that version that you say doesn't have ONNX errors? (0bde866) because I use DIRECTML and I get all kinds of errors... especially with ONNX I tried zluda but it's very unstable... |
I use Zluda. I don't know how it is on DirectML. |
'ONNX failed to initialize' is caused by the used 'transformers' version (probably 4.30.2 or earlier) missing the 'UMT5EncoderModel' import ('\venv\Lib\site-packages\transformers_init_.py'). In fact it misses all UMT5 models. Newer 'transformers' versions include those models (4.45.0.dev0): https://github.com/huggingface/transformers/blob/main/src/transformers/__init__.py EDIT: OSError: None is not a local folder and is not a valid model identifier ... error. But with 'diffusers==0.29.2' in combination with 'transformers==4.30.2' everything works fine. |
Checklist
What happened?
I ran the program and saw that there were errors in the logs.
Steps to reproduce the problem
What should have happened?
WenUi should have run with no errors to report.
What browsers do you use to access the UI ?
Microsoft Edge
Sysinfo
sysinfo-2024-08-11-20-00.json
Console logs
Additional information
The text was updated successfully, but these errors were encountered: