Stable Diffusion Windows部署教程

文章目录

1、准备

  1. 官网
  2. 需要翻墙软件
  3. 最少6G内存,显卡在2060以上

2、Anaconda安装

  1. 这是一个运行python的环境管理工具
  2. 进入官网
  3. 点击download下载
  4. 打开文件一路到 Advanced Options,勾选第一项注册到环境变量
  5. 下载完成后在开始界面看到Anaconda Prompt,右键以管理员身份运行
  6. 下载python包,在刚打开的窗口输入

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

3、git安装

  1. 进入下载链接,点击Download for Windows,一路默认安装完成

4、开始部署

  1. 在刚才打开的Anaconda Prompt窗口里,进入到你想要进入的目录拉取git
sh 复制代码
cd D:\..\..
git clone  https://github.com/CompVis/stable-diffusion.git
  1. 安装Stable Diffusion环境 进入项目目录
sh 复制代码
cd stable-diffusion
conda env create -f environment.yaml 
  1. 下载模型-官网
  2. 设置模型路径 项目路径\models\ldm\stable-diffusion-v1 文件夹下
  3. 运行--在刚才的窗口切换到创建好的环境
sh 复制代码
conda activate ldm
conda install pytorch torchvision -c pytorch
pip install transformers==4.19.2 diffusers invisible-watermark
pip install -e .
  1. 跑图命令-- --prompt后面就是描述 使用 python scripts/txt2img.py --help查看各种参数配置
sh 复制代码
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
相关推荐
月疯5 天前
Stable Diffusion是如何生成视频
人工智能·stable diffusion
Eric.4612 天前
2026 AI 漫剧叙事可控性深度工程:解决逻辑崩坏、镜头错乱、道具漂移的高阶落地方案
人工智能·stable diffusion·comfyui·ai漫剧
Eric.4613 天前
用 Stable Diffusion 做 AI 漫剧:从静态分镜到动态漫视频的完整工程链路
人工智能·深度学习·stable diffusion·音视频·ai漫剧
Eric.4614 天前
AI漫剧量产Prompt参数实操手册:Stable Diffusion+ComfyUI+OpenClaw通用复制即用配置
人工智能·深度学习·stable diffusion·prompt·ai漫剧
Eric.4614 天前
OpenClaw 结合 Stable Diffusion 与 ComfyUI 实现本地离线 AI 漫剧全自动流水线|批量渲染、人设一致性、帧闪烁问题工程实践
人工智能·stable diffusion·comfyui·ai漫剧
Eric.4614 天前
Stable Diffusion+ComfyUI+OpenClaw AI漫剧量产提示词工程:结构化Prompt、负面词脱敏、权重锁定防画面崩坏全方案
大数据·人工智能·stable diffusion·prompt·comfyui·ai漫剧
Eric.4614 天前
AI 漫剧量产实战:StableDiffusion 帧稳画算法 + ComfyUI 自动质检流水线搭建(附完整代码 + 配置)
人工智能·深度学习·stable diffusion·comfyui·ai漫剧
MarkHD16 天前
Stable Diffusion入门第19-20天:保存与分享你的工作流——第一阶段收官,从“能用”到“可复用”
java·开发语言·stable diffusion
普通网友21 天前
Stable Diffusion 3.5 FP8镜像推出限量免费Token领取活动
stable diffusion·stability ai·fp8
seiji morisako21 天前
Stable-Diffusion-v1-5-archiveWeb服务安全加固:反爬虫/限流/鉴权中间件配置
web安全·stable diffusion·nginx配置·ai部署