fix: Update canvas depth anything processor default to v2

This commit is contained in:
blessedcoolant 2024-07-31 23:50:13 +05:30
parent daf899f9c4
commit 08def3da95
2 changed files with 2 additions and 2 deletions

View File

@ -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]
);

View File

@ -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,
}),
},