Skip to content

Simplify SAM 2.1 decoder output and fix ONNX export warnings - #12

Merged
TurboGit merged 3 commits into
darktable-org:masterfrom
andriiryzhkov:sam_exp
Mar 25, 2026
Merged

TurboGit merged 3 commits into
darktable-org:masterfrom
andriiryzhkov:sam_exp

Conversation

@andriiryzhkov

Copy link
Copy Markdown
Collaborator
  • Remove mask upscaling from SAM 2.1 decoder ONNX export - output masks at native 256x256 instead of 1024x1024, drop low_res_masks output. Resizing to target dimensions is handled on the C side.
  • Fix onnxruntime MergeShapeInfo warnings by adding onnxsim to dependencies and stripping empty shape annotations after graph simplification.
  • Update all SAM 2.1 demos to match new decoder output format (2 outputs instead of 3).

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit
TurboGit merged commit 776a6b3 into darktable-org:master Mar 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants