If you're having torch version errors on colab (again)
🕑 Added 2023-10-20 02:10:42 +0000 UTCColab updated its env again ๐
If you're having torch version errors on colab
replace:
!python -m pip -q install xformers==0.0.21
with
!python -m pip -q install https://download.pytorch.org/whl/cu118/xformers-0.0.22.post4%2Bcu118-cp310-cp310-manylinux2014_x86_64.whl
Hard-locking torch version (that will downgrade the existing torch) is a lot slower, but maybe that is still a better option.
thanks to @huemin.art
Fixed notebooks:
XL: Stable WarpFusion v0.24.6 -> https://www.patreon.com/posts/stable-v0-24-89857319
L: Stable WarpFusion v0.23.16 -> https://www.patreon.com/posts/stable-v0-23-89400650
M: Stable WarpFusion v0.20.20 -> https://www.patreon.com/posts/stable-v0-20-xl-87886891 (edited)
Comments
Warpfusion
In that input box you need to specify your controlnet folder, not a specific controlnet.
Michael Abginehsaz
What do you mean by folders?
Warpfusion
Where did you input that models path? Controlnet path only accepts folders as inputs
Michael Abginehsaz
Hi. I'm currently using v24.6 and when i try to run the "define SD + K functions, load model" cell after inputting my checkpoint and model paths and running all previous cells, it says "disabling init dummy for non-sdxl models --------------------------------------------------------------------------- FileExistsError Traceback (most recent call last) in () 730 controlnet_models_dir = f"{root_dir}/ControlNet/models" 731 print('You have a controlnet path set up for google drive, but we are not on Colab. Defaulting controlnet model path to ', controlnet_models_dir) --> 732 os.makedirs(controlnet_models_dir, exist_ok=True) 733 #@markdown --- 734 /usr/lib/python3.10/os.py in makedirs(name, mode, exist_ok) 223 return 224 try: --> 225 mkdir(name, mode) 226 except OSError: 227 # Cannot rely on checking for EEXIST, since the operating system FileExistsError: [Errno 17] File exists: '/content/drive/MyDrive/models/ControlNet/controlnet++_canny_sd15_fp16.safetensors'" and I know it says that the file does not exist but I actually downloaded it to my google drive and connected my google drive to google colab. Can you please help?
Warpfusion
or you can just use v0.20 or newer which has this fixed
Michael Wilson
Thank you so much. I am going to look at it tomorrow afternoon when I get home from work
Warpfusion
in the notebook, Edit -> Find and replace (CTRL+H)
Michael Wilson
How and where do I replace this?