当前位置: 首页 > article >正文

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))),

 

案例三

 

 案例四-图生图

 

 

 


http://www.kler.cn/a/16586.html

相关文章:

  • 头歌网络安全(11.12)
  • git修改当前分支名称并推送到远程仓库
  • Chapter 4 虚拟机性能监控、故障处理工具
  • 【初阶数据结构与算法】线性表之链表的分类以及双链表的定义与实现
  • CTF-WEB:PHP伪协议用法总结
  • R和MATLAB及Python混合效应模型
  • 第18章 项目风险管理
  • javascript中的严格模式
  • 自动驾驶行业观察之2023上海车展-----车企发展趋势(1)
  • Python基础合集 练习19(类与对象3(多态))
  • Chapter4:频率响应法(上)
  • Linux套接字编程-2
  • Packet Tracer - 静态路由故障排除
  • 如何学习python?
  • 【C++】右值引用完美转发
  • 什么是 Docker?它能用来做什么?
  • ChatGPT常见问题及其解决方法汇总
  • 微软正式宣布 Win10 死刑,Win11 LTSC要来了
  • 使用 ESP32 设计智能手表 – 第 1 部分制作表盘
  • Shell编程之循环语句
  • osg操控器之动画路径操控器osgGA::AnimationPathManipulator分析
  • 代码随想录算法训练营第四十五天|70. 爬楼梯 (进阶)、322. 零钱兑换、279.完全平方数
  • MySQL基本操作
  • CAN总线(HALL库使用)
  • vue3通过ref拿element弹框中的组件问题
  • java 图形化小工具Abstract Window Toolit :画笔Graphics,画布Canvas(),弹球小游戏