当前位置:   article > 正文

Stable Diffusion WebUI 集成 sd-webui-segment-anything sd-webui-inpaint-anything Ubuntu22.04 rtx2060 6G

sd-webui-segment-anything

下载插件

sd-webui-segment-anything

  1. cd /home/yeqiang/Downloads/ai/stable-diffusion-webui/extensions
  2. git clone https://github.com/continue-revolution/sd-webui-segment-anything.git

下载分割模型(segmentation models):

显存只有6G,选择l版本

  1. cd /home/yeqiang/Downloads/ai/stable-diffusion-webui/
  2. mkdir models/sam
  3. cd models/sam
  4. # wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
  5. wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth
  6. # wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth

sd-webui-inpaint-anything

  1. cd /home/yeqiang/Downloads/ai/stable-diffusion-webui/extensions
  2. git clone https://github.com/Uminosachi/sd-webui-inpaint-anything.git

sd-webui-controlnet

  1. cd /home/yeqiang/Downloads/ai/stable-diffusion-webui/extensions
  2. git clone https://github.com/Mikubill/sd-webui-controlnet.git

lllyasviel/ControlNet-v1-1 at main

下载14个.pth模型文件,yaml文件已经在models目录下了

 

今天下载的新鲜文件,放阿里云盘了

ControlNet-v1-1-20230706

https://www.aliyundrive.com/s/LtpNFP8stg5 

cp ~/Downloads/ai/ControlNet-v1-1/control*.pth extensions/sd-webui-controlnet/models/

启动后又开始安装各种Python依赖。网络环境不行气死人

漫长时间等待后

  1. yeqiang@yeqiang-MS-7B23:~/Downloads/ai/stable-diffusion-webui$ ./webui.sh
  2. ################################################################
  3. Install script for stable-diffusion + Web UI
  4. Tested on Debian 11 (Bullseye)
  5. ################################################################
  6. ################################################################
  7. Running on yeqiang user
  8. ################################################################
  9. ################################################################
  10. Repo already cloned, using it as install directory
  11. ################################################################
  12. ################################################################
  13. Create and activate python venv
  14. ################################################################
  15. ################################################################
  16. Launching launch.py...
  17. ################################################################
  18. Using TCMalloc: libtcmalloc_minimal.so.4
  19. Python 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0]
  20. Version: v1.4.0
  21. Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
  22. Installing requirements
  23. Installing sd-webui-segment-anything requirement: segment_anything
  24. Installing sd-webui-segment-anything requirement: supervision
  25. Installing requirements for diffusers
  26. Installing requirements for lama_cleaner
  27. Installing requirements for ultralytics
  28. Installing sd-webui-controlnet requirement: mediapipe
  29. Installing sd-webui-controlnet requirement: svglib
  30. Installing sd-webui-controlnet requirement: fvcore
  31. Launching Web UI with arguments:
  32. No module 'xformers'. Proceeding without it.
  33. 2023-07-06 14:01:44,629 - ControlNet - INFO - ControlNet v1.1.231
  34. ControlNet preprocessor location: /home/yeqiang/Downloads/ai/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
  35. 2023-07-06 14:01:44,834 - ControlNet - INFO - ControlNet v1.1.231
  36. Loading weights [6ce0161689] from /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
  37. preload_extensions_git_metadata for 11 extensions took 1.00s
  38. Running on local URL: http://127.0.0.1:7860
  39. To create a public link, set `share=True` in `launch()`.
  40. Startup time: 16.1s (import torch: 3.6s, import gradio: 1.3s, import ldm: 0.4s, other imports: 1.5s, load scripts: 6.4s, create ui: 1.7s, gradio launch: 0.9s).
  41. Creating model from config: /home/yeqiang/Downloads/ai/stable-diffusion-webui/configs/v1-inference.yaml
  42. LatentDiffusion: Running in eps-prediction mode
  43. DiffusionWrapper has 859.52 M params.
  44. Applying attention optimization: Doggettx... done.
  45. Textual inversion embeddings loaded(0):
  46. Model loaded in 99.6s (load weights from disk: 5.3s, create model: 1.2s, apply weights to model: 83.6s, apply half(): 8.6s, move model to device: 0.4s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.3s).

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/428232
推荐阅读
相关标签
  

闽ICP备14008679号