前提
Google ColabでStable Diffusionを動かそうとしているのですがエラーが出てしまいます。
参考にしたのは、https://gigazine.net/news/20220907-automatic1111-stable-diffusion-webui/
このサイトです。
エラー修正方法がわかる方は、返信よろしくお願いいたします。
発生している問題・エラーメッセージ
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-15-ab4dd3d6ad8b> in <module> 3 4 get_ipython().system('pip install webui') ----> 5 import webui 6 7 webui.webui() 6 frames /usr/local/lib/python3.7/dist-packages/PIL/Image.py in __getattr__(name) 59 deprecate("Image categories", 10, "is_animated", plural=True) 60 return categories[name] ---> 61 elif name in ("NEAREST", "NONE"): 62 deprecate(name, 10, "Resampling.NEAREST or Dither.NONE") 63 return 0 AttributeError: module 'PIL.Image' has no attribute 'Resampling'
該当のソースコード
python3
1!nvidia-smi 2 3!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui 4%cd stable-diffusion-webui 5 6!pip install -r requirements.txt 7!mkdir repositories 8!git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion 9!git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers 10!git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer 11!git clone https://github.com/salesforce/BLIP.git repositories/BLIP 12!pip install -r repositories/CodeFormer/requirements.txt 13 14#@title Normal 1.4 model 15# get a token from https://huggingface.co/settings/tokens 16user_token = "ユーザートークン" #@param {type:"string"} 17user_header = f"\"Authorization: Bearer {user_token}\"" 18!wget --header={user_header} https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt -O model.ckpt 19 20!wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth 21 22%cd /content/stable-diffusion-webui 23!git pull 24 25import sys 26sys.argv = ['webui.py', "--share", "--opt-split-attention"] 27!pip install webui 28import webui 29webui.webui() 30 31
試したこと
!pip install webui を参考ページのコードに追加。
補足情報(FW/ツールのバージョンなど)

回答1件
あなたの回答
tips
プレビュー