DesktopSAM is a C++ app implementing efficientvit-segmentanything.
NOTE: DesktopSAM currently supports models XL0 and XL1. Support for other models will be implemented soon.
How to use:
- Download an encoder and the corresponding decoder from https://huggingface.co/mit-han-lab/efficientvit-sam/tree/main/onnx, refer to https://huggingface.co/mit-han-lab/efficientvit-sam/blob/main/README.md for choosing the best model for your needs.
- Launch the application.
- Set paths to the encoder/decoder and select [Start].
- Load an image of your choice.
- The [Segment] button allows to pick a point on the image and start segmentation.
- Using the left/right mouse buttons you may manually select areas you want to save/discard.
- You can hold and drag with the mouse wheel to pan the view.
- Once satisfied press [Save] to save the resulting image.
Dependencies:
- Qt
- OpenCV
- onnxruntime (with DirectML)