OnnxStack icon indicating copy to clipboard operation
OnnxStack copied to clipboard

Unable to use controlnet with LCM onnx

Open rocklinkroll opened this issue 1 year ago • 1 comments

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 avatar Sep 24 '24 16:09 rocklinkroll

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?

rocklinkroll avatar Sep 24 '24 23:09 rocklinkroll