From 08def3da9534b9bbfd3b757191facfb7a8c45462 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Wed, 31 Jul 2024 23:50:13 +0530 Subject: [PATCH] fix: Update canvas depth anything processor default to v2 --- .../components/processors/DepthAnyThingProcessor.tsx | 2 +- .../web/src/features/controlAdapters/store/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx b/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx index b3efef47f0..3f248a82be 100644 --- a/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx +++ b/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx @@ -42,10 +42,10 @@ const DepthAnythingProcessor = (props: Props) => { const options: { label: string; value: DepthAnythingModelSize }[] = useMemo( () => [ + { label: t('controlnet.depthAnythingSmallV2'), value: 'small_v2' }, { label: t('controlnet.small'), value: 'small' }, { label: t('controlnet.base'), value: 'base' }, { label: t('controlnet.large'), value: 'large' }, - { label: t('controlnet.depthAnythingSmallV2'), value: 'small_v2' }, ], [t] ); diff --git a/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts b/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts index 152e977e5c..1e01e5627e 100644 --- a/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts +++ b/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts @@ -94,7 +94,7 @@ export const CONTROLNET_PROCESSORS: ControlNetProcessorsDict = { buildDefaults: (baseModel?: BaseModelType) => ({ id: 'depth_anything_image_processor', type: 'depth_anything_image_processor', - model_size: 'small', + model_size: 'small_v2', resolution: baseModel === 'sdxl' ? 1024 : 512, }), },