Last active
April 26, 2024 14:30
-
-
Save jantimon/f764e179baeee7c98b8bb6035fb2964a to your computer and use it in GitHub Desktop.
install stable diffusion v1 on Apple M1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
brew install Cmake protobuf rust python | |
git clone https://github.com/bfirsh/stable-diffusion.git | |
git checkout apple-silicon-mps-support | |
mkdir -p models/ldm/stable-diffusion-v1/ | |
# accept license and download the model | |
# sd-v1-4.ckpt from: | |
# https://huggingface.co/CompVis/stable-diffusion-v-1-4-original | |
# into diffusion/models/ldm/stable-diffusion-v1/model.ckpt | |
python3 -m pip install virtualenv | |
python3 -m virtualenv venv | |
source venv/bin/activate | |
pip3 install --upgrade pip | |
pip3 install setuptools-rust | |
pip3 install -r requirements.txt | |
source venv/bin/activate | |
python3 scripts/txt2img.py --n_samples 1 --n_iter 1 --plms --prompt "new born baby kitten. Hyper Detail, 8K, HD, Octane Rendering, Unreal Engine, V-Ray, full hd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment