microsoft / microsoft/ai-dev-gallery

[SAMPLE] Remove background alternative using open-source model

Open
#302 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

sample
Dominant language
C#
Stars
1.5k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
We have some users who may want to use a background remover control in their apps and we only offer a solution for this using WCR APIs. Implementing a sample that uses an open-source model would cover those users.

Describe the solution you'd like
Implement the SAM model using the QNN Execution Provider. This will work on Snapdragon NPUs, DML and CPU

Describe alternatives you've considered
The only alternative is to have our users figure this process out on their own.

Additional context
Qualcomm has examples showing use for all their models in Python. Use this to help translating logic to C#.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing background-removal sample that uses WCR APIs, then compare its flow with Qualcomm's Python SAM demo linked in the issue. Implement a C# SAM sample using the QNN Execution Provider and verify that it works through the stated Snapdragon NPU, DML, and CPU paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, python
Domain
ai, computer-vision
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.