TheLastBen / fast-stable-diffusion

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

Error running Colab #394

Open bennitheblog opened 2 years ago

bennitheblog commented 2 years ago

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

JasperAlexander commented 2 years ago

I have this error too.

Riooad commented 2 years ago

me too...

TheLastBen commented 2 years ago

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

tridip1931 commented 2 years ago

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

ghost commented 2 years ago

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).

TheLastBen commented 2 years ago

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