当前位置:   article > 正文

Linux云端部署stable diffusion保姆级教程——基于腾讯云,ubuntu系统_linux 安装 stable diffusion

linux 安装 stable diffusion

#本教程也参考了其他教程,这个是整合版,带#的是注释,不带#的就是命令,需要一行一行复制,然后按回车执行

#最好选择境外Linux,网络环境好,境内需要魔法,下面开始——

#从控制台登录,最好是OrcaTerm登录,复制比较方便

#第一步下载miniconda安装

wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh
  • 1

#第二步安装

bash Miniconda3-py39_4.9.2-Linux-x86_64.sh
  • 1

#第三步配置conda镜像

source ~/.bashrc
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --set show_channel_urls yes
  • 1
  • 2
  • 3
  • 4
  • 5
conda create -n sd python=3.10.9

conda activate sd
  • 1
  • 2
  • 3

#拉取stable diffusion

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

#升级pip

cd stable-diffusion-webui/
pip install --upgrade pip
  • 1
  • 2

#开始安装sd

bash webui.sh
  • 1

#这条命令需要慢慢等待,直到它跑完(以出现127.0.0.1链接为准),再重启

#重启服务器,注意用VNC模式登录

#注意以下代码不要直接复制,把username:password改成你自己想要的用户名:登录密码,把1234改成你喜欢的四位数字作为端口

bash stable-diffusion-webui/webui.sh --enable-insecure-extension-access --xformers --no-half --listen --gradio-auth username:password --port 1234
  • 1

#防火墙放通你设定的端口,这里也就是得放通1234端口,不会放通的,自行百度搜索 “腾讯云如何配置防火墙,放通需要的端口” ,这里不赘述。
#放通端口后,就可以在你本地的浏览器用 你服务器的公网ip:你设定的端口 访问stable diffusion,如172.17.17.1:1234,进入网页输入你设好的用户名和密码

#下面我会汉化,配自己习惯的设置,然后补插件all-in-one,civitai helper,controlnet,deforum,segment等,你可以根据你自己需要补插件,在网页里补就行,这里不赘述具体方法

#下大模型用C站助手(civitai helper)把C站链接复制进去可以识别下载,其他的模型,看下面:


#以下部分为导引内容,不是命令,教你如何下载需要的模型

#比如,下VAE,把下载链接复制,直接问GPT脚本
#提问方法:
#-假设你精通Linux脚本,我是Linux小白,请帮助我
#-我需要下载以下链接的文件到当前目录:https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/a8d77429b111b25ffad4adb4c686a19c73c905d638dd8acb1e0b1d1da300192c?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11e_sd15_ip2p.pth%3B+filename%3D%22control_v11e_sd15_ip2p.pth%22%3B&Expires=1686883210&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvYThkNzc0MjliMTExYjI1ZmZhZDRhZGI0YzY4NmExOWM3M2M5MDVkNjM4ZGQ4YWNiMWUwYjFkMWRhMzAwMTkyYz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODMyMTB9fX1dfQ__&Signature=aSKLfAldk%7EMb3ulgFHI3Yv5lnYxCaeBAkN5ZI%7EM8LpRMqAD8gzA%7EuVF8P4uolYfMOuIO2j2wMlkdPeOIX%7E%7E5S9xIxraRLFEBJy259OF5l-%7E5FuLaHdFY4vFYQZKs42jhghv0tjH-Smu9QJd%7EgBeA8zZTjxU92qZMiB5M0UGVQqhnphxcsbxyp0luYtKbbexhkg69S5fm1uOouKluv8jXO-pLkZVrlnvZr8mqrdBSCKrdhIU%7EpsRIT%7EMnsG%7EpLR7w8QuzONZ5KHxTpzxxhXbXNOZHj4pDam4F%7Evjba7Ndc43%7EuzDkei3uX-N70dGgmY-JDjpFr4jCJ4Isdn0ZTU%7EqzQ__&Key-Pair-Id=KVTP0A1DKRTAX

#注意,如果链接是这样的特别长GPT可能会吞一部分,记得把脚本里面的链接替换成没有被吞的,比如,对于下面这个链接:
https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/a2a0ff91882a0fbacbded5edeca7babdb6d1bd8f770880a91c177bd44cd58633?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_inpaint.pth%3B+filename%3D%22control_v11p_sd15_inpaint.pth%22%3B&Expires=1686888022&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvYTJhMGZmOTE4ODJhMGZiYWNiZGVkNWVkZWNhN2JhYmRiNmQxYmQ4Zjc3MDg4MGE5MWMxNzdiZDQ0Y2Q1ODYzMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwMjJ9fX1dfQ__&Signature=tlHhX4DXiEJ7YuPyPXzEfvNo7GS%7EjSLM705mtadvBiDtTUtAeWQUCP9DvF-pdto%7EQKcScKfPOtvzeFDz7M7%7E4prDTrPQ-1HMGu7otVYNUwK5w1y-FGeMcWZkhTQebXL%7ETxbimr%7EU66h6Iek76rMmco48ohoHw9sgqz0NmntPOtlp2QyJ635FlOo%7EE3IxQRgQo3GoIKW8bgpzyH68tRpqJ2SSXzELpfurHsL11a6ZxBqYpKrmEniGrkNL67EO%7EedGwnoihhdMGqPlbSvATPARKI3tFCZgXEUFxxbQ33XUHFDDmD9tbsqLnrNUKdN7Od5R-eoeQ8cLWkbt60IZ7ToF%7Ew__&Key-Pair-Id=KVTP0A1DKRTAX

