mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat: Make the depth anything small model the default
This commit is contained in:
parent
6a2eb1d2e4
commit
f36a691219
@ -619,7 +619,7 @@ class DepthAnythingImageProcessorInvocation(ImageProcessorInvocation):
|
|||||||
"""Generates a depth map based on the Depth Anything algorithm"""
|
"""Generates a depth map based on the Depth Anything algorithm"""
|
||||||
|
|
||||||
model_size: DEPTH_ANYTHING_MODEL_SIZES = InputField(
|
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)
|
offload: bool = InputField(default=False)
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ const DepthAnythingProcessor = (props: Props) => {
|
|||||||
|
|
||||||
const options: { label: string; value: DepthAnythingModelSize }[] = useMemo(
|
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.small'), value: 'small' },
|
||||||
|
{ label: t('controlnet.base'), value: 'base' },
|
||||||
|
{ label: t('controlnet.large'), value: 'large' },
|
||||||
],
|
],
|
||||||
[t]
|
[t]
|
||||||
);
|
);
|
||||||
|
@ -94,7 +94,7 @@ export const CONTROLNET_PROCESSORS: ControlNetProcessorsDict = {
|
|||||||
default: {
|
default: {
|
||||||
id: 'depth_anything_image_processor',
|
id: 'depth_anything_image_processor',
|
||||||
type: 'depth_anything_image_processor',
|
type: 'depth_anything_image_processor',
|
||||||
model_size: 'large',
|
model_size: 'small',
|
||||||
offload: false,
|
offload: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user