Remove backgrounds from images using Meta's Segment Anything model. Upload your picture, and get back a clean image of the main subject with a transparent background!
![](https://private-user-images.githubusercontent.com/52908667/326561247-f6213c2e-b23e-472a-8d81-056acd74c256.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTk1NTQsIm5iZiI6MTcxODk1OTI1NCwicGF0aCI6Ii81MjkwODY2Ny8zMjY1NjEyNDctZjYyMTNjMmUtYjIzZS00NzJhLThkODEtMDU2YWNkNzRjMjU2LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA4NDA1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiZTRhZWU2YTVhMzQ3OTg0NDhlNzIzM2YwYjU5MDdkYzZhMzdlMTE1NmEzYTM0OWI4ZDUyMzFiNzFhYWJiNTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Z6-RW9ZTKdZuvBf7x-x5qfaUtdSAFmmdkUpvyAST518)
![](https://private-user-images.githubusercontent.com/52908667/326555930-c7d4d5b9-f432-49d1-962d-06dc3a0ff268.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTk1NTQsIm5iZiI6MTcxODk1OTI1NCwicGF0aCI6Ii81MjkwODY2Ny8zMjY1NTU5MzAtYzdkNGQ1YjktZjQzMi00OWQxLTk2MmQtMDZkYzNhMGZmMjY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA4NDA1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0MjNmZGU2NGMwMmY5NmIxMDFhOWJjYzAxNDA3YzdjYTYzMDY4M2ViNDA2ZWU3OTZmYzBjMGQ0YTIzOTcyM2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YLy79yWhEeOTefNPi3yMoFoNy-FJKuZsmLje4Kl_WiU)
Seamless Background Removal: Leverage the power of Meta's Segment Anything model for accurate segmentation.
ModelBit Deployment: Deploy the model to ModelBit for easy cloud inference (instructions included).
Streamlit UI: User-friendly interface built with Streamlit for a smooth user experience.
Research Exploration: Delve into the research behind the project in the research.py
file.
Future Feature: Stay tuned for upcoming WhatsApp sticker export functionality!
Customization: Edit your images exactly how you want, without limitations imposed by pre-defined backgrounds.
Control: Self-hosting or deploying the application yourself ensures your data privacy. No need to upload sensitive images to third-party services.
Ease of Use: Simple interface makes background removal accessible to anyone.
- Clone the repository.
- Install dependencies (
pip install -r requirements.txt
) - Deploy to ModelBit following the instructions in
research.ipynb
. - Update api endpoint and run the application (
streamlit run main.py
) - Or use
research.ipynb
to run locally