TensorStack-AI / OnnxStack

C# Stable Diffusion using ONNX Runtime
Apache License 2.0
215 stars 32 forks source link

Unable to use controlnet with LCM onnx #150

Open rocklinkroll opened 1 week ago

rocklinkroll commented 1 week ago

Hi folks,

I'm using LCM onnx and controlnet-hed onnx together, but I will meet exception with here: // Add ControlNet outputs to Unet input foreach (var item in controlNetResults) inferenceParameters.AddInput(item); I assumed there was something wrong with adding controlnet results, and hope for your help!

Best

rocklinkroll commented 1 week ago

It seems ontrolNetResults has 13 block residuals, and we may need the middle one and the other residuals to add with unet corresponding block samples, but in fact inferenceParameters.AddInput(item); is for this purpose?