fix(ui): allow controlnet with preprocessed control image

This commit is contained in:
psychedelicious 2023-06-12 17:17:10 +10:00
parent 811d9ab55a
commit f15a328b80

View File

@ -14,7 +14,10 @@ export const addControlNetToLinearGraph = (
const validControlNets = filter( const validControlNets = filter(
controlNets, controlNets,
(c) => c.isEnabled && Boolean(c.processedControlImage) (c) =>
c.isEnabled &&
(Boolean(c.processedControlImage) ||
(c.processorType === 'none' && Boolean(c.controlImage)))
); );
// Add ControlNet // Add ControlNet