Skip to content

feat(depth): metric-large + nested metric model gallery entries - #10363

Merged
mudler merged 2 commits into
masterfrom
backend/depth-anything
Jun 16, 2026
Merged

feat(depth): metric-large + nested metric model gallery entries#10363
mudler merged 2 commits into
masterfrom
backend/depth-anything

Conversation

@localai-bot

@localai-bot localai-bot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

What

Adds the two metric-depth Depth Anything 3 models to LocalAI, completing the DA3 family (the relative models — small/base/large/giant/mono-large — already shipped in #10352). All weights are now published at mudler/depth-anything.cpp-gguf with a model card.

depth-anything-3-metric-large

Single-file metric-scale depth (meters) + sky mask (DA3METRIC-LARGE, ViT-L). Served by the existing single-GGUF path — same as mono-large.

depth-anything-3-nested (two-file load)

The nested model (DA3NESTED-GIANT-LARGE) needs both branches loaded together — the anyview GIANT branch and a metric ViT-L branch — aligned to recover true metric-scale depth + scaled pose. This PR wires that through:

  • Backend: Load reads a metric_model:<file> entry from ModelOptions.Options and, when present, calls the new da_capi_load_nested(anyview, metric, threads) instead of da_capi_load (registers the abi-4 symbol; adds an optionValue helper + unit test).
  • Gallery: depth-anything-3-nested entry (model = anyview branch, options: [metric_model:…], both GGUFs fetched).
  • Pin: bumps depth-anything.cpp to v0.1.3 (cce5edc), which adds the nested two-file C-API (abi_version 3 → 4, da_capi_load_nested).

Verification

  • depth-anything.cpp: gated nested C-API test passes end to end (nested dense 1288×770, is_metric=1, plausible intrinsics); test_capi ABI assertion updated to 4.
  • Backend: go build / go vet / go test green; optionValue unit test covers the option parsing.

Note

Nested Predict/GenerateImage run the pipeline twice (depth then pose); the typed Depth RPC is the single-run efficient path (documented in runDepthPose).

Assisted-by: Claude:claude-opus-4-8

DA3METRIC-LARGE (ViT-L) single-file metric-scale depth + sky, served by the
existing depth-anything backend (same single-GGUF path as mono-large). GGUF
published at mudler/depth-anything.cpp-gguf.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler
mudler force-pushed the backend/depth-anything branch from 9a4b400 to 3766081 Compare June 16, 2026 19:08
The DA3 nested model needs both branches (anyview GIANT + metric ViT-L) loaded
together. Wire it through the backend:
- Load reads a 'metric_model:<file>' entry from ModelOptions.Options and, when
  present, calls da_capi_load_nested(anyview, metric) instead of da_capi_load
  (registers the new abi-4 symbol; helper optionValue + unit test).
- gallery: depth-anything-3-nested (model=anyview, options=metric branch, both
  GGUFs fetched) for metric-scale depth + pose.
- bump depth-anything.cpp pin to cce5edc (abi 4 / da_capi_load_nested).

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler
mudler force-pushed the backend/depth-anything branch from 3766081 to cede08b Compare June 16, 2026 19:24
@mudler
mudler merged commit 4c6750f into master Jun 16, 2026
65 checks passed
@mudler
mudler deleted the backend/depth-anything branch June 16, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants