stable diffusion automatic 1111 is typically implemented using the Python programming language 1
setting up the stable diffusion automatic 1111 environment involves installing the 2
necessary dependencies and libraries to run the code implementation of the model 3
here are the steps you can follow to set up the environment 4
anaconda or mini conda, git, python, visual studio to avoid error you can continue without it 5
to download python 6
you can download and install it from the official website 7
in download section select all releases 8
don't download latest version 9
newer version of python does not support torch 10
for me 3.10.9 worked fine 11
to download click on download 12
but if you want to avoid any error download 3.10.6 version 13
next we need to download git 14
to download click on 64-bit 15
git for windows setup 16
next we need to download anaconda or mini conda 17
click on download button to download Anaconda 18
and for many conda click on mini conda 3 windows 64-bit 19
next we need visual studio this is optional 20
click on free download button to download visual studio 21
I have provided all the download links 22
after downloading all the required files 23
install python make sure to check to add python to environment variables 24
as I already installed so I am not installing again 25
next is anaconda or mini conda 26
visual studio this is optional 27
it will download required files and take little time to download depend on your internet speed 28
after downloading required files you will see visual studio installer option 29
as I already installed instead of modify button you will see install button 30
make sure to select all these options and install 31
next to make sure to set path for environment variables 32
to do that type environment variables in search bar 33
click on environment variables 34
search for path 35
click edit if path is already there for python anaconda or miniconda then not to worry 36
if not then type CMD in search bar to open command prompt 37
type where python to locate its installed location 38
and copy that path and paste here 39
go scripts folder and copy the path again and 40
click on new button and paste and same goes for anaconda or miniconda copy that path 41
and click ok to save 42
next we need to install automatic 1111 43
download and install it from the official website 44
open command prompt and change the directory where you want to install automatic 1111 and to do that 45
type CD and copy the path and paste in command prompt by right-clicking and press enter 46
to install automatic 1111 click on code button and copy the URL link 47
type git clone and paste link by right-clicking 48
and press enter now it will clone automatic 1111 49
after cloning process is done 50
you will see folder stable diffusion web UI 51
after that we need to download gifgan face restoration 52
add to download click on version 1.4 model and version 1.3 model 53
place gifgan files 54
in stable diffusion web UI folder 55
after that we need stable diffusion model file 56
click on files and versions download 1.5 pruned emaonly.ckpt or 1.5 pruned emaonly.safetensors 57
and 1.5 pruned.ckpt or 1.5 pruned.safetensors click on down arrow to download 58
it may take some time to download 7.7 GB file depends on your internet speed 59
go to model folder and in stable diffusion folder place that 1.5 emaonly.ckpt or 1.5 pruned emaonly.safetensors 60
and 1.5 pruned.ckpt or 1.5 pruned.safetensors 61
after placing all the files in their location 62
right click on webui-user.bat and click edit 63
now set python path here 64
to do that open command prompt 65
and type what Python and press enter 66
copy the path by clicking CTRL + c 67
CTRL + V to paste 68
after that CTRL + s to save 69
now double left click on webui-user.bat to run automatic 1111 70
it will start installing 71
so be patient it will take approximately 20 to 40 minutes 72
now if you ever find yourself waiting more than an hour 73
and you don't see the screen change 74
if you click anywhere in the black screen 75
it will usually pause the download without you noticing 76
if you don't see any change after an hour 77
just press enter and it will start to finish its downloading 78
after downloading process is completed you will see URL 79
copy it go to your favourite browser you want paste it and you're ready to make AI art 80
create shortcut to desktop for quick access 81
add command line arguments here 82
add git pull to enable automatic updates 83
for me this works best you can add command line arguments that suits best for you 84
I have shared complete command line arguments list