Stable Diffusion
リンク
モデル(二次元)
モデル(三次元)
henmix real(アジア人)
realDosMix(https://www.youtube.com/watch?v=YsTSrjfmlag (colab))
chilloutmix(https://github.com/nolanaatama/sd-1click-colab)
NewMarsMix(西洋人)
cityedgemix(https://civitai.com/models/38464/cityedgemix)
Lucky Strike Mix
OrangeChillMix(https://civitai.com/models/9486/orangechillmix)
Deliberate v2(https://civitai.com/models/4823/deliberate?modelVersionId=15236)
NeverEndingDream(https://civitai.com/models/10028/neverending-dream-ned?modelVersionId=11925)
kanpiroMIx
fantasticmix_real(https://civitai.com/models/22402/fantasticmixreal?modelVersionId=30145)
SunshineMix&SunlightMix(https://civitai.com/models/9291/sunshinemixsunlightmix?modelVersionId=11194)
Basil Mix
GenesisLifeMix(https://www.youtube.com/watch?v=e_Jct_V2xts (colab))
KencanMix(https://civitai.com/models/34686/kencanmix?modelVersionId=47979)
各種コード
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services | |||||
!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 –extra-index-url https://download.pytorch.org/whl/cu116 | |||||
from google.colab import drive | |||||
drive.mount(‘/content/drive’) | |||||
!cp /content/drive/MyDrive/StableDiffusion/Model/facebombmix_v1.safetensors /content/stable-diffusion-webui/models/Stable-diffusion/ | |||||
!cp /content/drive/MyDrive/StableDiffusion/VAE/kl-f8-anime2.ckpt /content/stable-diffusion-webui/models/VAE | |||||
–xformers | |||||
もしくはノートブックを新規作成から次のコードを実行(CivitaiからDLする場合は、https://civitai.com/api/download/models/24196のようにする) | |||||
%pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 –extra-index-url https://download.pytorch.org/whl/cu117 | |||||
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui | |||||
%cd /content/stable-diffusion-webui | |||||
!wget https://huggingface.co/nuigurumi/basil_mix/resolve/main/Basil_mix_fixed.safetensors -O /content/stable-diffusion-webui/models/Stable-diffusion/Basil_mix_fixed.safetensors | |||||
!wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors -O /content/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.safetensors | |||||
!python launch.py –share –xformers –enable-insecure-extension-access | |||||
最速でWebUIを起動 | |||||
https://github.com/camenduru/stable-diffusion-webui-colab | |||||
https://www.youtube.com/@nolanaatama/videos |
エラー
ChilloutMixを実行してpublic urlが表示されず、次のエラーが出た RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install. | ||||||||
https://yuuyuublog.org/facebombmix/#toc3 | ||||||||
https://qiita.com/maskot1977/items/1d11d5875054b5a345ad | ||||||||
を参考にすること | ||||||||
StableDiffusionWebUI上で実行したときに次のエラーが発生 NansException: A tensor with all NaNs was produced in Unet. | ||||||||
https://blogcake.net/sd-cant-generate/ | ||||||||
を参考に設定を変えること | ||||||||
これでダメな場合は、 | ||||||||
https://wikiwiki.jp/sd_toshiaki/%E3%82%A8%E3%83%A9%E3%83%BC%E8%A7%A3%E6%B1%BA%E3%83%A1%E3%83%A2#we158a86 | ||||||||
を参考にすること。WebUIのモデルにLoRAを設定しているかららしい。 | ||||||||
拡張子が「.safetensors」でもLoRAとモデル本体のものがある | ||||||||
WebUIを起動後に、colabにError: Exception in ASGI application | ||||||||
local URLでやると直る もしくは画像が生成されるまでもう少し待つこと | ||||||||
警告: GPU ランタイムに接続していますが、GPU は使用されていません | ||||||||
Googleから一時的にペナルティを受けている状態 | ||||||||
NansException: A tensor with all NaNs was produced in VAE. This could be because there’s not enough precision to represent the picture. Try adding –no-half-vae commandline argument to fix this. Use –disable-nan-check commandline argument to disable this check. | ||||||||
https://huggingface.co/andite/anything-v4.0/discussions/23 | ||||||||
メモ帳でwebui-user.batを開き、set COMMANDLINE_ARGSに 「–no-half-vae」を追加して上書き保存 | ||||||||
ControlNetをAutomatic1111に追加する際に、AssertionErrorが出る場合 | ||||||||
https://murasan-net.com/index.php/2023/03/02/paperspace-automatic1111-howto/ | ||||||||
COMMAND_LINE の–gradio–auth me: qwertyのあとに –enable-insecure-extension-accessを追加するだけ | ||||||||
OutOfMemoryError: CUDA out of memory | ||||||||
GPUのメモリ不足 |