当前位置:AIGC资讯 > AIGC > 正文

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

案例三

 案例四-图生图

更新时间 2023-11-24