filmov
tv
Text to image: running Stable diffusion on AMD GPU/Windows. Step by step guide

Показать описание
Detailed guide on running stable diffusion on Windows with accelerations from AMD GPU.
👉ⓢⓤⓑⓢⓒⓡⓘⓑⓔ Thank you for watching! please consider to subscribe. thank you!
👉🏽Update: 3/21/23: due to Pytorch upgrade, if you have issues, please install 1.13 pytorch by:
Step by step guide to run Stable diffusion AI text to image on AMD GPU and Windows.
Affiliate links: buy on Amazon
Some download links are included below. (based on comments, also added detailed commands)
1:20 Install Git
3:13 Install Python (miniconda)
5:43 Conda virtual environment
conda create --name sd39new python=3.9 -y
conda activate sd39new
8:30 Install python packages.
** added. pytorch version 1.13.1
pip install diffusers==0.10.2
pip install transformers==4.25.1
pip install onnxruntime==1.13.1
pip install onnx==1.13.0
11:47 DirectML package install
20:08 Run the model to turn text into image!
run following in python console:
from diffusers import StableDiffusionOnnxPipeline
prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
27:30 final output (example)
Thank you for watching!
👉ⓢⓤⓑⓢⓒⓡⓘⓑⓔ Thank you for watching! please consider to subscribe. thank you!
👉🏽Update: 3/21/23: due to Pytorch upgrade, if you have issues, please install 1.13 pytorch by:
Step by step guide to run Stable diffusion AI text to image on AMD GPU and Windows.
Affiliate links: buy on Amazon
Some download links are included below. (based on comments, also added detailed commands)
1:20 Install Git
3:13 Install Python (miniconda)
5:43 Conda virtual environment
conda create --name sd39new python=3.9 -y
conda activate sd39new
8:30 Install python packages.
** added. pytorch version 1.13.1
pip install diffusers==0.10.2
pip install transformers==4.25.1
pip install onnxruntime==1.13.1
pip install onnx==1.13.0
11:47 DirectML package install
20:08 Run the model to turn text into image!
run following in python console:
from diffusers import StableDiffusionOnnxPipeline
prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
27:30 final output (example)
Thank you for watching!
Комментарии