最近stable diffusionをpaperspaceの有料プランで遊んでいたが、GPUが6時間で切れてしまうこともあって時間がとても気になるようになっていたので、それも良くないなと思ったので解約することにした。
paperspaceに対する所感についてはまた今度書くことにするが、ひとまず自分が使っていたnoteを備忘録としておいておくことにする。
(3) WebUI起動
!apt update
!apt -y install python3.10
!apt -y install libpython3.10-dev
!apt -y install build-essential
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
!python3.10 -m pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 –extra-index-url https://download.pytorch.org/whl/cu118 -U
!python3.10 -m pip install xformers==0.0.20 triton==2.0.0 -U
!python3.10 -m pip install httpx==0.24.1
!python3.10 -m pip install matplotlib -U
!python3.10 -m pip install ipython -U
from IPython import get_ipython
get_ipython().run_line_magic(‘matplotlib’, ‘inline’)
%cd /notebooks/stable-diffusion-webui
!python3.10 launch.py –xformers –enable-insecure-extension-access –share –gradio-queue
(1) AUTOMATIC1111のダウンロード
%cd /notebooks
!rm -rf stable-diffusion-webui
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
(2) モデルのダウンロード(ここにダウンロードしたいモデルを追加)
%cd /notebooks/stable-diffusion-webui/models/Stable-diffusion
!wget -nc https://civitai.com/api/download/models/113479 -O beautifulRealistic_brav6.safetensors
!wget -nc https://civitai.com/api/download/models/135862 -O leosamsMoonfilmFp16_filmGrain20.safetensors
!wget -nc https://civitai.com/api/download/models/201259 -O epiCPhotoGasm_Z.safetensors
!wget -nc https://civitai.com/api/download/models/178711 -O yayoimix_v25.safetensors
!wget -nc https://civitai.com/api/download/models/64558 -O kanpiromix_v20.safetensors
!wget -nc https://civitai.com/api/download/models/177164 -O brav7.safetensors
%cd /notebooks/stable-diffusion-webui/models/VAE
!wget -nc https://civitai.com/api/download/models/80869 -O vaeFtMse840000Ema_v100.safetensors
!wget -nc https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors -O vae-ft-mse-840000-ema-pruned.safetensors
!wget -nc https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -O vae-ft-mse-840000-ema-pruned.ckpt
%cd /notebooks/stable-diffusion-webui/models/Lora
!wget -nc https://civitai.com/api/download/models/87339 -O public_v3.0-locon.safetensors
!wget -nc https://civitai.com/api/download/models/31284 -O koreanDollLikeness_v10.safetensors
!wget -nc https://civitai.com/api/download/models/20684 -O Taiwan-doll-likeness.safetensors
!wget -nc https://civitai.com/api/download/models/101662 -O InniePussy1 v4.safetensors
!wget -nc https://civitai.com/api/download/models/18218 -O aespa-winter-23-v1.safetensors
!wget -nc https://huggingface.co/jomcs/NeverEnding_Dream-Feb19-2023/resolve/main/Realistic%20LORA/shojovibe_v11.safetensors -O shojovibe_v11.safetensors
!wget -nc https://civitai.com/api/download/models/16576 -O epiNoiseoffset_v2.safetensors
!wget -nc https://civitai.com/api/download/models/16677 -O cuteGirlMix4_v10.safetensors
!wget -nc https://civitai.com/api/download/models/10187 -O skirtlift.safetensors
!wget -nc https://civitai.com/api/download/models/142766 -O wetshirt.safetensors
!wget -nc https://civitai.com/api/download/models/110467 -O sitting_handjob_v03.safetensors
!wget -nc https://civitai.com/api/download/models/8614 -O breasts_on_glass.safetensors
!wget -nc https://civitai.com/api/download/models/44995 -O zovyaWetHairLORA64_V1.safetensors
!wget -nc https://civitai.com/api/download/models/91693 -O GloryHole.safetensors
!wget -nc https://civitai.com/api/download/models/145500 -O backfinger.safetensors
!wget -nc https://civitai.com/api/download/models/122473 -O Slingshot.safetensors
!wget -nc https://civitai.com/api/download/models/106979 -O Cuddling_handjob.safetensors
!wget -nc https://civitai.com/api/download/models/40982 -O handjob_from_behind.safetensors
!wget -nc https://civitai.com/api/download/models/13134 -O Female_Masturbation.safetensors
!wget -nc https://civitai.com/api/download/models/88489 -O Fingering_from_behind.safetensors
!wget -nc https://civitai.com/api/download/models/12045 -O pussy Fingering.safetensors
!wget -nc https://civitai.com/api/download/models/20546 -O Female_Masturbation_boob.safetensors
!wget -nc https://civitai.com/api/download/models/80742 -O Mutual_masturbation_yuri.safetensors
!wget -nc https://civitai.com/api/download/models/9042 -O Realistic_Titfuck.safetensors
!wget -nc https://civitai.com/api/download/models/21843 -O under_table_oral.safetensors
!wget -nc https://civitai.com/api/download/models/137929 -O deepthroat.safetensors
!wget -nc https://civitai.com/api/download/models/101249 -O deepthroat_anime.safetensors
!wget -nc https://civitai.com/api/download/models/94584 -O ass_grab.safetensors
!wget -nc https://civitai.com/api/download/models/55098 -O ass_up_wait.safetensors
!wget -nc https://civitai.com/api/download/models/69251 -O ass_up_wait_feet.safetensors
!wget -nc https://civitai.com/api/download/models/88097 -O ass_worship.safetensors
!wget -nc https://civitai.com/api/download/models/65141 -O ass_cake.safetensors
!wget -nc https://civitai.com/api/download/models/52462 -O ass_wall.safetensors
!wget -nc https://civitai.com/api/download/models/155980 -O Sword_swallowing_position.safetensors
!wget -nc https://civitai.com/api/download/models/55644 -O multiple_girls.safetensors
!wget -nc https://civitai.com/api/download/models/26089 -O multiple_ass.safetensors
!wget -nc https://civitai.com/api/download/models/100097 -O multiple_view.safetensors
!wget -nc https://civitai.com/api/download/models/60964 -O multiple_view_pov.safetensors
!wget -nc https://civitai.com/api/download/models/128072 -O multiple_paizuri.safetensors
!wget -nc https://civitai.com/api/download/models/132739 -O onoff.safetensors
!wget -nc https://civitai.com/api/download/models/57195 -O spread.safetensors
!wget -nc https://civitai.com/api/download/models/23784 -O legs_up.safetensors
!wget -nc https://civitai.com/api/download/models/41521 -O legs_up2.safetensors
!wget -nc https://civitai.com/api/download/models/239615 -O legs_up_missionary.safetensors
!wget -nc https://civitai.com/api/download/models/11192 -O Imminent_Penetration.safetensors
!wget -nc https://civitai.com/api/download/models/21845 -O on_penis.safetensors
!wget -nc https://civitai.com/api/download/models/33555 -O mating_press.safetensors
!wget -nc https://civitai.com/api/download/models/12304 -O jack_o.safetensors
!wget -nc https://civitai.com/api/download/models/20427 -O seifuku.safetensors
!wget -nc https://civitai.com/api/download/models/7870 -O shirtlift.safetensors
%cd /notebooks/stable-diffusion-webui/embeddings
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://huggingface.co/datasets/gsdf/EasyNegative/resolve/main/EasyNegative.safetensors -O EasyNegative.safetensors
!wget -nc https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/embedding/EasyNegativeV2.safetensors -O EasyNegativeV2.safetensors
!wget -nc https://huggingface.co/yesyeahvh/bad-hands-5/resolve/main/bad-hands-5.pt -O bad-hands-5.pt
!wget -nc https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt -O bad_prompt_version2.pt
!wget -nc https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt.pt -O bad_prompt.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/60938 -O negative_hand-neg.pt
!wget -nc https://civitai.com/api/download/models/77169 -O baddream.pt
!wget -nc https://civitai.com/api/download/models/82745 -O CyberRealistic_Negative-neg.pt