mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): disable invoke button when t2i adapter used w/ image dims that are not multiples of 64
This commit is contained in:
@ -934,7 +934,8 @@
|
|||||||
"noModelSelected": "No model selected",
|
"noModelSelected": "No model selected",
|
||||||
"noPrompts": "No prompts generated",
|
"noPrompts": "No prompts generated",
|
||||||
"noNodesInGraph": "No nodes in graph",
|
"noNodesInGraph": "No nodes in graph",
|
||||||
"systemDisconnected": "System disconnected"
|
"systemDisconnected": "System disconnected",
|
||||||
|
"t2iAdapterMismatchedDimensions": "T2I Adapters require image dimensions to be multiples of 64"
|
||||||
},
|
},
|
||||||
"maskBlur": "Mask Blur",
|
"maskBlur": "Mask Blur",
|
||||||
"negativePromptPlaceholder": "Negative Prompt",
|
"negativePromptPlaceholder": "Negative Prompt",
|
||||||
|
@ -29,6 +29,7 @@ const selector = createMemoizedSelector(
|
|||||||
],
|
],
|
||||||
(controlAdapters, generation, system, nodes, dynamicPrompts, controlLayers, activeTabName) => {
|
(controlAdapters, generation, system, nodes, dynamicPrompts, controlLayers, activeTabName) => {
|
||||||
const { model } = generation;
|
const { model } = generation;
|
||||||
|
const { size } = controlLayers.present;
|
||||||
const { positivePrompt } = controlLayers.present;
|
const { positivePrompt } = controlLayers.present;
|
||||||
|
|
||||||
const { isConnected } = system;
|
const { isConnected } = system;
|
||||||
@ -143,6 +144,9 @@ const selector = createMemoizedSelector(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (ca.type === 't2i_adapter' && (size.width % 64 !== 0 || size.height % 64 !== 0)) {
|
||||||
|
reasons.push(i18n.t('parameters.invoke.t2iAdapterMismatchedDimensions'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Handling for all other tabs
|
// Handling for all other tabs
|
||||||
|
Reference in New Issue
Block a user