Update March 2024 -- better way to do this
• March 2024 - Stable Di...
Currently if you try to install Automatic1111 and are using the DirectML fork for AMD GPU's, you will get several errors. This show how to get around the broken pieces and be able to use Automatic1111 again.
Install Git for windows:
gitforwindows.org/
Install Python 3.10.6 for windows:
www.python.org/downloads/rele...
be sure to add to path!
Clone automatic1111 Directml:
copy url for .git repo
github.com/lshqqytiger/stable...
run automatic1111 to create virtual environment
run webui-user.bat file -- it will give an error
fix errors:
venv\Scripts\activate
pip install -r requirements.txt
pip install httpx==0.24.1
edit webui-user.bat file inside of automatic1111 folder and add command line arguments and save:
--use-directml --onnx
Inside of automatic1111 folder
find modules\sd_models.py file, edit it
comment out lines 632 - 635 by putting a # in front of the lines and save file
close out Automatic1111
Now you can run Automatic1111 by double-clicking on the webui-user.bat file from windows, or make a shortcut to it if you prefer.
Automatic1111 should now work the way it used to and should allow optimizing ONNX models.
25 дек 2023