史上最傻瓜式教程StableDiffusion谷歌云盤安裝使用超詳細(xì)手把手帶著操

報(bào)錯(cuò)是因?yàn)樽髡吒牧讼麓a,然后漏了一個(gè)“import os”。剛剛我去看了下,已經(jīng)修復(fù)了。
谷歌盤太小放不下模型作者也有解決辦法,在colab上運(yùn)行代碼就可以從huggingface上下載模型到colab送你的50g硬盤上了。
我把代碼放上來(lái),作者是提供了pastel-mix這個(gè)模型的代碼,我補(bǔ)充一些個(gè)人比較喜歡的模型。
使用方法就是將代碼復(fù)制到colab上,然后先運(yùn)行一次作者給的代碼,然后再運(yùn)行下載模型的代碼。由于同一時(shí)間只能有一個(gè)代碼運(yùn)行,你需要先關(guān)掉之前的代碼。
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/andite/pastel-mix/resolve/main/pastelmix-fp16.ckpt -d /content/models -o pastelmix-fp16.ckpt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt -d /content/models -o pastelmix-fp16.vae.pt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/stb/animelike2d/resolve/main/animelike25D_animelike25DV11Pruned.safetensors -d /content/models -o animelike25D_animelike25DV11Pruned.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/admruul/anything-v3.0/resolve/main/Anything-V3.0.safetensors -d /content/models -o Anything-V3.0.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/admruul/anything-v3.0/resolve/main/Anything-V3.0.vae.pt -d /content/models -o Anything-V3.0.vae.pt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/anything-v4.5/resolve/main/anything-v4.5.ckpt -d /content/models -o anything-v4.5.ckpt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/naonovn/chilloutmix_NiPrunedFp32Fix/resolve/main/chilloutmix_NiPrunedFp32Fix.safetensors -d /content/models -o chilloutmix_NiPrunedFp32Fix.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/OedoSoldier/ambientmix/resolve/main/ambientmix-half.safetensors -d /content/models -o ambientmix-half.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/mocker/KaBoom/resolve/main/FaceBombMix-fp16-no-ema.safetensors -d /content/models -o FaceBombMix-fp16-no-ema.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/mocker/KaBoom/resolve/main/ColorBombMix-fp16-no-ema.safetensors -d /content/models -o ColorBombMix-fp16-no-ema.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/mocker/KaBoom/resolve/main/HyperBombMix-fp16-no-ema.safetensors -d /content/models -o HyperBombMix-fp16-no-ema.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/Counterfeit-V2.5_pruned.safetensors -d /content/models -o Counterfeit-V2.5_pruned.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/Counterfeit-V2.5.vae.pt -d /content/models -o Counterfeit-V2.5.vae.pt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/doll774/doll774/resolve/main/doll774.ckpt -d /content/models -o doll774.ckpt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ahmmu20/rev_animated/resolve/main/revAnimated_v11.safetensors -d /content/models -o revAnimated_v11.safetensors
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/perfect_world/resolve/main/perfectWorld_v2Baked.safetensors -d /content/models -o perfectWorld_v2Baked.safetensors