Is there an existing issue for this?
What happened?
I always get an IndexError while applying cross attention optimization at startup regardless of the cross_attention_optimization value. And this causes CUDA out of memory as no optimizations are applied.
After changing Settings > Optimizations > Cross attention optimization and clicking the [Apply settings] button, the optimizer is applied as expected. It only fails at startup.
Steps to reproduce the problem
- Clone the project
- Launch
What should have happened?
IndexError should not be raised.
It should be
applying cross attention optimization: sdp-no-mem
or something.
Commit where the problem happens
05e6fc9
What platforms do you use to access the UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
./webui.sh --opt-sdp-attention --opt-sdp-no-mem-attention --opt-split-attention
List of extensions
Console logs
applying cross attention optimization: IndexError
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/sd_hijack.py", line 172, in hijack
self.optimization_method = apply_optimizations()
File "/content/stable-diffusion-webui/modules/sd_hijack.py", line 67, in apply_optimizations
matching_optimizer = optimizers[0]
IndexError: list index out of range
Additional information
OS: Linux
Is there an existing issue for this?
What happened?
I always get an
IndexErrorwhile applying cross attention optimization at startup regardless of thecross_attention_optimizationvalue. And this causesCUDA out of memoryas no optimizations are applied.After changing Settings > Optimizations > Cross attention optimization and clicking the [Apply settings] button, the optimizer is applied as expected. It only fails at startup.
Steps to reproduce the problem
What should have happened?
IndexErrorshould not be raised.It should be
or something.
Commit where the problem happens
05e6fc9
What platforms do you use to access the UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
List of extensions
Console logs
Additional information
OS: Linux