TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.54k stars 1.31k forks source link

Colab error #2892

Closed bhealey609 closed 3 months ago

bhealey609 commented 3 months ago

Started consistently getting the following error running the Start Stable-Diffusion tab. Previously this would happen occasionally and simply restarting that section would fix it, but now it happens every time with or without the tunnel option checked. Any ideas?

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in initialize.imports() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 39, in imports from modules import processing, gradio_extensons, ui # noqa: F401 File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 18, in import modules.sd_hijack File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack.py", line 5, in from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 13, in from modules.hypernetworks import hypernetwork File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py", line 8, in import modules.textual_inversion.dataset File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/dataset.py", line 12, in from modules import devices, shared, images File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/images.py", line 22, in from modules import sd_samplers, shared, script_callbacks, errors File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers.py", line 5, in from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared, sd_samplers_common, sd_schedulers File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers_kdiffusion.py", line 3, in import k_diffusion.sampling File "/content/gdrive/MyDrive/sd/stablediffusion/src/k-diffusion/k_diffusion/init.py", line 1, in from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils File "/content/gdrive/MyDrive/sd/stablediffusion/src/k-diffusion/k_diffusion/augmentation.py", line 6, in from skimage import transform File "/usr/local/lib/python3.10/dist-packages/skimage/_shared/lazy.py", line 62, in getattr return importlib.import_module(f'{package_name}.{name}') File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/usr/local/lib/python3.10/dist-packages/skimage/transform/init.py", line 4, in from .radon_transform import (radon, iradon, iradon_sart, File "/usr/local/lib/python3.10/dist-packages/skimage/transform/radon_transform.py", line 6, in from ._warps import warp File "/usr/local/lib/python3.10/dist-packages/skimage/transform/_warps.py", line 9, in from ..measure import block_reduce File "/usr/local/lib/python3.10/dist-packages/skimage/measure/init.py", line 2, in from ._marching_cubes_lewiner import marching_cubes File "/usr/local/lib/python3.10/dist-packages/skimage/measure/_marching_cubes_lewiner.py", line 7, in from ._marching_cubes_classic import _marching_cubes_classic File "/usr/local/lib/python3.10/dist-packages/skimage/measure/_marching_cubes_classic.py", line 3, in from . import _marching_cubes_classic_cy ImportError: cannot import name '_marching_cubes_classic_cy' from partially initialized module 'skimage.measure' (most likely due to a circular import) (/usr/local/lib/python3.10/dist-packages/skimage/measure/init.py)

Mortilis commented 3 months ago

Same

mcqx4 commented 3 months ago

Got the same error. Try to write this command above the Start Stable Diffusion cell:

!pip install --upgrade scikit-image

It worked for me

HaikenEdge commented 3 months ago

Got the same error. Try to write this command above the Start Stable Diffusion cell:

!pip install --upgrade scikit-image

It worked for me

This seems to be the current solution.

da-art-fantasy commented 3 months ago

Thank you mcqx4,

It also worked for me.

aifantasyglam commented 3 months ago

It worked, thanks a lot, I'm just curious why this error appeared...?

image

HaikenEdge commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 162, in webui() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 52, in webui initialize.initialize() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 74, in initialize initialize_rest(reload_script_modules=False) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 102, in initialize_rest sd_models.list_models() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 165, in list_models model_list = modelloader.load_models(model_path=model_path, model_url=model_url, command_path=shared.cmd_opts.ckpt_dir, ext_filter=[".ckpt", ".safetensors"], download_name="v1-5-pruned-emaonly.safetensors", ext_blacklist=[".vae.ckpt", ".vae.safetensors"], hash_prefix=expected_sha256) TypeError: load_models() got an unexpected keyword argument 'hash_prefix'

aifantasyglam commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

HaikenEdge commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error.

Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

aifantasyglam commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error.

Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

Is working for me, and I use colab pro

you have to use this

image

HaikenEdge commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error. Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

Is working for me, and I use colab pro

you have to use this

image

Even with the controlnet module, I'm still getting the error with the hotfix.

aifantasyglam commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error. Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

Is working for me, and I use colab pro you have to use this image

Even with the controlnet module, I'm still getting the error with the hotfix.

I got this error some months ago, check this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15167

HaikenEdge commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error. Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

Is working for me, and I use colab pro you have to use this image

Even with the controlnet module, I'm still getting the error with the hotfix.

I got this error some months ago, check this: AUTOMATIC1111/stable-diffusion-webui#15167

Thanks for that, but that's just way too complicated for my dinosaur brain to figure out. I'll wait for an update to make it easier to deal with.

aifantasyglam commented 3 months ago

The hotfix by @mcqx4 stopped working; I'm now getting the following error with the hotfix:

Still working, have you tried Last Ben original notebook....?! https://github.com/TheLastBen/fast-stable-diffusion?tab=readme-ov-file

I refreshed to make sure it was the newest version of the notebook, got the original error, applied @mcqx4 's hotfix and then got the new error. Also, does this even support Colab Pro anymore? I see a notebook for Paperspace, but not one for Colab Pro.

Is working for me, and I use colab pro you have to use this image

Even with the controlnet module, I'm still getting the error with the hotfix.

