0xbitches / sd-webui-lcm

Latent Consistency Model for AUTOMATIC1111 Stable Diffusion WebUI
MIT License
614 stars 43 forks source link

Running LCM with torch.compile on linux fails with garbage on screen #13

Open kaosbeat opened 9 months ago

kaosbeat commented 9 months ago

Trying the ¨"Running LCM with torch.compile" option I get lots of these in the console

[2023-10-24 11:21:04,129] torch._dynamo.symbolic_convert: [WARNING] ~/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/linear.py <function Linear.forward at 0x7f71aa221a20> [UserDefinedObjectVariable(LoraPatches), NNModuleVariable(), TensorVariable()] {} too many positional arguments

and a screen filled with image

without the option it works fine

0xbitches commented 9 months ago

torch.compile can be quite finicky depending on the env. For now this is an experimental option. I unfortunately cannot reproduce this.