Stable Diffusion Web UI for AMDGPUs 使用教程

Stable Diffusion Web UI for AMDGPUs 使用教程

stable-diffusion-webui-amdgpu Stable Diffusion web UI stable-diffusion-webui-amdgpu 项目地址: https://gitcode.com/gh_mirrors/st/stable-diffusion-webui-amdgpu

1. 项目介绍

Stable Diffusion Web UI for AMDGPUs 是一个基于 Gradio 库实现的 Stable Diffusion 的 Web 界面。该项目专门为 AMD GPU 用户设计,支持 DirectML 和 ZLUDA 作为后端,使得用户可以在 AMD GPU 上运行 Stable Diffusion。

主要特性

  • 详细功能展示:包括 txt2img、img2img、Outpainting、Inpainting、Color Sketch 等。
  • 一键安装和运行脚本:用户只需安装 Python 和 Git,即可快速启动项目。
  • 支持多种优化和扩展:如 X/Y/Z 图、Textual Inversion、GFPGAN、CodeFormer 等。

2. 项目快速启动

2.1 安装依赖

Windows 系统
  1. 安装 Python 3.10.6(勾选“Add Python to PATH”)。
  2. 安装 Git。
  3. 下载并解压 stable-diffusion-webui-amdgpu 仓库。
git clone https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu.git
  1. 运行 webui-user.bat
Linux 系统
  1. 安装依赖:
# Debian-based:
sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0

# Red Hat-based:
sudo dnf install wget git python3 gperftools-libs libglvnd-glx

# openSUSE-based:
sudo zypper install wget git python3 libtcmalloc4 libglvnd

# Arch-based:
sudo pacman -S wget git python3
  1. 下载并运行 webui.sh
wget -q https://raw.githubusercontent.com/lshqqytiger/stable-diffusion-webui-amdgpu/master/webui.sh
chmod +x webui.sh
./webui.sh

2.2 启动项目

在项目目录下运行以下命令启动 Web UI:

./webui.sh

3. 应用案例和最佳实践

3.1 图像生成

使用 txt2img 模式生成图像:

  1. 在 Web UI 中选择 txt2img 标签。
  2. 输入提示词,例如 a man in a tuxedo
  3. 调整参数,如分辨率、采样步数等。
  4. 点击 Generate 按钮生成图像。

3.2 图像修复

使用 img2img 模式修复图像:

  1. 上传需要修复的图像。
  2. 选择 img2img 标签。
  3. 调整参数,如重绘区域、采样步数等。
  4. 点击 Generate 按钮修复图像。

4. 典型生态项目

4.1 GFPGAN

GFPGAN 是一个用于人脸修复的神经网络,可以与 Stable Diffusion Web UI 结合使用,提升图像中人脸的质量。

4.2 CodeFormer

CodeFormer 是另一个用于人脸修复的工具,作为 GFPGAN 的替代方案,提供更高质量的修复效果。

4.3 RealESRGAN

RealESRGAN 是一个神经网络上采样工具,可以将低分辨率图像放大到高分辨率,保持图像细节。

通过这些生态项目的结合,用户可以在 Stable Diffusion Web UI 中实现更复杂的图像处理任务。

stable-diffusion-webui-amdgpu Stable Diffusion web UI stable-diffusion-webui-amdgpu 项目地址: https://gitcode.com/gh_mirrors/st/stable-diffusion-webui-amdgpu

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

田子蜜Robust

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值