https://github.com/stared/stable-diffusion-keras-m1-gpu
Stable diffusion image generation with KerasCV for Macbook M1 GPU
https://github.com/stared/stable-diffusion-keras-m1-gpu
gpu keras m1 m1-mac stable-diffusion tensorflow
Last synced: 2 months ago
JSON representation
Stable diffusion image generation with KerasCV for Macbook M1 GPU
- Host: GitHub
- URL: https://github.com/stared/stable-diffusion-keras-m1-gpu
- Owner: stared
- Created: 2022-10-03T11:01:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T11:09:44.000Z (about 3 years ago)
- Last Synced: 2025-06-23T03:48:44.623Z (4 months ago)
- Topics: gpu, keras, m1, m1-mac, stable-diffusion, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 1020 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stable diffusion for Macbook M1, GPU support
[High-performance image generation using Stable Diffusion in KerasCV](https://keras.io/guides/keras_cv/generate_images_with_stable_diffusion/) with support for GPU for Macbook M1Pro and M1Max. All rights belong to its creators.
First, you need to install a Python distribution that supports arm64 (Apple Silicon) architecture. I use `mambaforge`, but `miniforge` is likely to work as well, see .
Or using [brew](https://brew.sh/):
```
brew install --cask mambaforge
```Then
```
git clone git@github.com:stared/stable-diffusion-keras-m1-gpu.git
cd stable-diffusion-keras-m1-gpu
mamba env create -f tf-macos-m1-gpu.yaml
mamba activate tf-macos-m1-gpu
```Instruction adapted from [What is the proper way to install TensorFlow on Apple M1 in 2022 - StackOverlow](https://stackoverflow.com/questions/72964800/what-is-the-proper-way-to-install-tensorflow-on-apple-m1-in-2022).