Skip to content

vpk404/bgchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 VPK Background Changer (GUI)

A modern, stunning, and batch-capable background Changer tool powered by AI.
Drop your folders, pick a background, and let the magic happen.

Python Platform License


✨ Features

  • πŸš€ AI-Powered Changer: Uses rembg (U^2-Net) for precise background cutting.
  • πŸ–₯️ Modern GUI: Built with CustomTkinter for 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.

πŸ“Έ Screenshots

Screenshot 2026-01-06 175352

πŸ› οΈ Installation

1. Clone the Repository

git clone https://github.com/vpk404/bgchange.git
cd bgchange

2. Set Up Environment

It's recommended to use a virtual environment:

python -m venv venv
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

Note for GPU Users: If you have an NVIDIA GPU, ensure you have installed the CUDA toolkit compatible with onnxruntime-gpu.


πŸš€ How to Use

  1. Run the App:
    python bg.py
  2. Add Input Folders:
    • Click + Add to select folders containing your images.
    • Or Drag & Drop folders directly into the "Input Folders" list.
  3. Select Background:
    • Click Browse to choose the new background image.
    • Or Drag & Drop an image file into the app.
  4. Start Magic:
    • Click START PROCESSING.
    • Watch the progress bar as your images are transformed!
  5. Find Results:
    • All processed images are saved in a new folder named OUTPUT on your Desktop (or current directory).

🧩 Requirements

  • Python 3.8+
  • Libraries:
    • customtkinter (UI)
    • tkinterdnd2 (Drag & Drop)
    • rembg (AI Engine)
    • pillow (Image Processing)
    • onnxruntime or onnxruntime-gpu

🀝 Contributing

Got an idea? Found a bug?
Feel free to open an issue or submit a pull request!


Made with ❀️ by VPK404