mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 00:04:59 -05:00
handle flux-kontext models
This commit is contained in:
committed by
Mary Hipp Rogers
parent
b52ba149b4
commit
3ef2872dda
@@ -121,6 +121,16 @@ export const refImagesSlice = createSlice({
|
||||
return;
|
||||
}
|
||||
|
||||
if (entity.config.model.base === 'flux-kontext') {
|
||||
// Switching to flux-kontext ref image
|
||||
entity.config = {
|
||||
...initialFluxKontextReferenceImage,
|
||||
image: entity.config.image,
|
||||
model: entity.config.model,
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
if (entity.config.model.type === 'flux_redux') {
|
||||
// Switching to flux_redux
|
||||
entity.config = {
|
||||
|
||||
Reference in New Issue
Block a user