How to install sd in any amd gpu. Torch not is not able to use gpu error fixed.

preview_player
Показать описание
Not ROCm or Zluda, CPU. How to install stable diffusion in any amd gpu. Torch not found error fixed
Install library: pip install torch-directml
COMMANDLINE_ARGS=--skip-torch-cuda-test --use-directml --lowvram --opt-sub-quad-attention --disable-nan-check.

stable diffusion, ai, generative ai, sdxl,sd,torch is not able to use gpu,how to run stable diffusion in amd gpu, stable diffusion amd, torch error, stable diffusion error,
Рекомендации по теме
Комментарии
Автор

If you are installed latest version of SD, there might be problem with that arguments f.e: launch.py unrecognized arguments : --bla bla, just remove that argument in webui-user.bat file or go to github repo and take a look issues section

googlengineer
Автор

What to do?? File "C:\Users\parve\miniconda3\envs\LivePortrait\lib\site-packages\torch\cuda\__init__.py", line 284, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

OdrikaAnusmita
Автор

Hai, thx for the solution but i have another question, why my cpu and gpu only load about 5% in total when generating that causing long waiting time to finish the render?

ArjunoWWH
Автор

ONNX failed to initialize: Failed to import because of the following error (look up to see its traceback).
How to fix?

ggbnvxl
Автор

Hi, I've copy and pasted the command and it just says this

'.\venv\Scripts\activate.bat' is not recognized as an internal or external command,
operable program or batch file.

please help

wintersz
Автор

Спасибо, бро! 2 дня искал решение проблемы

DamilolaKarpov
Автор

Failed
launchpy error: unrecognized arguments: --use-directml

Zooloo
Автор

DLL load failed while importing onnxruntime_pybind11_state: How to solve this problem? Help please🙏

aivisanta
Автор

launch.py: error: unrecognized arguments: --use-directml

nampham
Автор

Getting images with only noise, Not able to generate properly

RowmitHSN
Автор

Why i m getting the same error even i have a nvidia graphics card 4gb not a amd. Should i follow this method or not?

nikhilkumar_
Автор

But why u use --skip-torch-cuba if u use torch directml ?

ohmboneee
Автор

you lost me for a long time at the virtual environment. Apparently in Win 10 its a little different, but I managed to figure it out. I've still noticed that SD runs far slower than comfyui for me. Thats for another day.

thatguy
Автор

AttributeError: module 'torch' has no attribute 'dml' :(

FondoNoruego
welcome to shbcf.ru