Downloads · 30 days
0
ShubhamBaghel307/agebooth-loras
agebooth-loras is a machine learning model from ShubhamBaghel307. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Two LoRA adapters for age transformation with Stable Diffusion XL.
Downloads · 30 days
0
Access
Public
Updated Nov 24, 2025
Repo size
46.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors46.8 MB · 100%
From the Hugging Face model README
Two LoRA adapters for age transformation with Stable Diffusion XL.
young_lora.safetensors: Young age group (10-20 years)old_lora.safetensors: Old age group (70-80 years)from diffusers import StableDiffusionXLImg2ImgPipeline
import torch
# Load base model
pipe = StableDiffusionXLImg2ImgPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16
).to("cuda")
# Load young LoRA
pipe.load_lora_weights("ShubhamBaghel307/agebooth-loras", weight_name="young_lora.safetensors")
young_image = pipe(prompt="young person", image=input_face).images[0]
# Load old LoRA
pipe.load_lora_weights("ShubhamBaghel307/agebooth-loras", weight_name="old_lora.safetensors")
old_image = pipe(prompt="elderly person", image=input_face).images[0]
For intermediate ages, blend the LoRAs:
# Load both LoRAs
young_state = torch.load("young_lora.safetensors")
old_state = torch.load("old_lora.safetensors")
# Interpolate (alpha=0.5 for middle age)
alpha = 0.5
mixed_state = {
k: alpha * young_state[k] + (1 - alpha) * old_state[k]
for k in young_state.keys()
}
Trained on age-filtered subsets of IMDB-Wiki dataset:
@misc{agebooth2025,
title={AgeBooth: Identity-Preserved Age Transformation},
author={Baghel, Shubham},
year={2025}
}