#GPT给的是:
#wget -O control_v11p_sd15_inpaint.pth “https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/a2a0ff91882a0fbacbded5edeca7babdb6d1bd8f770880a91c177bd44cd58633?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_inpaint.pth%3B+filename%3D%22control_v11p_sd15_inpaint.pth%22%3B”

#很明显,链接少了,把“”中的链接换回去,也就是:

#wget -O control_v11p_sd15_inpaint.pth “https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/a2a0ff91882a0fbacbded5edeca7babdb6d1bd8f770880a91c177bd44cd58633?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_inpaint.pth%3B+filename%3D%22control_v11p_sd15_inpaint.pth%22%3B&Expires=1686888022&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvYTJhMGZmOTE4ODJhMGZiYWNiZGVkNWVkZWNhN2JhYmRiNmQxYmQ4Zjc3MDg4MGE5MWMxNzdiZDQ0Y2Q1ODYzMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwMjJ9fX1dfQ__&Signature=tlHhX4DXiEJ7YuPyPXzEfvNo7GS%7EjSLM705mtadvBiDtTUtAeWQUCP9DvF-pdto%7EQKcScKfPOtvzeFDz7M7%7E4prDTrPQ-1HMGu7otVYNUwK5w1y-FGeMcWZkhTQebXL%7ETxbimr%7EU66h6Iek76rMmco48ohoHw9sgqz0NmntPOtlp2QyJ635FlOo%7EE3IxQRgQo3GoIKW8bgpzyH68tRpqJ2SSXzELpfurHsL11a6ZxBqYpKrmEniGrkNL67EO%7EedGwnoihhdMGqPlbSvATPARKI3tFCZgXEUFxxbQ33XUHFDDmD9tbsqLnrNUKdN7Od5R-eoeQ8cLWkbt60IZ7ToF%7Ew__&Key-Pair-Id=KVTP0A1DKRTAX”

#你也可以把这个好的链接喂给GPT,让他学习。

#有的人会问,为什么不用公链–share而用–listen呢,主要是听说公链72小时会重置,既然服务器有公网ip,这里不建议用公链

#至于如何获取下载链接,如果你使用的是edge浏览器,你可以在本地点击下载,然后在下载页面右键复制下载链接


#下面补一些常用的模型,这个可以用OrcaTerm登录

#下VAE

cd stable-diffusion-webui/models/VAE
  • 1

#vae-ft-ema-560000-ema-pruned.safetensors

wget -O vae-ft-ema-560000-ema-pruned.safetensors "https://cdn-lfs.huggingface.co/repos/e6/2b/e62b18fe2ea33e689288cace89f82a8ee6cbeb63dd4bdc9de2e84eb264195bb1/95f26a5ab04779d5467d1fcecaf93160ffa523afe399b835b3e1bb77ff2d937a?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27vae-ft-ema-560000-ema-pruned.safetensors%3B+filename%3D%22vae-ft-ema-560000-ema-pruned.safetensors%22%3B&Expires=1686879981&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U2LzJiL2U2MmIxOGZlMmVhMzNlNjg5Mjg4Y2FjZTg5ZjgyYThlZTZjYmViNjNkZDRiZGM5ZGUyZTg0ZWIyNjQxOTViYjEvOTVmMjZhNWFiMDQ3NzlkNTQ2N2QxZmNlY2FmOTMxNjBmZmE1MjNhZmUzOTliODM1YjNlMWJiNzdmZjJkOTM3YT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4Nzk5ODF9fX1dfQ__&Signature=BHVevfi0cGtH3aMQC69R1EQ9OCC22k6s-kyqzE0v36XjwbZAmxhvcyUqeCd21VLJ5FqwuKNFvHKEIc55qwSpqrdhXBAp5EjrMX4GFyTx-ALN7NGMy4QapE4Pml6S6B6WPAKvQw3Hh3%7E9SrZVoJt5hN%7EDfp8ecYfz6y%7EvwJzi5RDI58Jve8XfsBEx8Y5ShsiLSkSxnOCGngsGk0LymQQqiZn7zRdrD8zBdOTas%7Ec52XxfaEpq4nYosPB22Q3e7PZ%7ETcZYzuStcTxDi4mBhly%7E8eub60Z2CcLP10dncAPf%7EFK9eU%7E3z0gC7l8qHZoi0loy8FMun2I7BQwUIh%7EqSCHhww__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#pastel-waifu-diffusion.vae.pt

