-
Notifications
You must be signed in to change notification settings - Fork 179
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
CANT GENERATE IMAGE return torch._C._cuda_memoryStats(device) RuntimeError: invalid argument to memory_allocated #471
Comments
RX 7700S is not officially supported by AMD HIP SDK. (gfx1102) |
I followed the steps copilot told me: but I still got the error(and still couldn't generate anything): venv "C:\sd\stable-diffusion-webui-amdgpu\venv\Scripts\Python.exe" Running on local URL: http://127.0.0.1:7860 To create a public link, set Traceback (most recent call last): I saw this video: https://www.youtube.com/watch?v=YazUwPNsdzE, it told me to add %hip_path%bin to path, but when I type %hip_path%bin in my windows explorer, it says windows cant find it, so instead of %hip_path%bin, I add C:\Program Files\AMD\ROCm\5.7\bin to path. Is that why I get the error? |
Make sure that environment variable |
I removed the zluda folder from path, but it didn't change anything. |
Happening to me as well with a 7900XT. States that there is not enough memory to convert the model: Tried with two different models as well, no change. Final error is Edit: My bad, the error is different from OP's. But same outcome. |
You need lots of memory to convert/optimize XL models. How much system memory do you have? |
32GB. Would I need more than this to convert? Thanks for the quick reply. |
Please try again after closing unnecessary processes. If still oom, you may need more. |
With a 7900XT its not the best way to use Directml or Onnx. For any AMD or Nvidia User, i made a lot of Guides for Zluda, Directml, and all common Stable DIffusion Webui's like Auto1111, Comfyui, Fooocus, etc. |
Thanks, CS1o! |
@Aelzaire No problem! Edit: |
Yo, thank you so much for this. I just got it setup earlier and yeah this is way faster. Not quite as fast as ONNX but no limitation or anything, I'll take it. That's amazing. Thanks again so much. Had no idea about this. |
Checklist
What happened?
I am running stable diffusion on a laptop with AMD Radeon RX 7700s, but it doesn't generate anything after I entered the prompts and click on the generate button.
Steps to reproduce the problem
What should have happened?
maybe stable diffusion couldn't use my gpu to generate photo because of some errors
What browsers do you use to access the UI ?
Microsoft Edge
Sysinfo
sysinfo-2024-06-02-12-55.json
Console logs
Additional information
螢幕擷取畫面 2024-06-02 205311
the gpu usage is very low when i tried to generate the picture(but it fails al the time)
The text was updated successfully, but these errors were encountered: