mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-12 15:24:55 -05:00
Frontend types
This commit is contained in:
@@ -18,10 +18,12 @@ const FORMAT_NAME_MAP: Record<AnyModelConfig['format'], string> = {
|
||||
bnb_quantized_nf4b: 'quantized',
|
||||
gguf_quantized: 'gguf',
|
||||
api: 'api',
|
||||
omi: 'omi',
|
||||
};
|
||||
|
||||
const FORMAT_COLOR_MAP: Record<AnyModelConfig['format'], string> = {
|
||||
diffusers: 'base',
|
||||
omi: 'base',
|
||||
lycoris: 'base',
|
||||
checkpoint: 'orange',
|
||||
invokeai: 'base',
|
||||
|
||||
@@ -46,7 +46,7 @@ export type BaseModelType = S['BaseModelType'];
|
||||
|
||||
export type ControlLoRAModelConfig = S['ControlLoRALyCORISConfig'] | S['ControlLoRADiffusersConfig'];
|
||||
// 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
|
||||
export type VAEModelConfig = S['VAECheckpointConfig'] | S['VAEDiffusersConfig'];
|
||||
export type ControlNetModelConfig = S['ControlNetDiffusersConfig'] | S['ControlNetCheckpointConfig'];
|
||||
|
||||
Reference in New Issue
Block a user