Skip to content

Commit 652502d

Browse files
fix(ui): add sd-3 grid size of 16px to grid util
1 parent 91d981a commit 652502d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

invokeai/frontend/web/src/features/parameters/util/optimalDimension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ export const getOptimalDimension = (base?: BaseModelType | null): number => {
2424
/**
2525
* Gets the grid size for a given base model. For Flux, the grid size is 16, otherwise it is 8.
2626
* - sd-1, sd-2, sdxl: 8
27-
* - flux: 16
27+
* - flux, sd-3: 16
2828
* - default: 8
2929
* @param base The base model
3030
* @returns The grid size for the model, defaulting to 8
3131
*/
3232
export const getGridSize = (base?: BaseModelType | null): number => {
3333
switch (base) {
3434
case 'flux':
35+
case 'sd-3':
3536
return 16;
3637
case 'sd-1':
3738
case 'sd-2':

0 commit comments

Comments
 (0)