Skip to content

h-mineta/stable-diffusion-webuis-podman

 
 

Repository files navigation

Stable Diffusion WebUI Podman

Run Stable Diffusion on your machine with a nice UI without any hassle!

Setup & Usage

sudo dnf install -y nvidia-container-toolkit
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
sudo sed -i 's/^#no-cgroups = false/no-cgroups = true/;' /etc/nvidia-container-runtime/config.toml

sudo mkdir -p /usr/share/containers/oci/hooks.d/
cat << '_EOL_' | sudo tee /usr/share/containers/oci/hooks.d/oci-nvidia-hook.json > /dev/null
{
    "version": "1.0.0",
    "hook": {
        "path": "/usr/bin/nvidia-container-runtime-hook",
        "args": ["nvidia-container-runtime-hook", "prestart"],
        "env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ]
    },
    "when": {
        "always": true,
        "commands": [".*"]
    },
    "stages": ["prestart"]
}
_EOL_

cd /opt
git clone https://github.com/h-mineta/stable-diffusion-webuis-podman.git
cd stable-diffusion-webuis-podman

# check NVIDIA GPU(nvidia-smi)
podman play kube --replace check-nvidia-smi.yaml
podman pod logs check-nvidia
podman pod rm check-nvidia

chmod +x start.sh
./start.sh

Visit the wiki for Setup and Usage instructions, checkout the FAQ page if you face any problems, or create a new issue!

Features

This repository provides multiple UIs for you to play around with stable diffusion:

http://localhost:7860

Full feature list here, Screenshots:

Text to image Image to image Extras

http://localhost:7861

Full feature list here, Screenshots:

Text to image Image to image Extras

http://localhost:7862

Full feature list here, Screenshot:

Workflow

Contributing

Contributions are welcome! Create a discussion first of what the problem is and what you want to contribute (before you implement anything)

Disclaimer

The authors of this project are not responsible for any content generated using this interface.

This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible:

About

Easy Podman setup for Stable Diffusion with user-friendly UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.4%
  • Dockerfile 31.3%
  • Python 16.3%