Skip to content

Commit

Permalink
fix(ui): prevent queuing when w/ invalid bbox w/ FLUX
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Sep 20, 2024
1 parent 4eba71c commit bc643a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions invokeai/frontend/web/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@
"noFLUXVAEModelSelected": "No VAE model selected for FLUX generation",
"noCLIPEmbedModelSelected": "No CLIP Embed model selected for FLUX generation",
"canvasManagerNotLoaded": "Canvas Manager not loaded",
"fluxModelIncompatibleDimensions": "FLUX requires image dimension to be multiples of 16",
"canvasIsFiltering": "Canvas is filtering",
"canvasIsTransforming": "Canvas is transforming",
"canvasIsRasterizing": "Canvas is rasterizing",
Expand Down
3 changes: 3 additions & 0 deletions invokeai/frontend/web/src/common/hooks/useIsReadyToEnqueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ const createSelector = (
if (!params.fluxVAE) {
reasons.push({ content: i18n.t('parameters.invoke.noFLUXVAEModelSelected') });
}
if (bbox.rect.width % 16 !== 0 || bbox.rect.height % 16 !== 0) {
reasons.push({ content: i18n.t('parameters.invoke.fluxModelIncompatibleDimensions') });
}
}

canvas.controlLayers.entities
Expand Down

0 comments on commit bc643a9

Please sign in to comment.