Home Artists Posts Import Register

Content

If you're getting xformers error on colab about cuda version mismatch:
Google colab env has been updated (their cuda version was bumped from 11.8 to 12.1), so we need to update our dependencies.

I'm rolling a hotfix soon, but for now you can:

add a new code cell after the install cell and before the import dependencies cell, with
!pip install https://download.pytorch.org/whl/cu121/xformers-0.0.22.post4-cp310-cp310-manylinux2014_x86_64.whl#sha256=7075114dbf698b609b599f0d35032c0b2f9a389751e8bbf4dd3c628376b0dd9c
and run once. You may or may not need to restart the session (NOT reset) after that.

upd:  fix for versions 0.20 and newer is out, no extra actions needed, just run it like you did before (may need to disconnect and delete current runtime if you're already running)

Comments

Jean Saez

Im gettin this error under 1.4 Install and import dependencies: ImportError: cannot import name 'isDirectory' from 'PIL._util' (/usr/local/lib/python3.10/dist-packages/PIL/_util.py)

Lorenzo Lot

Im gettin this error under 1.4 Install and import dependencies: ModuleNotFoundError: No module named 'lpips'

sxela

Make sure to create the env using the latest venv installer