mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Frontend types
This commit is contained in:
@@ -18,10 +18,12 @@ const FORMAT_NAME_MAP: Record<AnyModelConfig['format'], string> = {
|
|||||||
bnb_quantized_nf4b: 'quantized',
|
bnb_quantized_nf4b: 'quantized',
|
||||||
gguf_quantized: 'gguf',
|
gguf_quantized: 'gguf',
|
||||||
api: 'api',
|
api: 'api',
|
||||||
|
omi: 'omi',
|
||||||
};
|
};
|
||||||
|
|
||||||
const FORMAT_COLOR_MAP: Record<AnyModelConfig['format'], string> = {
|
const FORMAT_COLOR_MAP: Record<AnyModelConfig['format'], string> = {
|
||||||
diffusers: 'base',
|
diffusers: 'base',
|
||||||
|
omi: 'base',
|
||||||
lycoris: 'base',
|
lycoris: 'base',
|
||||||
checkpoint: 'orange',
|
checkpoint: 'orange',
|
||||||
invokeai: 'base',
|
invokeai: 'base',
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export type BaseModelType = S['BaseModelType'];
|
|||||||
|
|
||||||
export type ControlLoRAModelConfig = S['ControlLoRALyCORISConfig'] | S['ControlLoRADiffusersConfig'];
|
export type ControlLoRAModelConfig = S['ControlLoRALyCORISConfig'] | S['ControlLoRADiffusersConfig'];
|
||||||
// TODO(MM2): Can we make key required in the pydantic model?
|
// TODO(MM2): Can we make key required in the pydantic model?
|
||||||
export type LoRAModelConfig = S['LoRADiffusersConfig'] | S['LoRALyCORISConfig'];
|
export type LoRAModelConfig = S['LoRADiffusersConfig'] | S['LoRALyCORISConfig'] | S['LoRAOmiConfig'];
|
||||||
// TODO(MM2): Can we rename this from Vae -> VAE
|
// TODO(MM2): Can we rename this from Vae -> VAE
|
||||||
export type VAEModelConfig = S['VAECheckpointConfig'] | S['VAEDiffusersConfig'];
|
export type VAEModelConfig = S['VAECheckpointConfig'] | S['VAEDiffusersConfig'];
|
||||||
export type ControlNetModelConfig = S['ControlNetDiffusersConfig'] | S['ControlNetCheckpointConfig'];
|
export type ControlNetModelConfig = S['ControlNetDiffusersConfig'] | S['ControlNetCheckpointConfig'];
|
||||||
|
|||||||
Reference in New Issue
Block a user