Skip to content

Commit f36a691

Browse files
blessedcoolanthipsterusername
authored andcommitted
feat: Make the depth anything small model the default
1 parent 6a2eb1d commit f36a691

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

invokeai/app/invocations/controlnet_image_processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ class DepthAnythingImageProcessorInvocation(ImageProcessorInvocation):
619619
"""Generates a depth map based on the Depth Anything algorithm"""
620620

621621
model_size: DEPTH_ANYTHING_MODEL_SIZES = InputField(
622-
default="large", description="The size of the depth model to use"
622+
default="small", description="The size of the depth model to use"
623623
)
624624
offload: bool = InputField(default=False)
625625

invokeai/frontend/web/src/features/controlAdapters/components/processors/DepthAnyThingProcessor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const DepthAnythingProcessor = (props: Props) => {
4242

4343
const options: { label: string; value: DepthAnythingModelSize }[] = useMemo(
4444
() => [
45-
{ label: t('controlnet.large'), value: 'large' },
46-
{ label: t('controlnet.base'), value: 'base' },
4745
{ label: t('controlnet.small'), value: 'small' },
46+
{ label: t('controlnet.base'), value: 'base' },
47+
{ label: t('controlnet.large'), value: 'large' },
4848
],
4949
[t]
5050
);

invokeai/frontend/web/src/features/controlAdapters/store/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const CONTROLNET_PROCESSORS: ControlNetProcessorsDict = {
9494
default: {
9595
id: 'depth_anything_image_processor',
9696
type: 'depth_anything_image_processor',
97-
model_size: 'large',
97+
model_size: 'small',
9898
offload: false,
9999
},
100100
},

0 commit comments

Comments
 (0)