mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
update translations, change config value to be dimension instead of total pixels
This commit is contained in:
committed by
psychedelicious
parent
90ec757802
commit
2cff20f87a
@ -212,11 +212,11 @@ const createSelector = (templates: Templates) =>
|
||||
} else if (activeTabName === 'upscaling') {
|
||||
if (!upscale.upscaleInitialImage) {
|
||||
reasons.push({ content: i18n.t('upscaling.missingUpscaleInitialImage') });
|
||||
} else if (config.maxUpscalePixels) {
|
||||
} else if (config.maxUpscaleDimension) {
|
||||
const upscaledPixels =
|
||||
upscale.upscaleInitialImage.width * upscale.scale * upscale.upscaleInitialImage.height * upscale.scale;
|
||||
if (upscaledPixels > config.maxUpscalePixels) {
|
||||
reasons.push({ content: i18n.t('upscaling.outputTooLargeShort') });
|
||||
if (upscaledPixels > config.maxUpscaleDimension) {
|
||||
reasons.push({ content: i18n.t('upscaling.exceedsMaxSize') });
|
||||
}
|
||||
}
|
||||
if (!upscale.upscaleModel) {
|
||||
|
Reference in New Issue
Block a user