feat(depth): metric-large + nested metric model gallery entries - #10363
Merged
Conversation
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
force-pushed
the
backend/depth-anything
branch
from
June 16, 2026 19:08
9a4b400 to
3766081
Compare
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
force-pushed
the
backend/depth-anything
branch
from
June 16, 2026 19:24
3766081 to
cede08b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-ggufwith a model card.depth-anything-3-metric-largeSingle-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:Loadreads ametric_model:<file>entry fromModelOptions.Optionsand, when present, calls the newda_capi_load_nested(anyview, metric, threads)instead ofda_capi_load(registers the abi-4 symbol; adds anoptionValuehelper + unit test).depth-anything-3-nestedentry (model = anyview branch,options: [metric_model:…], both GGUFs fetched).v0.1.3(cce5edc), which adds the nested two-file C-API (abi_version3 → 4,da_capi_load_nested).Verification
is_metric=1, plausible intrinsics);test_capiABI assertion updated to 4.go build/go vet/go testgreen;optionValueunit test covers the option parsing.Note
Nested
Predict/GenerateImagerun the pipeline twice (depth then pose); the typed Depth RPC is the single-run efficient path (documented inrunDepthPose).Assisted-by: Claude:claude-opus-4-8