Skip to content

Commit

Permalink
fix(ui): add sd-3 grid size of 16px to grid util
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Nov 19, 2024
1 parent 91d981a commit 8b05862
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ export const getOptimalDimension = (base?: BaseModelType | null): number => {
/**
* Gets the grid size for a given base model. For Flux, the grid size is 16, otherwise it is 8.
* - sd-1, sd-2, sdxl: 8
* - flux: 16
* - flux, sd-3: 16
* - default: 8
* @param base The base model
* @returns The grid size for the model, defaulting to 8
*/
export const getGridSize = (base?: BaseModelType | null): number => {
switch (base) {
case 'flux':
case 'sd-3':
return 16;
case 'sd-1':
case 'sd-2':
Expand Down

0 comments on commit 8b05862

Please sign in to comment.