I got this error some months ago, check this: AUTOMATIC1111/stable-diffusion-webui#15167

Thanks for that, but that's just way too complicated for my dinosaur brain to figure out. I'll wait for an update to make it easier to deal with.

don´t worry, just need to use this line above the Start Stable Diffusion cell: !pip install --upgrade spandrel_extra_arches spandrel

image

HaikenEdge commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel

Tried that, didn't solve the problem.

aifantasyglam commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel

Tried that, didn't solve the problem.

did you kept the previous solution like this...? both are required

image

HaikenEdge commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel

Tried that, didn't solve the problem.

did you kept the previous solution like this...? both are required

image

Previously had to two reversed, tried it your way, still didn't solve the problem.

aifantasyglam commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel

Tried that, didn't solve the problem.

did you kept the previous solution like this...? both are required image

Previously had to two reversed, tried it your way, still didn't solve the problem.

is weird...

did you tried marking this: Use_Cloudflare_Tunnel ?

HaikenEdge commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel

Tried that, didn't solve the problem.

did you kept the previous solution like this...? both are required image

Previously had to two reversed, tried it your way, still didn't solve the problem.

is weird...

did you tried marking this: Use_Cloudflare_Tunnel ?

Tried that, didn't solve the issue either. Thank though.

kaitas commented 3 months ago

@HaikenEdge it may work for you!

!pip install lmdb !pip uninstall scikit-image !pip install scikit-image

HaikenEdge commented 3 months ago

@HaikenEdge it may work for you!

!pip install lmdb !pip uninstall scikit-image !pip install scikit-image

Unfortunately, that didn't solve the problem either.

coder-xiaotian commented 3 months ago

same

BlessedDuelOP commented 3 months ago

Hello, good day. I’m also having the same problem. I solved it by running the cell !pip install --upgrade scikit-image. I can generate images of 640x960, however, when I try to apply a hiresfix, I get the following error: ERROR

I have always been able to apply hiresfix at that resolution for a long time; I think it might be an error with xformers that is no longer present, but I’m not sure. I would greatly appreciate the help.

CosmoKramer108 commented 3 months ago

Is working for me, and I use colab pro

you have to use this

![image](https://private-user-images.githubusercontent.com/162564405/352704631-f7a21f1c-6157-484e-98d4-9a5285a9b0cf.png?

How do I open or use this link? Back then with the short cut from Ben I came directly to the google interface.

aifantasyglam commented 3 months ago

Is working for me, and I use colab pro you have to use this ![image](https://private-user-images.githubusercontent.com/162564405/352704631-f7a21f1c-6157-484e-98d4-9a5285a9b0cf.png?

How do I open or use this link? Back then with the short cut from Ben I came directly to the google interface.

download this file: image

and upload it here: https://colab.research.google.com/

image

aionrevenge commented 3 months ago

!pip install --upgrade spandrel_extra_arches spandrel !pip install --upgrade scikit-image

it's worked, thank you guys

TheLastBen commented 3 months ago

fixed, no need to add the pip install lines

HaikenEdge commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

aifantasyglam commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

same situation

CosmoKramer108 commented 3 months ago

and upload it here: https://colab.research.google.com/

It works. Thank you very much.

HaikenEdge commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

Apparently, had to delete everything and reinstall, which I was hoping to avoid. Working now.

aifantasyglam commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

Apparently, had to delete everything and reinstall, which I was hoping to avoid. Working now.

Oh I see, I tried the updated file, and now is working image

HaikenEdge commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

Apparently, had to delete everything and reinstall, which I was hoping to avoid. Working now.

Oh I see, I tried the updated file, and now is working image

I tried that yesterday after it had been updated and it didn't fix it, which is why I had to nuke the folder.

aifantasyglam commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

Apparently, had to delete everything and reinstall, which I was hoping to avoid. Working now.

Oh I see, I tried the updated file, and now is working image

I tried that yesterday after it had been updated and it didn't fix it, which is why I had to nuke the folder.

yes, I did the same, but I tried some minutes ago and now is working, I think that maybe is required to wait some minutes or hours to get the file refreshed

HaikenEdge commented 3 months ago

fixed, no need to add the pip install lines

I'm glad you fixed it, but I've tried refreshing to notebook to get the latest version and I've tried using the download @aifantasyglam specified, but I'm still getting the error. Do I need to delete the contents of my SD folder or something?

Apparently, had to delete everything and reinstall, which I was hoping to avoid. Working now.

Oh I see, I tried the updated file, and now is working image

I tried that yesterday after it had been updated and it didn't fix it, which is why I had to nuke the folder.

yes, I did the same, but I tried some minutes ago and now is working, I think that maybe is required to wait some minutes or hours to get the file refreshed

Don't know if that's actually the case, since I uploaded the notebook, ran it, errored, killed the Colab session, renamed the SD folder, ran notebook again and it was working immediately.

aifantasyglam commented 3 months ago

Hello everyone, regarding the problem mentioned in this thread, have anyone had this kind of issue using "reactor"...?

2024-07-30 07:15:53.006386379 [E:onnxruntime:Default, provider_bridge_ort.cc:1745 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1426 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directory

image