Downloads · 30 days
48
56% of all-time downloads
hamzi275/pk-fashion-lora-sd15
pk-fashion-lora-sd15 is a machine learning model from hamzi275. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
LoRA fine-tuned from Stable Diffusion v1.5, specialized for generating images of traditional Pakistani garments, particularly women's shalwar kameez.
Downloads · 30 days
48
56% of all-time downloads
All-time downloads
85
Public
Repo size
3.4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
LoRA fine-tuned from Stable Diffusion v1.5, specialized for generating images of traditional Pakistani garments, particularly women's shalwar kameez.
This is a garment image generation LoRA, not a virtual try-on model. It generates clothing images from text prompts and does not combine a person image with a garment image. Virtual try-on architectures such as IDM-VTON were explored but were not used due to their high computational requirements on free-tier Google Colab GPUs.
| Parameter | Value |
|---|---|
| Base Model | runwayml/stable-diffusion-v1-5 |
| Method | LoRA (PEFT), Rank=4, Alpha=4 |
| Target Modules | UNet Attention (to_q, to_k, to_v, to_out.0) |
| Resolution | 512 × 512 (Pad-to-Square preprocessing) |
| Training Steps | 1500 |
| Checkpoint | lora_step_1500.safetensors |
| Optimizer | AdamW |
| Learning Rate | 1e-4 |
| Caption Strategy | Class-based prompts |
The model was trained on a custom-curated Pakistani fashion dataset containing traditional women's garments.
The preprocessing pipeline included:
from diffusers import StableDiffusionPipeline
import torch
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16
).to("cuda")
pipe.unet.load_attn_procs("hamzi275/pk-fashion-lora-sd15")
image = pipe(
"a photo of a woman wearing traditional Pakistani shalwar kameez"
).images[0]
image.save("output.png")
a photo of a woman wearing traditional Pakistani shalwar kameez
If you use this model in your research or project, please cite this repository.