An AI-powered Virtual Ring Try-On system that lets users visualize how a ring looks on their hand. The pipeline combines computer vision and generative AI techniques:
Stable Diffusion 1.5 + ControlNet (Inpainting) – refine compositing with realistic shadows, reflections, and lighting.
- Upload a hand wearing a ring → the system extracts the ring and transfers it to a bare hand.
- Users can upload their own bare hand for try-on.
- Outputs high-resolution, photo-realistic results thanks to ESRGAN enhancement.
- Gradio-powered interactive web UI.
git clone https://github.com/trongkhanh083/virtual-try-on-ring.git
cd virtual-try-on-ring
conda create -n ringvton python=3.10 -y
conda activate ringvton
pip install -r requirements.txt
git clone https://github.com/xinntao/Real-ESRGAN.git
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P Real-ESRGAN/weights
python app.py
GPU strongly recommended
At least 8GB VRAM for Stable Diffusion + Controlnet.




