openvinotoolkit / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
250 stars 39 forks source link

Sync fork to the latest A1111 #2

Closed ravi9 closed 11 months ago

ravi9 commented 11 months ago

Description

Error after sync the fork with the latest. Fixed it in extensions-builtin/Lora/network.py:

*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/modules/scripts.py", line 295, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 843, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/extensions-builtin/Lora/scripts/lora_script.py", line 7, in <module>
        import network
      File "/home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/extensions-builtin/Lora/network.py", line 101, in <module>
        class ModuleType:
      File "/home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/extensions-builtin/Lora/network.py", line 102, in ModuleType
        def create_module(self, net: Network, weights: NetworkWeights) -> Network | None:
    TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

---
Loading weights [6ce0161689] from /home/rpanchum/a1111-sd/installers/webui/sd-webui-latest/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors