https://github.com/pforret/m1fusion
Stable Diffusion install/uninstall/prompt for MacOS M1
https://github.com/pforret/m1fusion
bashew m1-mac macos stable-diffusion
Last synced: 6 months ago
JSON representation
Stable Diffusion install/uninstall/prompt for MacOS M1
- Host: GitHub
- URL: https://github.com/pforret/m1fusion
- Owner: pforret
- License: mit
- Created: 2022-09-03T14:51:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T20:56:45.000Z (about 3 years ago)
- Last Synced: 2025-03-24T13:36:09.834Z (7 months ago)
- Topics: bashew, m1-mac, macos, stable-diffusion
- Language: Shell
- Homepage:
- Size: 416 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README






[](https://basher.gitparade.com/package/)# m1fusion
Stable Diffusion for MacOS M1
## 🔥 Usage
```
Program : m1fusion by peter@forret.com
Version : v1.1.0 (Sep 9 22:12:14 2022)
Purpose : Stable Diffusion for MacOS M1
Usage : m1fusion [-h] [-q] [-v] [-f] [-l ] [-t ] [-S ] [-W <width>] [-H <height>] [-N <steps>] <action> <prompt?>
Flags, options and parameters:
-h|--help : [flag] show usage [default: off]
-q|--quiet : [flag] no output [default: off]
-v|--verbose : [flag] also show debug messages [default: off]
-f|--force : [flag] do not ask for confirmation (always yes) [default: off]
-l|--log_dir <?> : [option] folder for log files [default: /Users/pforret/log/m1fusion]
-t|--tmp_dir <?> : [option] folder for temp files [default: /tmp/m1fusion]
-S|--style <?> : [option] image style: cinema/photo/manga/comic/painting
-W|--width <?> : [option] output image width (max 512) [default: 512]
-H|--height <?> : [option] output image height (max 512) [default: 512]
-N|--steps <?> : [option] number of time steps [default: 50]
<action> : [choice] action to perform [options: install,uninstall,prompt,nsfw,check,env,update]
<prompt> : [parameter] prompt to use for image generation (optional)### TIPS & EXAMPLES
* use m1fusion install to install Stable Diffusion
m1fusion install
* use m1fusion uninstall to delete all Stable Diffusion files (7GB)
m1fusion uninstall
* use m1fusion nsfw to disable Stable Diffusion NSFW filter
m1fusion nsfw
* use m1fusion prompt to create an image from a prompt
m1fusion prompt "a small kitten"
* use m1fusion check to check if this script is ready to execute and what values the options/flags are
m1fusion check
* use m1fusion env to generate an example .env file
m1fusion env > .env
* use m1fusion update to update to the latest version
m1fusion update
* >>> bash script created with pforret/bashew
* >>> for bash development, also check IO:print pforret/setver and pforret/progressbar
```## ⚡️ Examples
```bash
> m1fusion install
# do the installation: MacOS, brew, python, git ...> m1fusion uninstall
# remove all Stable Diffusion files> m1fusion nsfw
# disable the Rickroll NSFW filter> m1fusion prompt "new born kitten"
> m1fusion --style cinema prompt "new born kitten"
# generate images
# get inspiration on e.g. https://prompthero.com/
```## 🚀 Installation
with [basher](https://github.com/basherpm/basher)
$ basher install pforret/m1fusion
or with `git`
$ git clone https://github.com/pforret/m1fusion.git
$ cd m1fusion## 📝 Acknowledgements
* StableDiffusion: [huggingface.co/spaces/stabilityai/stable-diffusion](https://huggingface.co/spaces/stabilityai/stable-diffusion) by [stability.ai](https://stability.ai/)
* Apple M1 instructions compiled by Pieter Levels [twitter.com/levelsio/status/1565731907664478209](https://twitter.com/levelsio/status/1565731907664478209)
* script created with [bashew](https://github.com/pforret/bashew)© 2022 Peter Forret