Enabling AMD GPU #428
Replies: 16 comments 40 replies
-
Some months ago this did work for AMD people: |
Beta Was this translation helpful? Give feedback.
-
are you using the python run in the main folders? in main folder, type cmd python run.py --execution-provider dml also, after you run the webinstaller. sometimes its quirky. ie I have stable diffusion also and it just spreads chaos with directml then try above with installing directml etc etc |
Beta Was this translation helpful? Give feedback.
-
Try to change thread count to 2 and restart everything.
…On Tue, Feb 6, 2024 at 5:09 PM Moohsticks ***@***.***> wrote:
I have those settings, which I think besides the dml provider is default
Untitled7.png (view on web)
<https://github.com/C0untFloyd/roop-unleashed/assets/156854093/d22f153d-12fd-4aa5-bc77-4b357df90c9e>
This is the processing status and my GPU is sitting at 1% throughout
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJUTZ63PTWCN2AQMUJTYSKZ2DAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOBYHE3DM>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Ok give me a few hours to look into it. Theres a way to force the run with
the settings with certain commands but I can’t locate it at the moment
…On Tue, Feb 6, 2024 at 5:38 PM Moohsticks ***@***.***> wrote:
I've just tried that and a bunch of other settings to see if it made any
different but still seems to be the same
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJUU3WNKAO5C6WZ7P5DYSK5IRAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOBZGE3DQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Quick question while I’m looking. Which gpu model do you have?
…On Tue, Feb 6, 2024 at 5:45 PM Moohsticks ***@***.***> wrote:
No worries, I will continue to have a mess around with things to see if
anything helps and it's something silly. Thank you for the help today, at
least we got it to change the provider to dml and run!
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJUUBCSGHQJG5LN3LQTYSK6ABAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOBZGIYTC>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Well I can’t find it but it should be working. I went ahead and reinstalled
everything on my end just to see and it’s working.
Now that you have the proper python and proper visual studio c++
Wait you do have visual studio right?
…On Tue, Feb 6, 2024 at 7:14 PM Moohsticks ***@***.***> wrote:
I have a 7800XT
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJVJJ7VK4PSIWNXC5BDYSLIPDAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOBZG44TE>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Best bet would be to go ahead and delete folder since you had the wrong
python before. It’s done this to me before. When I installed stable
diffusion is changed something so I had to go and redo everything.
Install web first, then install with pip requirements and call it a night.
I’ll keep searching though
…On Tue, Feb 6, 2024 at 8:21 PM Moohsticks ***@***.***> wrote:
Yeah I do have VS installed, everything should be installed properly so I
have no idea, kind of a mystery
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJRLRNR3OE22AWJ32ODYSLQMDAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOJQGE2DI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Oh just the installer.bat first for the ffmpeg, etc and then the pip
install for anything left.
Let me know how it goes
…On Tue, Feb 6, 2024 at 8:32 PM Moohsticks ***@***.***> wrote:
That is a good idea, just going to double check what you mean by 'install
web first' to make sure I've got everything right.
But I will give that a go and see what happens
—
Reply to this email directly, view it on GitHub
<#428 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEOAOJUOVLWYPYDK73O7Y3TYSLRVJAVCNFSM6AAAAABC2H6YOWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGOJQGIZDG>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Answering myself, it seems to be impossible to have Torch use DirectML. However Torch is used only in masking and DMDNet Postprocessing meaning it's less important. I was missing RocML and OpenVino though, which I just now added to the device selection. |
Beta Was this translation helpful? Give feedback.
-
The only thing I remember seeing is the new python isn't compatible with torch when messing around with AMD diffusion "AUTOMATIC1111", but he said he uninstalled the Newest version of Python and then installed the older one. Could that cause some sort of conflict having some newer stuff left over somewhere? https://learn.microsoft.com/en-us/windows/ai/directml/gpu-pytorch-windows fingers crossed with RoCML in the future. |
Beta Was this translation helpful? Give feedback.
-
Hey all, I can launch roop and it shows this on top: python: 3.9.18 • torch: 2.2.1+cpu • gradio: 3.48.0 I cannot make sense of this, can somebody suggest something? |
Beta Was this translation helpful? Give feedback.
-
D:\a_work\1\s\onnxruntime\core\providers\cuda_call.cc:121 onnxruntime::CudaCall D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=-15163856 ; hostname=LAPTOP-CDGC5 ; file=D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider.cc ; line=245 ; expr=cudaSetDeice(info_.device_id); Hey guys, I get this error when running roop unleashed, I use an amd gpu and I am not very much into technical stuff, can anybody please help me out, I need this software to work urgently, a detailed explanation would be much apppreciated |
Beta Was this translation helpful? Give feedback.
-
pip install -r requirements.txt Plus when I run this command, I got something called error:exception: |
Beta Was this translation helpful? Give feedback.
-
ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: D:\a_work\2\s\onnxruntime\core\providers\dml\DmlExecutionProvider\src\FusedGraphKernel.cpp(70)\onnxruntime_pybind11_state.pyd!00007FFC9D8C8971: (caller: 0007FFC9D8C64C9) Exception(9) tid(1dd8) 8007000E Not enough memory resources are available to complete this operation. An update guys, now I am getting this error, please help |
Beta Was this translation helpful? Give feedback.
-
This worked for me, but it runs purely on CPU: Note: I'm a developer, but complete ignorant on python
As it's not running on my GPU (AMD RX 6750 XT) it's extremely slow. To run on AMD GPU it would require torch with ROCm no? Well, that's not supported on Windows. But appears to be supported on WSL. However my GPU isn't supported, even on Linux, according to AMD. See https://rocm.docs.amd.com/projects/radeon/en/latest/docs/compatibility/wsl/wsl_compatibility.html That said, maybe on WSL and a 7900 XT(X), this could work:
|
Beta Was this translation helpful? Give feedback.
-
Hello there,
I was wondering if someone could give me a ltitle help on enabling a AMD GPU?
In the installation guide it says the following 'pip install onnxruntime-directml==1.15.1' but I couldn't install that version so I grabbed 1.17.0 and that installed just fine. The issue I'm having is that I can't seem to figure out how to see it as a provider.
Any ideas?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions