mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: Rebuild API - base_model and type added
This commit is contained in:
@ -2,9 +2,14 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
|
||||
export type ControlNetModelConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: ('checkpoint' | 'diffusers');
|
||||
|
@ -2,9 +2,14 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
|
||||
export type LoRAModelConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: ('lycoris' | 'diffusers');
|
||||
|
@ -12,5 +12,5 @@ import type { TextualInversionModelConfig } from './TextualInversionModelConfig'
|
||||
import type { VaeModelConfig } from './VaeModelConfig';
|
||||
|
||||
export type ModelsList = {
|
||||
models: Record<string, Record<string, Record<string, (StableDiffusion1ModelDiffusersConfig | StableDiffusion2ModelCheckpointConfig | TextualInversionModelConfig | ControlNetModelConfig | VaeModelConfig | StableDiffusion2ModelDiffusersConfig | LoRAModelConfig | StableDiffusion1ModelCheckpointConfig)>>>;
|
||||
models: Record<string, Record<string, Record<string, (TextualInversionModelConfig | StableDiffusion2ModelDiffusersConfig | ControlNetModelConfig | StableDiffusion2ModelCheckpointConfig | StableDiffusion1ModelCheckpointConfig | VaeModelConfig | StableDiffusion1ModelDiffusersConfig | LoRAModelConfig)>>>;
|
||||
};
|
||||
|
@ -2,10 +2,15 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
import type { ModelVariantType } from './ModelVariantType';
|
||||
|
||||
export type StableDiffusion1ModelCheckpointConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: 'checkpoint';
|
||||
|
@ -2,10 +2,15 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
import type { ModelVariantType } from './ModelVariantType';
|
||||
|
||||
export type StableDiffusion1ModelDiffusersConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: 'diffusers';
|
||||
|
@ -2,11 +2,16 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
import type { ModelVariantType } from './ModelVariantType';
|
||||
import type { SchedulerPredictionType } from './SchedulerPredictionType';
|
||||
|
||||
export type StableDiffusion2ModelCheckpointConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: 'checkpoint';
|
||||
|
@ -2,11 +2,16 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
import type { ModelVariantType } from './ModelVariantType';
|
||||
import type { SchedulerPredictionType } from './SchedulerPredictionType';
|
||||
|
||||
export type StableDiffusion2ModelDiffusersConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: 'diffusers';
|
||||
|
@ -2,9 +2,14 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
|
||||
export type TextualInversionModelConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: null;
|
||||
|
@ -2,9 +2,14 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BaseModelType } from './BaseModelType';
|
||||
import type { ModelError } from './ModelError';
|
||||
import type { ModelType } from './ModelType';
|
||||
|
||||
export type VaeModelConfig = {
|
||||
name: string;
|
||||
base_model: BaseModelType;
|
||||
type: ModelType;
|
||||
path: string;
|
||||
description?: string;
|
||||
format: ('checkpoint' | 'diffusers');
|
||||
|
Reference in New Issue
Block a user