mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 20:55:09 -05:00
fix(ui): remove special handling for flux in IPAdapterModel
This masked an issue w/ the CLIP Vision model. Issue is now handled in reducer/graph builder.
This commit is contained in:
@@ -71,19 +71,15 @@ export const IPAdapterModel = memo(({ modelKey, onChangeModel, clipVisionModel,
|
||||
});
|
||||
|
||||
const clipVisionOptions = useMemo(() => {
|
||||
if (isFLUX) {
|
||||
return CLIP_VISION_OPTIONS.map((option) => ({ ...option, isDisabled: option.value !== FLUX_CLIP_VISION }));
|
||||
} else {
|
||||
return CLIP_VISION_OPTIONS;
|
||||
}
|
||||
return CLIP_VISION_OPTIONS.map((option) => ({
|
||||
...option,
|
||||
isDisabled: isFLUX && option.value !== FLUX_CLIP_VISION,
|
||||
}));
|
||||
}, [isFLUX]);
|
||||
|
||||
const clipVisionModelValue = useMemo(() => {
|
||||
if (isFLUX) {
|
||||
return CLIP_VISION_OPTIONS.find((o) => o.value === FLUX_CLIP_VISION);
|
||||
}
|
||||
return CLIP_VISION_OPTIONS.find((o) => o.value === clipVisionModel);
|
||||
}, [clipVisionModel, isFLUX]);
|
||||
}, [clipVisionModel]);
|
||||
|
||||
return (
|
||||
<Flex gap={2}>
|
||||
|
||||
Reference in New Issue
Block a user