Advertisement
niittymaa

WSL Install Automatic1111 (Without Anaconda)

May 9th, 2023 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. # WSL Easy Install AUTOMATIC1111 #
  2. # ------------------------------ #
  3.  
  4. # Install Ubuntu to WSL
  5. wsl --install Ubuntu
  6.  
  7. # Update distro
  8. sudo apt-get update
  9. sudo apt-get upgrade
  10.  
  11. # Install CUDA
  12. # Alternative way to install CUDA, but larger: sudo apt install nvidia-cudnn
  13. sudo apt install nvidia-cuda-toolkit
  14.  
  15. # Install Python etc.
  16. sudo apt install wget git pip python3 python3-venv
  17.  
  18. # Fix: Cannot locate TCMalloc (improves CPU memory usage)
  19. sudo apt-get install google-perftools
  20.  
  21. # Fix error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
  22. sudo apt-get install python3-opencv
  23.  
  24. # Install AUTOMATIC1111
  25. bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
  26.  
  27. # Run AUTOMATIC1111
  28. ./webui.sh
  29.  
  30. # Use Xformers #
  31. # ------------ #
  32.  
  33. # Activate venv
  34. source stable-diffusion-webui/venv/bin/activate
  35.  
  36. # Install xformers
  37. pip install -U xformers
  38.  
  39. # Start SD with xformers
  40. ./webui.sh --xformers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement