A modern, stunning, and batch-capable background Changer tool powered by AI.
Drop your folders, pick a background, and let the magic happen.
- π AI-Powered Changer: Uses
rembg(U^2-Net) for precise background cutting. - π₯οΈ Modern GUI: Built with
CustomTkinterfor a clean, dark/light mode compatible interface. - π Batch Processing: Process thousands of images from multiple folders at once.
- ποΈ Drag & Drop: Simply drag folders or background images directly into the app.
- π Smart Resizing: Automatically resizes the background to fit your subject.
- β‘ GPU Support: Supports NVIDIA GPU acceleration (via ONNX) for blazing speeds.
git clone https://github.com/vpk404/bgchange.git
cd bgchangeIt's recommended to use a virtual environment:
python -m venv venv
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activatepip install -r requirements.txtNote for GPU Users: If you have an NVIDIA GPU, ensure you have installed the CUDA toolkit compatible with
onnxruntime-gpu.
- Run the App:
python bg.py
- Add Input Folders:
- Click
+ Addto select folders containing your images. - Or Drag & Drop folders directly into the "Input Folders" list.
- Click
- Select Background:
- Click
Browseto choose the new background image. - Or Drag & Drop an image file into the app.
- Click
- Start Magic:
- Click
START PROCESSING. - Watch the progress bar as your images are transformed!
- Click
- Find Results:
- All processed images are saved in a new folder named
OUTPUTon your Desktop (or current directory).
- All processed images are saved in a new folder named
- Python 3.8+
- Libraries:
customtkinter(UI)tkinterdnd2(Drag & Drop)rembg(AI Engine)pillow(Image Processing)onnxruntimeoronnxruntime-gpu
Got an idea? Found a bug?
Feel free to open an issue or submit a pull request!
Made with β€οΈ by VPK404