Skip to content

Support for lighter encoder models #178

Open
bill2239 wants to merge 2 commits intoChaoningZhang:masterfrom
bill2239:feature_extraencoder
Open

Support for lighter encoder models #178
bill2239 wants to merge 2 commits intoChaoningZhang:masterfrom
bill2239:feature_extraencoder

Conversation

@bill2239
Copy link
Copy Markdown

@bill2239 bill2239 commented Apr 10, 2026

Summary

Add support for lighter EfficientViT encoder models (L0 and L1) for MobileSAM.
Currently the implementation only supports EfficientViT-L2.

Motivation

This limitation was also mentioned in issue #167. Supporting L0 and L1 enables the use of lighter encoder models, which can be beneficial for lower-resource or mobile environments.

Changes

  • Add support for EfficientViT-L0 and EfficientViT-L1 encoders.
  • Keep the existing EfficientViT-L2 support unchanged.

This allows MobileSAM to run with lighter backbone models when desired.

Hope this contribution is helpful to the project. Thanks!

@bill2239 bill2239 marked this pull request as ready for review April 10, 2026 15:35
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.

1 participant