Automatically activate conda and run your SD from one bat file! Super easy!

Published on:

Views: 0

Likes: 0

Tags:

stable diffusion
anaconda
conda
directml
onnx
Watch video on Youtube

Several viewers actually asked for help with this, so I figured I would make a very quick video. This will activate your conda environment that you use for stable diffusion. It will change into the correct directory. Then it will simply run the start command with any arguments to launch stable diffusion. When you are done with running stable diffusion, just hit control + C to close it out. run-sd.bat call conda activate sd_olive cd stable-diffusion-webui-directml/ webui.bat --onnx --backend directml Be sure to change the conda activate to the name of your conda environment. make sure that cd changes into the correct directory. add or remove any command line arguments if you normally need to run them. The file contents can also be found here: https://github.com/jhodak/linux-configuration-files/blob/main/SD/autorun-conda