show code js

2023年11月9日 星期四

Stable Diffusion for Win & Anaconda

 Install Env AI

  • Clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
    • Download model https://civitai.com/ and move to stable-diffusion-webui\models\Stable-diffusion
  • Download v1-5-pruned-emaonly.ckpt from https://huggingface.co/runwayml/stable-diffusion-v1-5 (use less vram), and move to stable-diffusion-webui\models\Stable-diffusion
  • Settings->Face restoration click GFPGAN
  • Run webui-user.bat
  • Open http://127.0.0.1:7860

Env for AI

 Install Python https://www.python.org/downloads/ (allow use admin and add path)

Install Anaconda https://www.anaconda.com/download

Install pytorch https://pytorch.org/get-started/locally/ find cuda version and dl pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Install Git, Lfs