wget -O pastel-waifu-diffusion.vae.pt "https://civitai-delivery-worker-prod-2023-06-01.5ac0637cfd0766c97916cefa3764fbdf.r2.cloudflarestorage.com/91677/training-images/pastelWaifuDiffusion.euxJ.pt?X-Amz-Expires=86400&response-content-disposition=attachment%3B%20filename%3D%22pastel-waifu-diffusion.vae.pt%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=2fea663d76bd24a496545da373d610fc/20230613/us-east-1/s3/aws4_request&X-Amz-Date=20230613T024911Z&X-Amz-SignedHeaders=host&X-Amz-Signature=2325e5b62e8fcd3d7bd767ef13ea134951e8ea2ff1cd475e62eea78dd4906ff8"
  • 1

#下controlnet模型

cd
cd stable-diffusion-webui/extensions/sd-webui-controlnet/models
  • 1
  • 2

#canny

wget -O control_v11p_sd15_canny.pth "https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/f99cfe4c70910e38e3fece9918a4979ed7d3dcf9b81cee293e1755363af5406a?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_canny.pth%3B+filename%3D%22control_v11p_sd15_canny.pth%22%3B&Expires=1686888016&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvZjk5Y2ZlNGM3MDkxMGUzOGUzZmVjZTk5MThhNDk3OWVkN2QzZGNmOWI4MWNlZTI5M2UxNzU1MzYzYWY1NDA2YT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwMTZ9fX1dfQ__&Signature=FAGWvk4QBE59sF9cI7LguEykwPrphVdSCfdM8%7E-0JNJgoBxvU6k7LWhbi71SsNnfPh2bb0V6MQ4rl6Cvzmpt3WCs2L2Zd3PX3f7U15rXltTJabHFQT3Qsv3xYDGsHWHoAAjvuuy8dhpt-07l3vWPGSbJTSYd2IlizHUi3thrMBSf7UFO8b9AKIsERl4RAoL8ch174PZZne28%7EacJCaXB1YIsisXn1vZdBmXMtWZSb-FeG68BpkawYClRG78JR97iXK2jpjeCsy202-pEsyGz4KNodEpAxP9p4Zv4dRfJvSz%7EwmXGyW4aKJuF1OHBbpXfoTqOclMmDpcsd85Jj6Z9BA__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#mlsd

wget -O control_v11p_sd15_mlsd.pth "https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/22dab177f4c4566ac1c8f68dc2c429b023114e15a644e8c7c0e8f956afe92acf?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_mlsd.pth%3B+filename%3D%22control_v11p_sd15_mlsd.pth%22%3B&Expires=1686888036&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvMjJkYWIxNzdmNGM0NTY2YWMxYzhmNjhkYzJjNDI5YjAyMzExNGUxNWE2NDRlOGM3YzBlOGY5NTZhZmU5MmFjZj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwMzZ9fX1dfQ__&Signature=ZWvpmj0snDy9Zi5FZhTl-lAtvXYCE%7EiwiixSZXOvQfg3z54vSGI4hy55bP7SNp8dYYINA%7EBF8ddz5ZCaEXC2YVhoY97E00qIqaU-Vl-8GixxKYXEgO1YB1K-8%7Eqp3pYbywbKZcGSBKZRTYroZqbq38Ap%7EAxMn8QVcl7YFf-6oPr6dvl3i-panTWKo0UT84ZUreze9noDzIT-3qFKWnaGZCsbGrj7H8KxBv2CuB%7EwEPz0Gw1AJMmg9VYcf4Ec6Wh0TbI2JIHZ3LjO9BkcpoG%7E9Pg71dckabKNf4JKnyv%7EfKnY5w2aIohCUyGN4hFNTU5YMzhVdjFSz1t4-Jwd%7EqZBvw__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#lineart

