2023年3月11日 星期六

AI繪圖 Stable Diffusion 如何免費使用硬體加速器GPU 快速畫圖。圖解說明

1. 複製下面的程式碼

  1. !pip install --upgrade fastapi==0.90.1
  2. !git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
  3. !git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
  4. !curl -Lo chilloutmixni.safetensors https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors
  5. !curl -Lo ulzzang-6500.pt https://huggingface.co/nolanaatama/chomni/resolve/main/ulzzang-6500.pt
  6. !mv "/content/chilloutmixni.safetensors" "/content/stable-diffusion-webui/models/Stable-diffusion"
  7. !mv "/content/ulzzang-6500.pt" "/content/stable-diffusion-webui/embeddings"
  8. %cd /content/stable-diffusion-webui
  9. !COMMANDLINE_ARGS="--share --disable-safe-unpickle --skip-torch-cuda-test --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access" REQS_FILE="requirements.txt" python launch.py

2. 打開下面網址


https://colab.research.google.com/


提示詞

((masterpiece)), ((best quality)), (ultra-detailed),

反提示詞

low quality, bad, low resolution, worst quality, blurry, error, extra digit, missing fingers, bad anatomy, extra leg, missing legs, flat breast, fat, overweight, muscle, wearing underpants

相關軟體下載點

 

GIT

 

https://git-scm.com/

 

Python

 

https://www.python.org/

 

模型下載

 

https://civitai.com/

 

 Stable Diffusion 模型(ckpt/CHECKPOINT)存放路徑
..\stable-diffusion-webui\models\Stable-diffusion\


lora插件模型存放路徑
..\extensions\sd-webui-additional-networks\models\lora


原生lora模型存放路徑
..\stable-diffusion-webui\models\Lora


沒有留言:

張貼留言