Skip to content

Instantly share code, notes, and snippets.

@jstenquist
Created September 20, 2022 00:46
Show Gist options
  • Save jstenquist/13d6cf0abcc0123827e57c43526e85c7 to your computer and use it in GitHub Desktop.
Save jstenquist/13d6cf0abcc0123827e57c43526e85c7 to your computer and use it in GitHub Desktop.
# Type the commands below in terminal and press Enter:
Install Homebrew from http://brew.sh
brew update
brew install python
git clone -b apple-silicon-mps-support https://github.com/bfirsh/stable-diffusion.git
cd stable-diffusion
mkdir -p models/ldm/stable-diffusion-v1/
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
brew install Cmake protobuf rust
pip install -r requirements.txt
Now go to https://huggingface.co/CompVis/stable-diffusion-v-1-4-original, read and understand the license, then click "Access repository"
Download sd-v1-4.ckpt (~4 GB) and save it under stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt
python scripts/txt2img.py --n_samples 1 --n_iter 1 --plms --prompt "new born baby Corgi. 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