mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): allow image dims multiple of 32 with SDXL and T2I adapter
See https://github.com/invoke-ai/InvokeAI/pull/6342#issuecomment-2109912452 for discussion.
This commit is contained in:
parent
32dff2c4e3
commit
a18d7adad4
@ -133,9 +133,12 @@ const createSelector = (templates: Templates) =>
|
|||||||
} else if (l.controlAdapter.processorConfig && !l.controlAdapter.processedImage) {
|
} else if (l.controlAdapter.processorConfig && !l.controlAdapter.processedImage) {
|
||||||
problems.push(i18n.t('parameters.invoke.layer.controlAdapterImageNotProcessed'));
|
problems.push(i18n.t('parameters.invoke.layer.controlAdapterImageNotProcessed'));
|
||||||
}
|
}
|
||||||
// T2I Adapters require images have dimensions that are multiples of 64
|
// T2I Adapters require images have dimensions that are multiples of 64 (SD1.5) or 32 (SDXL)
|
||||||
if (l.controlAdapter.type === 't2i_adapter' && (size.width % 64 !== 0 || size.height % 64 !== 0)) {
|
if (l.controlAdapter.type === 't2i_adapter') {
|
||||||
problems.push(i18n.t('parameters.invoke.layer.t2iAdapterIncompatibleDimensions'));
|
const multiple = model?.base === 'sdxl' ? 32 : 64;
|
||||||
|
if (size.width % multiple !== 0 || size.height % multiple !== 0) {
|
||||||
|
problems.push(i18n.t('parameters.invoke.layer.t2iAdapterIncompatibleDimensions'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user