mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
cbcd416b70
Rolled back the earlier split of the refiner model query. Now, when you use `useGetMainModelsQuery()`, you must provide it an array of base model types. They are provided as constants for simplicity: - ALL_BASE_MODELS - NON_REFINER_BASE_MODELS - REFINER_BASE_MODELS Opted to just use args for the hook instead of wrapping the hook in another hook, we can tidy this up later if desired.
17 lines
306 B
TypeScript
17 lines
306 B
TypeScript
import { BaseModelType } from './types';
|
|
|
|
export const ALL_BASE_MODELS: BaseModelType[] = [
|
|
'sd-1',
|
|
'sd-2',
|
|
'sdxl',
|
|
'sdxl-refiner',
|
|
];
|
|
|
|
export const NON_REFINER_BASE_MODELS: BaseModelType[] = [
|
|
'sd-1',
|
|
'sd-2',
|
|
'sdxl',
|
|
];
|
|
|
|
export const REFINER_BASE_MODELS: BaseModelType[] = ['sdxl-refiner'];
|