Windows下stable diffusion webui环境配置详细教程

在win10电脑上搭建python环境下的本地AI绘画工具Stable Diffusion Stable Diffusion是一种可以部署在本地环境上运行的人工智能绘画工具 阅读详情

官方地址:

https://github.com/AUTOMATIC1111/stable-diffusion-webui

配置成功界面:

python版本:

官方要求python版本3.10.6,实测python3.9.13可用

安装教程:

  1. 安装Python

https://www.python.org/downloads/windows/

2. 安装Git并配置

详情参考:https://blog.youkuaiyun.com/shuang_waiwai/article/details/121108964

3. Clone库stable-diffusion-webui

直接Git clone:

!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

或:

4. 运行配置文件

安装问题解决:

强烈建议有条件的使用科学上网,可以避免很多问题。

  1. GFPGAN安装失败

手动下载:

https://github.com/TencentARC/GFPGAN

配置环境:

打开cmd,cd到GFPGAN-master下。
使用命令f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install basicsr facexlib安装GFPGAN的依赖。
再使用f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -r requirements.txt安装GFPGAN的依赖。
使用f:\\stable-diffusion-webui\venv\Scripts\python.exe setup.py develop安装GFPGAN。

2. CLIP安装失败

手动下载:

https://github.com/openai/CLIP

配置环境:

打开cmd,cd到GFPGAN-master下。
使用命令f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install ftfy regex tqdm
再使用f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install -r requirements.txt
使用f:\\stable-diffusion-webui\venv\Scripts\python.exe setup.py develop

3. open_clip安装失败

手动下载:

https://github.com/mlfoundations/open_clip

配置环境:

同上

或

!f:\\stable-diffusion-webui\venv\Scripts\python.exe -m pip install git+https://gitee.com/ufhy/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b --prefer-binary

测试:

一只会打篮球的鸡

使用stable diffusion webui时,安装gfpgan失败的解决方案(windows下的操作) 初次使用stable diffusion,无法安装gfpgan等模块的解决方法 阅读详情

相关推荐

Windows10+Intel显卡+CPU本地部署stable-diffusion-webui项目

Windows10+Intel显卡+CPU本地部署stable-diffusion-webui项目。

zfengfei的博客 3919

python 学习笔记18 GFPGAN人脸(图片)修复

老实说这个和学习没啥关系,就是一个python解决方案的实践。 觉得有趣就试了一下,先上链接: 官方:https://github.com/TencentARC/GFPGAN/blob/master/README.md 这是个高分项目,用于人脸(在逐渐拓展到其他图像类别,如背景)图像修复。如下图: 腾讯 AI 的研究人员提出了他们的新GFP-GAN 模型,以在一次前向传递中实现真实性和保真度的良好平衡。该模型由退化去除模块和预先训练的人脸生成器组成。它们通过直接潜在代码映射连接到使用 CS SFT

wzhang1987的博客 9172

windows11搭建 stable-diffusion-webui

2024年5月22日23:46:57建议电脑配置电脑配置: Intel® Core™ Ultra 5 125H 1.20 GHz 32.0 GB (31.6 GB 可用)系统:windows111,安装 Anaconda下载:64-Bit Graphical Installer (904.4M)安装比较简单,一路ok,注意吧命令加入环境变量:创建适合 stable-diffusion-webui 目前需要 3.10.6。

Z.X的博客 2681

【计算机视觉】手把手教你配置stable-diffusion-webui进行AI绘图(保姆级教程)

【计算机视觉】手把手教你配置stable-diffusion-webui进行AI绘图(保姆级教程)

wzk4869的博客 1万+

CubeMX实战:ETH+LWIP+FreeRTOS网络工程从零搭建与AC6编译优化

本文手把手教你使用STM32CubeMX从零搭建集成以太网(ETH)、LWIP协议栈和FreeRTOS的嵌入式网络工程。文章详细解析了外设配置、协议栈调优、任务规划等关键步骤,并重点分享了如何解决ARM Compiler 6(AC6)的兼容性问题,实现编译速度与稳定性的双重提升,助你快速构建稳定的网络应用原型。

n2o3p4的博客 406

gm/ID设计方法实践指南:从理论曲线到电路优化的关键步骤

本文详细介绍了gm/ID设计方法在模拟IC设计中的实践指南。该方法通过直接利用工艺模型数据,将设计焦点从盲目调整晶体管尺寸转向选择关键的gm/ID工作点,从而在先进工艺下实现功耗、增益和带宽等性能的精准权衡与优化。文章从理论曲线生成到具体电路设计步骤,提供了完整的实战流程。