wget -O control_v11p_sd15s2_lineart_anime.pth "https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/59169ab86e8ae15ad50208cc5832f1cc598b95391d4482ba742b344c8f7f6904?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15s2_lineart_anime.pth%3B+filename%3D%22control_v11p_sd15s2_lineart_anime.pth%22%3B&Expires=1686888071&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvNTkxNjlhYjg2ZThhZTE1YWQ1MDIwOGNjNTgzMmYxY2M1OThiOTUzOTFkNDQ4MmJhNzQyYjM0NGM4ZjdmNjkwND9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwNzF9fX1dfQ__&Signature=BE%7EdWFXPzutRNxWRwkSqMxH6-92d%7E1JyYEndMSfIh-F3V%7Ejp4CPQconCimwtiA3Fh6ewFrAzd8583fU6j4dtOzg0u5149QL8UDdxkCWuq0Wbd6BsfTxXb5t-m3a2TepmNciDzdj9ggFUvIVNnTbXkAbKdJCuq25mPiPrVN3Mt6NTpgOD7rZGkgRjevrfeO9wukhkR9yKYLPtkm4aU30pBElBFFJ3sYxqib39Gawo9akF7MEGgUedc0eRR2BpCzZwtnnWiUhbVFrY6%7EV8vsSsE5WtauAdnbIw3HknND33ZRwLUpjPpA2p7YWzgaS1ff4ux8uRYcUiGbEXHnkBbl%7ER4w__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#openpose

wget -O control_v11p_sd15_openpose.pth "https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/db97becd92cd19aff71352a60e93c2508decba3dee64f01f686727b9b406a9dd?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_openpose.pth%3B+filename%3D%22control_v11p_sd15_openpose.pth%22%3B&Expires=1686887838&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvZGI5N2JlY2Q5MmNkMTlhZmY3MTM1MmE2MGU5M2MyNTA4ZGVjYmEzZGVlNjRmMDFmNjg2NzI3YjliNDA2YTlkZD9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODc4Mzh9fX1dfQ__&Signature=Vqzc5iiCxPrzgpdcDQQbszbQEaLBxeZoxsq7xemqacecSvXYWE9emTI44H%7E0zLTKLrSRtaFaCnDZx4-YWeybsYT8xO9J6dk4i%7EVT-p-WIHKFc52vlMXilwf2z9kP%7EgH%7E34YDr3I8tyjO3ydIlX%7ERHapDcDIVj%7EDl9z--lAQJLbT6EPDuS6zGYXbwC-mTEuXWEpOz1stb7JqSuKOXj9JLHBzuKQSAqusBu2vAnKaR0QhMmQPTwRgEgj7hyFX9pufvj7P6tKTqttdoJA5Lb3B0bmKw81%7EHrPZ76LIli1YYgXVs82DB6bc7f0N%7ENDOcjcMHY12UR2idM4Tl%7Ek8g-W0Cwg__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#inpaint

wget -O control_v11p_sd15_inpaint.pth "https://cdn-lfs.huggingface.co/repos/e7/4c/e74c9ddc88b5a293fa8aafeb615d6c61cb3aaa34dc7ce9e25100dfae2b09bf55/a2a0ff91882a0fbacbded5edeca7babdb6d1bd8f770880a91c177bd44cd58633?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27control_v11p_sd15_inpaint.pth%3B+filename%3D%22control_v11p_sd15_inpaint.pth%22%3B&Expires=1686888022&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2U3LzRjL2U3NGM5ZGRjODhiNWEyOTNmYThhYWZlYjYxNWQ2YzYxY2IzYWFhMzRkYzdjZTllMjUxMDBkZmFlMmIwOWJmNTUvYTJhMGZmOTE4ODJhMGZiYWNiZGVkNWVkZWNhN2JhYmRiNmQxYmQ4Zjc3MDg4MGE5MWMxNzdiZDQ0Y2Q1ODYzMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODY4ODgwMjJ9fX1dfQ__&Signature=tlHhX4DXiEJ7YuPyPXzEfvNo7GS%7EjSLM705mtadvBiDtTUtAeWQUCP9DvF-pdto%7EQKcScKfPOtvzeFDz7M7%7E4prDTrPQ-1HMGu7otVYNUwK5w1y-FGeMcWZkhTQebXL%7ETxbimr%7EU66h6Iek76rMmco48ohoHw9sgqz0NmntPOtlp2QyJ635FlOo%7EE3IxQRgQo3GoIKW8bgpzyH68tRpqJ2SSXzELpfurHsL11a6ZxBqYpKrmEniGrkNL67EO%7EedGwnoihhdMGqPlbSvATPARKI3tFCZgXEUFxxbQ33XUHFDDmD9tbsqLnrNUKdN7Od5R-eoeQ8cLWkbt60IZ7ToF%7Ew__&Key-Pair-Id=KVTP0A1DKRTAX"
  • 1

#下segment模型

cd
cd stable-diffusion-webui/extensions/sd-webui-segment-anything/models/sam

wget -O sam_vit_h_4b8939.pth "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth"
  • 1
  • 2
  • 3
  • 4

#至于Lora模型,因为比较小也可以本地上传,或者用上面同样的方法,这里不赘述

#先急忙写好了纯文字版教程,后续有空再补充图文教程吧

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号