fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Error running Colab

Open bennitheblog opened this issue 2 years ago • 6 comments

Last cell in the Google Colab started failing for me today; was running on an older version but even after using the newest linked version here, still having this error:

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in from modules import devices, sd_samplers, upscaler, extensions File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers.py", line 11, in from modules import prompt_parser, devices, processing, images File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 14, in import modules.sd_hijack File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack.py", line 10, in import modules.textual_inversion.textual_inversion File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 13, in from modules import shared, devices, sd_hijack, processing, sd_models, images File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/shared.py", line 19, in from modules.hypernetworks import hypernetwork File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py", line 433 if (optimizer_name := hypernetwork.optimizer_name) in optimizer_dict: ^ SyntaxError: invalid syntax

bennitheblog avatar Nov 05 '22 13:11 bennitheblog

I have this error too.

JasperAlexander avatar Nov 05 '22 13:11 JasperAlexander

me too...

Riooad avatar Nov 05 '22 14:11 Riooad

A1111 probably made a syntax error, they will fix it quickly, keep to box "update_repo" checked and run it until the problem is fixed

TheLastBen avatar Nov 05 '22 14:11 TheLastBen

Referencing the issue https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4330

tridip1931 avatar Nov 05 '22 14:11 tridip1931

Open the hypernetwork.py at /content/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py then remove the code from line 428 to 455 solved the problem (for me).

ghost avatar Nov 05 '22 14:11 ghost

Open the hypernetwork.py at /content/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py then remove the code from line 428 to 455 solved the problem (for me).

If you do that, you will have to remove hypernetwork.py later to allow the repo update, otherwise it won't update

TheLastBen avatar Nov 05 '22 14:11 TheLastBen