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:
@ -29,6 +29,7 @@ const selector = createMemoizedSelector(
|
||||
],
|
||||
(controlAdapters, generation, system, nodes, dynamicPrompts, controlLayers, activeTabName) => {
|
||||
const { model } = generation;
|
||||
const { size } = controlLayers.present;
|
||||
const { positivePrompt } = controlLayers.present;
|
||||
|
||||
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 {
|
||||
// Handling for all other tabs
|
||||
|
Reference in New Issue
Block a user