From 534d4fa495f29502e778394694c65bda0417acfa Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 8 Aug 2024 18:10:20 +1000 Subject: [PATCH] fix(ui): depth anything v2 --- .../frontend/web/src/features/controlLayers/store/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/store/types.ts b/invokeai/frontend/web/src/features/controlLayers/store/types.ts index 45262c8831..995d0e2d3b 100644 --- a/invokeai/frontend/web/src/features/controlLayers/store/types.ts +++ b/invokeai/frontend/web/src/features/controlLayers/store/types.ts @@ -91,7 +91,7 @@ const zContentShuffleProcessorConfig = z.object({ }); export type ContentShuffleProcessorConfig = z.infer; -const zDepthAnythingModelSize = z.enum(['large', 'base', 'small']); +const zDepthAnythingModelSize = z.enum(['large', 'base', 'small', 'small_v2']); export type DepthAnythingModelSize = z.infer; export const isDepthAnythingModelSize = (v: unknown): v is DepthAnythingModelSize => zDepthAnythingModelSize.safeParse(v).success; @@ -293,7 +293,7 @@ export const CA_PROCESSOR_DATA: CAProcessorsData = { buildDefaults: () => ({ id: 'depth_anything_image_processor', type: 'depth_anything_image_processor', - model_size: 'small', + model_size: 'small_v2', }), buildNode: (image, config) => ({ ...config,