Removes your video background and adds green screen Using the briaai/RMBG-1.4 from HuggingFace
Uses the cv2 library to read a video frame by frame. Then removes the background from every frame using the RMBG model from Briaai in HuggingFace
The UI was built using Gradio
input.mp4
out.mp4
- Download the repository or clone it locally
- Create a python virtual environment using
python -m venv
- Once Created Activate the virtual environment
- Install the packages from the requierments.txt
pip install -r requirements
- Run the application using
python app.py