pandas7gardener的博客 479

NovelAi + Webui + Stable-diffusion本地配置

NovelAi + Webui + Stable-diffusion,二次元狂喜,建模灵感源泉,3D大佬喜极而泣,皮套师流泪。

weixin_62651190的博客 1万+

stable-diffusion-webui安装教程windows10

stable-diffusion-webui安装教程windows10

weixin_37862609的博客 3153

告别密码!用VScode+SSH一键连接树莓派,再也不用每次输密码了

本文详细介绍了如何通过VScode和SSH密钥实现树莓派的免密连接,告别繁琐的密码输入。从开发环境准备、SSH密钥生成与配置,到VScode远程连接优化和常见问题排查,提供了一套完整的解决方案,帮助开发者提升工作效率。

weixin_28831341的博客 171

告别SendKeys!用DD驱动级模拟在Windows 10/11上实现真·后台键鼠操作(Python实战)

本文详细介绍了如何使用DD驱动级模拟技术在Windows 10/11上实现真后台键鼠操作,解决传统方法如pyautogui和SendKeys的局限性。通过Python实战案例,展示了驱动级模拟在游戏自动化、RPA等场景中的高效应用,包括环境配置、核心API解析及高级优化技巧。

weixin_42519985的博客 797

无名先生的Stable Diffusion WebUI 环境配置指南(新手友好版

本文基于无名先生的教程,详细介绍了在Windows系统上配置Stable Diffusion WebUI的完整流程,适合新手快速上手。内容涵盖硬件要求、环境安装、模型部署及常见问题解决,帮助用户轻松搭建AI绘画工具。

2501_91312448的博客 1588

关于112G和56G PAM4信号的有效回损(ERL)

本文探讨了回波损耗(RL)对高速数字通信系统性能的影响,重点分析了时域信道运行裕度(COM)与频域回波损耗指标的关联性。研究表明,传统频域回波损耗指标在预测系统性能时存在假阳性/假阴性问题,特别是对PAM-4信号系统影响更为显著。通过引入基于时域脉冲响应的有效回波损耗(ERL)指标,并结合判决反馈均衡器(DFE)的补偿效应,可更准确评估系统性能。实验表明,短封装器件虽然频域回波损耗较差,但在实际系统中表现更优。研究提出通过时域门控加权等方法优化ERL计算,为高速互连设计提供了更可靠的性能评估框架。

小孟同学的博客 289

保姆级教程:Stable Diffusion v1.5 Archive 零基础入门,从安装到出图全流程

本文介绍了如何在星图GPU平台上自动化部署stable-diffusion-v1-5-archive镜像,实现AI图片生成功能。通过详细的安装指南和参数配置说明,用户可快速生成高质量数字艺术作品,适用于插画创作、概念设计等场景。教程涵盖从环境准备到提示词优化的全流程,帮助零基础用户快速上手。

weixin_29717341的博客 134

MATLAB与ROS联合仿真——控制类功能模块介绍

MATLAB与ROS联合仿真——控制类功能模块介绍

慕羽★的博客 2352

YOLOv11在STM32H7上的MCU部署实战:基于CMSIS-NN的高效推理实现

嵌入式AI与MCU部署技术解析 本文系统介绍了基于STM32H7微控制器的YOLOv11模型部署方案。主要内容包括: 边缘计算背景下MCU的AI部署优势与挑战,重点分析了STM32H7平台特性 YOLOv11模型的结构优化,包括E-ELAN骨干网络和Meta-ACON激活函数等改进 CMSIS-NN加速库的架构原理,在STM32H743上可实现5.4倍卷积加速 完整的开发环境搭建流程,涵盖硬件选型、工具链配置和模型转换 模型优化关键技术,包括int8量化、剪枝和内存占用优化等 实验表明,该方案在保持模型精度

本博客聚焦 YOLOv11 全流程落地,涵盖架构优化、数据集处理、训练技巧与多场景部署,兼及国产数据库、Java 开发与 AI 模型应用,内容兼顾理论与工程实践,为开发者提供系统干货,助力高效提升技术能力。 853

PowerToys Awake 完整指南:4 步配置让电脑不再自动休眠

PowerToys Awake 是 PowerToys 里让电脑不再自动休眠的小模块。设想一下:5GB 的文件下到九成,屏幕一暗,系统睡死,回来一看下载失败。本文带你从打开模块开关,到给不同任务挑对保活方式,一遍走完。读完你就能让电脑在你需要时随时保持清醒。 ## 两分钟判断:你需要 PowerToys Awake 吗 如果你的任务经常超过半小时——大文件下载、项目会议、渲染、整夜备份——而电

gitblog_00811的博客 368

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

win10手动安装stable-diffusion-webui

本文详细记录了在Windows环境下安装Stable Diffusion WebUI的全过程,涵盖Python、Git下载安装,WebUI项目获取及依赖包配置。针对依赖包重复下载问题,通过修改launch_utils.py中的镜像地址(清华源)解决;针对模型加载报错,手动克隆Clip模型至本地目录。最终成功启动WebUI,实现文字生成图片功能,虽基于CPU运行较慢,但为后续配置CUDA加速奠定基础。

君临天下tjm的博客 1380

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

【Stable Diffusion】 安装WebUI(工具篇)

*Stable Diffusion WebUi 一个基于 Gradio 库的开源工具,由个人大神automatic1111开发,并在全球开发者贡献下,成为一个强大的最主流的生产工具。在当下就是我们的主力工具了,我们争取把ta玩的比PS还6…在不论是本地部署还是云端部署都已经很成熟简单了,不再像以前还需要一点程序基础自己一点点部署了。。这里我们主要使用B站赛博菩萨 大佬@秋葉aaaki提供的,里面整合了一些环境和一款人人都爱的启动器。具体的安装方法可以看链接视频,很简单,下载点点点。

Python栈_基的博客 1797

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Stable Diffusion 本地部署教程

最近看Stable Diffusion开源了,据说比Disco Diffusion更快,于是从git上拉取了项目尝试本地部署了,记录分享一下过程~这里是官网介绍:https://stability.ai/blog/stable-diffusion-public-release。

2401_85688943的博客 1477

配置 Stable Diffusion WebUI 纯 CPU 或核显绘画

我笔记本电脑的独显上半年的时候烧掉了,所以只能用 CPU,折腾了一下午总算给配置出来了。我这里用的官方 Python,网上很多教程用 Anaconda(也是一种 Python 发行版),其实没必要。最开始我就跟着用 Anaconda,挺折腾的,到后面发现只是需要 Python 而已,那整体简单多了。喜欢用 Anaconda 的也可以用,不影响,只是需要 Python 这个基础,然后在上面跑 PyTorch,Stable Diffusion 又是基于 PyTorch,结构就是这样。

qq_36349997的博客 4096

Stable Diffusion Webui & AMD 安装

AMD显卡运行Stable Diffusion WebUI配置指南 本文介绍了在AMD显卡上配置Stable Diffusion WebUI的方法。需要准备git、anconda3(可选)、Zluda、amdhip等工具。配置过程与常规SDW安装类似,但针对AMD部分有特殊标注。文章提供了ROCm、ZLUDA等关键组件的安装链接,详细说明了环境变量设置、conda环境配置以及常见问题解决方案,包括网络问题导致的下载失败、版本冲突等。特别强调了对于下载失败的情况,可以手动下载whl文件安装,或使用--forc

HECUgauss的博客 1006

【Stable Diffusion】windows 1050显卡,17年笔记本还能再战

Stable Diffusion 笔记本1050显卡本地环境

neilooo的博客 9298

Stable Diffusion WebUI 本地部署指南(Windows 11 + RTX 4060 Ti)

处理: 虚拟环境下找到 \Lib\site-packages\huggingface_hub\constants.py。进入虚拟环境后 pip install cu121-cp310-cp310-win_amd64.whl。│ └── v1-5-pruned-emaonly.safetensors # 模型文件。Hugging Face 访问不了可以去魔搭社区。重启UI 就可以选中目标模型。问题 分词器下载失败。

哈士奇是我的信仰~呜哇 1957

【stable diffusion】Win10部署本地教程

安装教程参考:https://blog.youkuaiyun.com/weixin_45910860/article/details/122057194。按照这里:https://blog.youkuaiyun.com/weixin_42045719/article/details/130071986。然后需要科学上网,下载一些stable diffusion的训练好权重参数的模型,尾缀是.ckpt、.safetensors等。git 安装包下载:https://git-scm.com/download/win。

zeng001201的博客 2464
上一篇: YOLOv8傻瓜式教程
下一篇: 【目标检测】批量同步修改图片文件名和xml文件名
WageningenUR
博客等级 码龄5年 1万+粉丝 25原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

打赏作者

WageningenUR

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

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

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

打赏作者

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

抵扣说明:

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

余额充值