Skip to content

Instantly share code, notes, and snippets.

@jantimon
Last active April 26, 2024 14:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jantimon/f764e179baeee7c98b8bb6035fb2964a to your computer and use it in GitHub Desktop.
Save jantimon/f764e179baeee7c98b8bb6035fb2964a to your computer and use it in GitHub Desktop.
install stable diffusion v1 on Apple M1
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