mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
set width and height based on defaultModel if passed in
This commit is contained in:
parent
f3fed0b10f
commit
2953dea4a0
@ -242,6 +242,11 @@ export const generationSlice = createSlice({
|
|||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
state.model = result.data;
|
state.model = result.data;
|
||||||
|
|
||||||
|
const optimalDimension = getOptimalDimension(result.data);
|
||||||
|
|
||||||
|
state.width = optimalDimension;
|
||||||
|
state.height = optimalDimension;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user