ssube / onnx-web

web UI for GPU-accelerated ONNX pipelines like Stable Diffusion, even on Windows and AMD
https://discord.gg/7CdQmutGuw
MIT License
206 stars 27 forks source link

using the controlnet pipeline without a controlnet selected throws an error #449

Closed ssube closed 11 months ago

ssube commented 11 months ago

If you don't have any controlnets downloaded or don't have one selected in the web UI for some other reason, the menu will be empty and send an empty parameter to the server. When used with the controlnet pipeline, that throws an error:

TypeError: OnnxStableDiffusionControlNetPipeline.init() missing 1 required positional argument: 'feature_extractor'

There are two parts to this: