Home

Wesleygram

2025

I turned eveyone's profile photos into myself using Stable Diffusion Inpainting.

About

A project completed on my 22nd birthday where I downloaded all of my Instagram follower and following profile photos, use LoRA (Low-Rank Adaptation) to fine-tune a pre-trained Stable Diffusion model on my face. I then used automatic person detection + segmentation to create an inpainting mask and prompted my LoRA‑tuned SDXL model to generate my face onto each profile photo. Finally, I built a Next.js frontend to display the results in a searchable gallery with carousels and hosted the generated images on Cloudflare R2.

Built with

  • Python
  • PyTorch
  • Stable Diffusion XL (SDXL)
  • Diffusers
  • Transformers
  • LoRA
  • Inpainting
  • Segment Anything (SAM)
  • GroundingDINO
  • Cloudflare R2
  • Boto3 (S3 API)

More projects