cheald / sd-webui-loractl

An Automatic1111 extension for dynamically controlling the weights of LoRAs during image generation
MIT License
239 stars 10 forks source link

Issue installing on Vladmandic's SD.NEXT (automatic1111 fork) #8

Closed Alverik closed 1 year ago

Alverik commented 1 year ago

Hi, I recently switched to SD.NEXT (at least with my hardware it's faster than the base AUTOMATIC1111), but I get an error when I install and restart:

12:36:21-546621 ERROR    Module load: D:\Program Files\Vlad1111\extensions\sd-webui-loractl\scripts\loractl.py:
                         ModuleNotFoundError
Module load: D:\Program Files\Vlad1111\extensions\sd-webui-loractl\scripts\loractl.py: ModuleNotFoundError
Module load: D:\Program Files\Vlad1111\extensions\sd-webui-loractl\scripts\loractl.py: ModuleNotFoundError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ D:\Program Files\Vlad1111\modules\script_loading.py:13 in load_module                                               │
│                                                                                                                     │
│   12 │   try:                                                                                                       │
│ > 13 │   │   module_spec.loader.exec_module(module)                                                                 │
│   14 │   except Exception as e:                                                                                     │
│ in exec_module:883                                                                                                  │
│                                                                                                                     │
│                                               ... 2 frames hidden ...                                               │
│                                                                                                                     │
│ D:\Program Files\Vlad1111\extensions\sd-webui-loractl\lib\plot.py:6 in <module>                                     │
│                                                                                                                     │
│    5 import pandas as pd                                                                                            │
│ >  6 from lib.lora_ctl_network import networks                                                                      │
│    7                                                                                                                │
│                                                                                                                     │
│ D:\Program Files\Vlad1111\extensions\sd-webui-loractl\lib\lora_ctl_network.py:10 in <module>                        │
│                                                                                                                     │
│    9 sys.path.insert(0, str(lora_path))                                                                             │
│ > 10 import network, networks, network_lora, extra_networks_lora                                                    │
│   11 sys.path.pop(0)                                                                                                │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'network'

I hope it's possible to make it work on it too. Sorry for the inconvenience.

cheald commented 1 year ago

SD.Next uses the pre-1.5 LoRA handling code and is not compatible with this extension. You might try composable lora, from which this extension borrows some concepts.