AI大模型教程
一起来学习

Stable Diffusion WebUI本地环境搭建

一、项目代码下载

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

二、环境配置

conda create --n stafu python=3.10.6
实际上跟自己创建的环境没有关系,项目启动会自动复制这个环境,之后项目根据这个基础环境构建
也可以在自己指定的环境里搭建项目

三、下载stable diffusion模型

具体在这里下载,有很多地址可以下载,主要是
https://huggingface.co/stabilityai/
下载后模型放在项目里面 models/Stable-diffusion文件夹下,可以放多个

链接 模型
https://www.liblib.art/modelinfo/1004b01e19714137a593e30007f3c737 ReVAnimated_v122

四、开启运行程序webui

在终端运行 webui-user.bat
会开始安装环境
安装过程中可能有几个git项目下载不了,手动下载并修改launch.py文件

git clone https://github.com/Stability-AI/stablediffusion.git repositories/stable-diffusion-stability-ai
git checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf


 git clone http://github.com/Stability-AI/generative-models.git repositories/generative-models
 git checkout 45c443b316737a4ab6e40413d7794a7f5657c19f
 
 
 git clone http://github.com/crowsonkb/k-diffusion.git repositories/k-diffusion
 git checkout ab527a9a6d347f364e3d185ba6d714e22d80cb3c
 
 git clone http://github.com/sczhou/CodeFormer.git repositories/CodeFormer
 git -C repositories/CodeFormer checkout c5b4593074ba6214284d6acd5f1719b6c5d739af
 
 git clone http://github.com/salesforce/BLIP.git repositories/BLIP
 git checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9

五、程序启动

文章来源于互联网:Stable Diffusion WebUI本地环境搭建

相关推荐: llama factory 参数体系EvaluationArguments、DataArguments、FinetuningArguments、FreezeArguments、LoraArgument

项目地址 https://github.com/hiyouga/LLaMA-Factory 模型层参数 这段代码是使用Python的dataclasses模块定义的一个数据类ModelArguments,用于管理和存储与模型微调相关的参数。这个类的设计是为了方…

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » Stable Diffusion WebUI本地环境搭建
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们