https://github.com/artbit/stable-gimpfusion
A Gimp plugin that brings StableDiffusion functionality via Automatic1111's API
https://github.com/artbit/stable-gimpfusion
gimp-plugin stable-diffusion
Last synced: 2 months ago
JSON representation
A Gimp plugin that brings StableDiffusion functionality via Automatic1111's API
- Host: GitHub
- URL: https://github.com/artbit/stable-gimpfusion
- Owner: ArtBIT
- License: mit
- Created: 2023-03-10T11:04:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-02T13:23:19.000Z (over 1 year ago)
- Last Synced: 2025-03-08T21:39:10.005Z (2 months ago)
- Topics: gimp-plugin, stable-diffusion
- Language: Python
- Homepage:
- Size: 2.7 MB
- Stars: 119
- Watchers: 9
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ArtBIT/stable-gimpfusion) [](https://github.com/ArtBIT/stable-gimpfusion) [](https://github.com/ArtBIT/stable-gimpfusion)
# Stable-Gimpfusion
This is a simple Gimp plugin that allows you to augment your painting using [Automatic1111's StableDiffusion Web-UI API](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API) from your local StableDiffusion server.
# Example usage
Using Mona Lisa as the ControlNet
Converting it to Lady Gaga
And inpainting some nerdy glasses
![]()
See the demo video on YouTube
# Requirements
- [Automatic1111's StableDiffusion Web-UI API](https://github.com/AUTOMATIC1111/stable-diffusion-webui#installation-and-running)
- [Mikubill's StableDiffusion Web-UI ControlNet](https://github.com/Mikubill/sd-webui-controlnet)# Installation
- Download the script file [stable-gimpfusion.py](https://raw.githubusercontent.com/ArtBIT/stable-gimpfusion/main/stable_gimpfusion.py),
save into your gimp plug-ins directory, ie:
- Linux: `$HOME/.gimp-2.10/plug-ins/` or `$XDG_CONFIG_HOME/GIMP/2.10/plug-ins/`
- Windows: `%APPDATA%\GIMP\2.10\plug-ins\` or `C:\Users\{your_id}\AppData\Roaming\GIMP\2.10\plug-ins\`
- OSX: `$HOME/Library/GIMP/2.10/plug-ins/` or `$HOME/Library/Application Support/GIMP/2.10/plug-ins`
- Ensure the execute bit is set on MacOS and Linux by running `chmod +x /stable_gimpfusion.py`
- Restart Gimp, and you will see a new AI menu item
- Run script via `AI -> Stable Gimpfusion -> Config` and set the backend API URL base (should be `http://127.0.0.1:7860/` by default)# Troubleshooting
- Make sure you're running the Automatic1111's Web UI in API mode (`--api`) [Automatic1111's StableDiffusion Web-UI API](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API) try accessing [http://127.0.0.1:7860/docs](http://127.0.0.1:7860/docs) and verify the `/sdapi/` routes are present to make sure it's running
- Ensure your Gimp installation has python support (You should see `Filters>Python-fu>Console` in the menu)
- Verify the plugin folder that you are using (~/.config/GIMP/2.20/plug-ins) listed in the GIMP's plug-ins folders. (`Edit>Preferences>Folders>Plug-Ins`)# License
[MIT](LICENSE.md)