mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Remove changes to v1 workflow
This commit is contained in:
parent
5f59a828f9
commit
1d8545a76c
@ -114,11 +114,6 @@ const FIELD_TYPE_V1_TO_STATEFUL_FIELD_TYPE_V2: {
|
|||||||
isCollection: false,
|
isCollection: false,
|
||||||
isCollectionOrScalar: false,
|
isCollectionOrScalar: false,
|
||||||
},
|
},
|
||||||
FluxMainModelField: {
|
|
||||||
name: 'FluxMainModelField',
|
|
||||||
isCollection: false,
|
|
||||||
isCollectionOrScalar: false,
|
|
||||||
},
|
|
||||||
SDXLMainModelField: {
|
SDXLMainModelField: {
|
||||||
name: 'SDXLMainModelField',
|
name: 'SDXLMainModelField',
|
||||||
isCollection: false,
|
isCollection: false,
|
||||||
|
@ -27,7 +27,7 @@ const zScheduler = z.enum([
|
|||||||
'kdpm_2_a',
|
'kdpm_2_a',
|
||||||
'lcm',
|
'lcm',
|
||||||
]);
|
]);
|
||||||
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sdxl', 'sdxl-refiner', 'flux']);
|
const zBaseModel = z.enum(['any', 'sd-1', 'sd-2', 'sdxl', 'sdxl-refiner']);
|
||||||
const zMainModel = z.object({
|
const zMainModel = z.object({
|
||||||
model_name: z.string().min(1),
|
model_name: z.string().min(1),
|
||||||
base_model: zBaseModel,
|
base_model: zBaseModel,
|
||||||
@ -89,7 +89,6 @@ const zFieldTypeV1 = z.enum([
|
|||||||
'ONNXModelField',
|
'ONNXModelField',
|
||||||
'Scheduler',
|
'Scheduler',
|
||||||
'SDXLMainModelField',
|
'SDXLMainModelField',
|
||||||
'FluxMainModelField',
|
|
||||||
'SDXLRefinerModelField',
|
'SDXLRefinerModelField',
|
||||||
'string',
|
'string',
|
||||||
'StringCollection',
|
'StringCollection',
|
||||||
@ -418,11 +417,6 @@ const zSDXLMainModelInputFieldValue = zInputFieldValueBase.extend({
|
|||||||
value: zMainOrOnnxModel.optional(),
|
value: zMainOrOnnxModel.optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const zFluxMainModelInputFieldValue = zInputFieldValueBase.extend({
|
|
||||||
type: z.literal('FluxMainModelField'),
|
|
||||||
value: zMainModel.optional(),
|
|
||||||
});
|
|
||||||
|
|
||||||
const zSDXLRefinerModelInputFieldValue = zInputFieldValueBase.extend({
|
const zSDXLRefinerModelInputFieldValue = zInputFieldValueBase.extend({
|
||||||
type: z.literal('SDXLRefinerModelField'),
|
type: z.literal('SDXLRefinerModelField'),
|
||||||
value: zMainOrOnnxModel.optional(), // TODO: should narrow this down to a refiner model
|
value: zMainOrOnnxModel.optional(), // TODO: should narrow this down to a refiner model
|
||||||
@ -578,7 +572,6 @@ const zInputFieldValue = z.discriminatedUnion('type', [
|
|||||||
zMainModelInputFieldValue,
|
zMainModelInputFieldValue,
|
||||||
zSchedulerInputFieldValue,
|
zSchedulerInputFieldValue,
|
||||||
zSDXLMainModelInputFieldValue,
|
zSDXLMainModelInputFieldValue,
|
||||||
zFluxMainModelInputFieldValue,
|
|
||||||
zSDXLRefinerModelInputFieldValue,
|
zSDXLRefinerModelInputFieldValue,
|
||||||
zStringCollectionInputFieldValue,
|
zStringCollectionInputFieldValue,
|
||||||
zStringPolymorphicInputFieldValue,
|
zStringPolymorphicInputFieldValue,
|
||||||
|
Loading…
Reference in New Issue
Block a user