Skip to content

epic: dense prediction (depth, geometry, pose, segmentation, 3D) #2382

Closed
10 of 10 issues completed
Closed

Description

@inureyes

Problem / Background

Upstream mlx-vlm now ships dense-prediction models that output depth, point, normal and segmentation maps, human keypoints and 3D meshes rather than text. mlxcel has no output path for any of them. #524 recorded these output kinds as needing their own infrastructure first; the maintainer has asked for depth, pose and 3D support, and this epic builds that infrastructure and the model set on it.

Goal

mlxcel predict writes maps, keypoints, instance masks and meshes to files for Video Depth Anything, MoGe-3, Sapiens2, SAM 3D Objects, SAM 3, SAM 3.1 and SAM 3D Body from their published mlx-community checkpoints, with DINOv2 shared as one backbone, parity against upstream for each model, and every family listed by mlxcel arch. RF-DETR joins the same effort through mlxcel detect (see the last section).

Dependency notes: DINOv2 is imported upstream by Video Depth Anything, MoGe-3 and SAM 3D Objects; Sapiens2 has its own backbone, SAM 3D Body its own DINOv3, RF-DETR its own windowed DINOv2. SAM 3D Objects also uses MoGe-3 to estimate a point map when none is supplied. SAM 3 adds the instance-mask output (instances.json, mask PNGs, --prompt / --boxes) that SAM 3.1 reuses; SAM 3D Objects adds the mesh writer that SAM 3D Body reuses.

Sub-issues

Phase 1

Phase 2

Phase 3

Phase 4

Phase 5

Tracked outside this DAG

#2431 (RF-DETR detection and instance masks) belongs to this effort but rides mlxcel detect beside RT-DETRv2 through the Detector trait from #2412 (or #2413), which is not a sub-issue here, so it is not listed under a phase. Its prerequisites #2412 and #2349 are complete; #2431 is merged through #2581. The authorized #2412 prerequisite was implemented through #2579 as part of this run.

Acceptance Criteria

Activity

  1. changed the title [-]epic: dense prediction (depth, geometry, pose)[/-] [+]epic: dense prediction (depth, geometry, pose, segmentation, 3D)[/+] on Oct 16, 2026
  2. added and removed on Oct 23, 2026
  3. inureyes commented on Oct 24, 2026

    @inureyes
    MemberAuthor

    Epic implementation complete

    Implemented and merged 11 units across five execution waves: the nine sub-issues in the epic DAG, RF-DETR #2431, and its authorized PP-DocLayoutV3 prerequisite #2412.

    Issue Merged PR Delivered behavior
    #2349 #2545 Shared dense-prediction interface, registry, CLI and file outputs
    #2350 #2549 DINOv2 encoder and standalone feature prediction
    #2371 #2550 Sapiens2 pose and dense task heads
    #2429 #2551 SAM 3 detection, instance masks and tracking
    #2352 #2576 Video Depth Anything relative and metric depth
    #2355 #2577 MoGe3 geometry, normals and point maps
    #2430 #2575 SAM 3.1 multiplex tracking
    #2381 #2578 SAM 3D Objects mesh and Gaussian reconstruction
    #2412 #2579 PP-DocLayoutV3 and shared detector dispatch
    #2432 #2580 SAM 3D Body human meshes and 3D keypoints
    #2431 #2581 RF-DETR detection and optional instance masks

    Each family has actual-checkpoint runtime and CLI validation recorded in its PR and bilingual technical reports. Final Body boxed/default and literal CLI outputs match all reference tensors and faces exactly; the OBJ loads in a standard mesh reader. Final RF-DETR raw outputs meet the fixed error bounds, all four segmentation masks have IoU 1.0, and existing RT-DETRv2 and PP-DocLayoutV3 CLI results remain unchanged. Historical CPU-reference recovery, failed wrapper attempts and source/binary provenance limitations remain explicitly documented rather than replaced with invented successful exits.

    The final default branch passes all eight orchestration contract checks. Every implemented issue is closed, each issue and PR has status:done, and every linked PR is merged. Both docs/dense-prediction.md and docs/supported-models.md list the same nine families, actual model types, tasks and concrete output files; the final executable's architecture registry confirms the aliases. The shared instances.json output and RF-DETR's stdout/optional-mask contract are distinguished explicitly. #524 and the scoped dense-prediction section of docs/vision-model-scope.md now point to the completed implementation.

    Validated artifacts, source snapshots and executable caches are retained under .cache/epic-2382/. All owned worktrees and branches are cleaned up; unrelated worktrees and both original user stashes are preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions