Stable Diffusion 本地部署教程不完全指南

ChatGPT免费体验入口网址

http://chat.xutongbao.top

参考链接:

ERROR: Could not find a version that satisfies the requirement torch==1.7.0 ERROR: No matching……_congcongiii的博客-CSDN博客

 

下载链接:

https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl

pip install torch -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

设置Python装包镜像源:

https://zhuanlan.zhihu.com/p/573955401

pip install -i https://pypi.douban.com/simple torchvision==0.14.0
.\python.exe -m pip install .\torch-1.13.1+cu117-cp310-cp310-win_amd64.whl

参考链接:

https://blog.csdn.net/jinnaluo0/article/details/129907577

.\python.exe -m pip install gfpgan -i https://pypi.douban.com/simple

.\python.exe -m pip install clip -i https://pypi.douban.com/simple

.\python.exe -m pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b --prefer-binary -i https://pypi.douban.com/simple --trusted-host pypi.douban.com

参考链接:

https://blog.csdn.net/qq_41234663/article/details/129783216

https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors

 

https://huggingface.co/runwayml/stable-diffusion-v1-5

 

 

a photo of an astronaut riding a horse on mars

参考链接:

https://blog.csdn.net/snans/article/details/130208216

 

high quality, photorealistic, icon, 
white background,
(1cabbage),(wheat),(grains),(1tomato),(1ham),(1yellow_tomato),(3meat:1.4),(1eggplant) 

nvidia-smi

https://developer.nvidia.com/cuda-toolkit-archive

 

nvcc -V

 参考链接:

https://blog.csdn.net/Elon15/article/details/125678410

(masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting,(extremely detailed CG:1.2), drawing, paintbrush,looking at viewer, close-up, upper body,
NSFW, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit,bad hands, missing fingers, (((extra arms and legs))),

 

https://cn.download.nvidia.com/Windows/531.68/531.68-desktop-win10-win11-64bit-international-dch-whql.exe

 

 

https://blog.csdn.net/leelitian3/article/details/120448129?ops_request_misc=&request_id=&biz_id=102&utm_term=gpu%E4%BD%BF%E7%94%A8%E7%8E%87%E4%B8%BA0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-120448129.142^v86^wechat,239^v2^insert_chatgpt&spm=1018.2226.3001.4187

 

 

 

 

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

解决办法:

set COMMANDLINE_ARGS= --lowvram --precision full --no-half --disable-safe-unpickle

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

 参考链接:

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory · Issue #1861 · AUTOMATIC1111/stable-diffusion-webui · GitHub

Txt2img with "restore faces" option gives an error · Issue #1513 · AUTOMATIC1111/stable-diffusion-webui · GitHub

github页面, 可以下载需要的文件:

https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0

 

 

 删除这个文件:

 

 

英文汉语解释
Prompt正向提示词
negative prompt反向提示词
Sampling steps生成迭代步数
CFG Scale画家自由度
Extras优化

 

案例一

正向提示词:

A girl, looking at viewer, close-up, upper body,in the forest, the sun fell on her body, (masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting,(extremely detailed CG:1.2), drawing, paintbrush,

反向提示词:

Negative prompt: NSFW, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit,bad hands, missing fingers, (((extra arms and legs))),

配置:

 

案例二

正:

A girl, looking at me, close-up, upper body,in the forest, the sun fell on her body, (masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting,(extremely detailed CG:1.2), drawing, paintbrush,

反:

NSFW, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit,bad hands, missing fingers, (((extra arms and legs))),

 

案例三

 

 案例四-图生图

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
### 回答1: Stable Diffusion 的最低部署配置要求如下: - 操作系统: Windows 7 及以上版本,或者 Linux (64 位) - CPU: 至少需要一个双核心处理器 - 内存: 至少 4 GB RAM - 硬盘空间: 至少需要 200 MB 的可用硬盘空间 这是最低配置,但实际部署情况可能需要更高的配置,具体取决于部署的应用场景和负载级别。 ### 回答2: stable diffusion 是一个分布式系统的软件运行环境,本地部署的最低配置包括硬件要求和软件要求两个方面。 在硬件要求方面,stable diffusion 的最低配置需要一台具有较好性能的计算机。具体来说,需要至少具备4核或以上的处理器、8GB 或以上的内存以及100GB 或以上的存储空间。这样的配置能够保证 stable diffusion 运行时有足够的计算资源和存储空间来支持分布式计算和存储的需求。 在软件要求方面,stable diffusion 运行环境需要操作系统支持。常见的操作系统如 Linux、Windows 和 macOS 均能提供运行 stable diffusion 所需的环境。此外,还需要安装 Java 运行时环境(JRE)或者 Java 开发工具包(JDK),以及 stable diffusion 的相关依赖库和组件。 总之,stable diffusion 本地部署的最低配置要求一台至少具备4核处理器、8GB 内存和100GB 存储空间的计算机,并安装适合的操作系统和 Java 运行时环境。这样的配置能够满足 stable diffusion 运行时的基本需求,让用户能够在本地环境中使用 stable diffusion 分布式系统的功能。 ### 回答3: stable diffusion是一种用于实现实时消息传递的软件平台,它可以在本地部署。最低配置是指在硬件和软件方面提供了基本功能所需的最低要求。针对stable diffusion的本地部署,其最低配置包括以下要素: 1. 服务器硬件要求:至少需要一台具有足够处理能力和存储容量的服务器。常见的最低配置可能包括2-4个处理器核心、8GB的内存和100GB的磁盘空间。具体的配置会根据用户的需求和实际情况而有所不同。 2. 操作系统支持:stable diffusion通常支持各种流行的操作系统,如Linux、Windows Server等。用户可以选择适合自己环境的操作系统并按照相应的要求进行安装和部署。 3. 网络要求:stable diffusion在本地部署时需要一个可靠的局域网或互联网连接。用户需要确保服务器能够与其他相关设备和用户进行通信,以确保实时消息传递的稳定性和可靠性。 4. 软件依赖:stable diffusion可能依赖于一些额外的软件或库来实现其功能。用户需要根据stable diffusion提供的文档和指南安装并配置这些软件依赖项,以确保平台的正常工作。 需要注意的是,以上提到的最低配置只是一个大致的参考,实际配置可能会根据具体的使用场景和需求而有所不同。用户在进行本地部署之前应该对自己的需求和环境进行充分的评估,以便选择合适的硬件和软件配置来确保平台的稳定性和性能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

徐同保

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

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

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

打赏作者

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

抵扣说明:

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

余额充值