This repository provides a tool for image segmentation using SAM (Segment Anything Model) and Gradio for the interface. The tool aims to facilitate the segmentation process with an intuitive UI.
The sam_paste_gradio
tool integrates SAM, a powerful image segmentation model, with Gradio, a user-friendly interface library, to create a seamless experience for segmenting images.
- Python 3.x
- Packages listed in
requirements.txt
- Clone the repository:
git clone https://github.com/MiladSoleymani/sam_paste_gradio.git cd sam_paste_gradio
- Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txt
To run the tool, use the following command:
python run.py
sam
: Contains the implementation of the Segment Anything Model.utils.py
: Utility functions for the project.run.py
: Main script to run the application.requirements.txt
: Lists the dependencies required to run the software.
We welcome contributions to improve sam_paste_gradio
. Please fork the repository, create a new branch, and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.