Skip to content

Commit 08def3d

Browse files
fix: Update canvas depth anything processor default to v2
1 parent daf899f commit 08def3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ const DepthAnythingProcessor = (props: Props) => {
4242

4343
const options: { label: string; value: DepthAnythingModelSize }[] = useMemo(
4444
() => [
45+
{ label: t('controlnet.depthAnythingSmallV2'), value: 'small_v2' },
4546
{ label: t('controlnet.small'), value: 'small' },
4647
{ label: t('controlnet.base'), value: 'base' },
4748
{ label: t('controlnet.large'), value: 'large' },
48-
{ label: t('controlnet.depthAnythingSmallV2'), value: 'small_v2' },
4949
],
5050
[t]
5151
);

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
buildDefaults: (baseModel?: BaseModelType) => ({
9595
id: 'depth_anything_image_processor',
9696
type: 'depth_anything_image_processor',
97-
model_size: 'small',
97+
model_size: 'small_v2',
9898
resolution: baseModel === 'sdxl' ? 1024 : 512,
9999
}),
100100
},

0 commit comments

Comments
 (0)