Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with dynamic prompts & extra networks #770

Open
Firestorm007 opened this issue Apr 26, 2024 · 1 comment
Open

Issue with dynamic prompts & extra networks #770

Firestorm007 opened this issue Apr 26, 2024 · 1 comment

Comments

@Firestorm007
Copy link

I'm recently getting an issue with using dynamic prompts with extra networks such as loras. Not every generation, but fairly frequently it causes the extra networks to fail to load in correctly so that they are not applied and this massively slows the generation down for this image and the next and then it recovers.
I'm using the latest version of forge. Please see error below, can anyone help?

Traceback (most recent call last):
File "C:\Users\lukeg\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 56, in load_networks
net = load_network(name, network_on_disk)
File "C:\Users\lukeg\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 31, in load_network
net.mtime = os.path.getmtime(network_on_disk.filename)
AttributeError: 'NoneType' object has no attribute 'filename'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\lukeg\stable-diffusion-webui\modules\extra_networks.py", line 135, in activate
extra_network.activate(p, extra_network_args)
File "C:\Users\lukeg\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 43, in activate
networks.load_networks(names, te_multipliers, unet_multipliers, dyn_dims)
File "C:\Users\lukeg\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 58, in load_networks
errors.display(e, f"loading network {network_on_disk.filename}")
AttributeError: 'NoneType' object has no attribute 'filename'

@Hunt3rseeker
Copy link

I'm also getting this error on the latest version of Forge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants