Skip to content

xetdata/EfficientSAM

Repository files navigation

EfficientSAM

XetHub hosted fork of EfficientSAM using the GitHub plugin.

EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anything

News

[Dec.5 2023] We release the torchscript version of EfficientSAM and share the Google colab notebook.

Online Demo & Examples

Online demo and examples can be found in the project page.

EfficientSAM Instance Segmentation Examples

Screenshot 2023-12-06 at 1 16 13 PM

Using the models

The model files live in this repo itself:

Screenshot 2023-12-06 at 1 19 26 PM

Instructions

  1. Install the git-xet extension.

  2. Clone the repo:

# Using SSH
git clone git@github.com:xetdata/EfficientSAM.git

cd EfficientSAM/
  1. Activate your Python virtual environment and install the requirements:
pip install -r requirements.txt
  1. Start Jupyter Notebook:
# jupyter lab
jupyter lab

# jupyter notebook
jupyter notebook
  1. You can directly use EfficientSAM:
import torch

efficientsam = torch.jit.load(models/efficientsam_s_gpu.jit)

Google Colab

You can also use this Google Colab notebook

Acknowledgement

If you're using EfficientSAM in your research or applications, please cite using this BibTeX:

@article{xiong2023efficientsam,
  title={EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anything},
  author={Yunyang Xiong, Bala Varadarajan, Lemeng Wu, Xiaoyu Xiang, Fanyi Xiao, Chenchen Zhu, Xiaoliang Dai, Dilin Wang, Fei Sun, Forrest Iandola, Raghuraman Krishnamoorthi, Vikas Chandra},
  journal={arXiv:2312.00863},
  year={2023}
}

About

EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anything

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published