From f36a6912199582845818d4973c602aa580771e78 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Tue, 23 Jan 2024 09:14:47 +0530 Subject: [PATCH] feat: Make the depth anything small model the default --- invokeai/app/invocations/controlnet_image_processors.py | 2 +- .../components/processors/DepthAnyThingProcessor.tsx | 4 ++-- .../web/src/features/controlAdapters/store/constants.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/invocations/controlnet_image_processors.py b/invokeai/app/invocations/controlnet_image_processors.py index 967e0c6f40..f16ff55351 100644 --- a/invokeai/app/invocations/controlnet_image_processors.py +++ b/invokeai/app/invocations/controlnet_image_processors.py @@ -619,7 +619,7 @@ class DepthAnythingImageProcessorInvocation(ImageProcessorInvocation): """Generates a depth map based on the Depth Anything algorithm""" model_size: DEPTH_ANYTHING_MODEL_SIZES = InputField( - default="large", description="The size of the depth model to use" + default="small", description="The size of the depth model to use" ) offload: bool = InputField(default=False) 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 c0e69950c1..4897cf50c5 100644 --- a/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx +++ b/invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx @@ -42,9 +42,9 @@ const DepthAnythingProcessor = (props: Props) => { const options: { label: string; value: DepthAnythingModelSize }[] = useMemo( () => [ - { label: t('controlnet.large'), value: 'large' }, - { label: t('controlnet.base'), value: 'base' }, { label: t('controlnet.small'), value: 'small' }, + { label: t('controlnet.base'), value: 'base' }, + { label: t('controlnet.large'), value: 'large' }, ], [t] ); diff --git a/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts b/invokeai/frontend/web/src/features/controlAdapters/store/constants.ts index 2b4124cbb1..1bdfabd0ab 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 = { default: { id: 'depth_anything_image_processor', type: 'depth_anything_image_processor', - model_size: 'large', + model_size: 'small', offload: false, }, },