Downloads · 30 days
0
NguyenDinhHieu/EquiFashionModel
EquiFashionModel is a text-to-image model from NguyenDinhHieu. Use it when you need an image from a text prompt. It is set up for pytorch_lightning. The card lists the license as mit.
Authors: Nguyen Dinh Hieu [0009-0002-6683-8036], Tran Minh Khuong, Phan Duy Hung [0000-0002-6033-6484] Institution: FPT University, Hanoi, Vietnam / Quantum AI & Cyber Security Institute, FPT Corporation, Hanoi, Vietn…
Downloads · 30 days
0
Access
Public
Updated Jun 30, 2026
Repo size
20.6 GB
Likes
5
Public
Click a slice to open those files.
.ckpt16.3 GB · 79%
From the Hugging Face model README
Authors:
Nguyen Dinh Hieu [0009-0002-6683-8036], Tran Minh Khuong, Phan Duy Hung [0000-0002-6033-6484]
Institution: FPT University, Hanoi, Vietnam / Quantum AI & Cyber Security Institute, FPT Corporation, Hanoi, Vietnam
📧 [email protected] / [email protected] / [email protected]
Full code at: https://github.com/nguyendinhhieu1309/EquiFashion.git
EquiFashion is a hybrid GAN–Diffusion framework that reconciles the long-standing trade-off between stylistic diversity and photorealistic fidelity in generative fashion design.
It integrates a GAN-based ideation branch for creative exploration and a diffusion-based refinement branch for faithful reconstruction, enabling high-quality, diverse, and robust fashion image generation.
🎨 Try the live demo here:
👉 EquiFashion Demo on Hugging Face Spaces
Fashion design requires models that are simultaneously creative, robust, and trustworthy.
While GANs generate diverse styles but lack stability, and Diffusion Models produce realism but constrain creativity, EquiFashion bridges both worlds—achieving controlled diversity, semantic alignment, and realistic garment rendering.
| Component | Description |
|---|---|
| Latent Diffusion Backbone | Operates in latent space for efficient denoising with high-resolution reconstruction. |
| GAN Ideation Module | Explores stylistic variations through stochastic latent sampling. |
| Structural Semantic Consensus | Ensures linguistic–visual correspondence between attributes and garment parts. |
| Semantic-Bundled Attention | Couples adjective–noun pairs (e.g., “red collar”) for coherent attribute localization. |
| Pose-Guided Conditioning | Aligns garments naturally to human body structure using OpenPose keypoints. |
The dataset used for training and evaluation is available on Hugging Face:
➡️ NguyenDinhHieu/EquiFashion-DB
| Property | Description |
|---|---|
| Scale | 350 K images |
| Resolution | 512×512 |
| Modalities | Image, Text, Sketch, Pose, Fabric |
| Coverage | 40+ apparel categories |
| Key Feature | Noise-aware text, balanced demographics |
| Purpose | Training + robust benchmarking for generative fashion |
You can load it directly using the datasets library:
from datasets import load_dataset
dataset = load_dataset("NguyenDinhHieu/EquiFashion-DB")
print(dataset)
| Setting | Value |
|---|---|
| Framework | PyTorch Lightning 2.2 |
| GPU | NVIDIA A100 (40 GB, CUDA 12.8) |
| Optimizer | AdamW |
| Learning Rate | 2e-4 (G), 1e-4 (D) |
| Scheduler | Cosine Decay |
| Epochs | 400 (200 pretrain + 200 joint) |
| Precision | FP16 |
| Batch Size | 32 |
| Timesteps (T) | 8 |
| Fusion Decay (γ) | 0.7 |
| Input Pose | Generated Outfit |
|---|---|
![]() | ![]() |
from huggingface_hub import hf_hub_download
from cldm.model import create_model, load_state_dict
import torch
# Download checkpoint
ckpt = hf_hub_download("NguyenDinhHieu/EquiFashionModel", filename="eqf_final.ckpt")
# Load model
model = create_model("utils/configs/cldm_v2.yaml").to("cuda")
model.load_state_dict(load_state_dict(ckpt, location="cuda"))
model.eval()
prompt = "long-sleeve floral dress with tied waist, elegant, 8k detail"
If you use this model or dataset, please cite:
@inproceedings{nguyen2026equifashion,
title={EquiFashion: Hybrid GAN–Diffusion Balancing Diversity–Fidelity for Fashion Design Generation},
author={Nguyen Dinh Hieu and Tran Minh Khuong and Phan Duy Hung},
booktitle={Pacific-Asia Conference on Knowledge Discovery and Data Mining},
year={2026},
organization={FPT University, VietNam / Quantum AI & Cyber Security Institute, FPT Corporation, Vietnam}
}
| File | Description |
|---|---|
eqf_final.ckpt | Main Hybrid GAN–Diffusion model checkpoint |
body_pose_model.pth, hand_pose_model.pth | OpenPose keypoint weights |
open_clip_pytorch_model.bin | Pretrained OpenCLIP text encoder |
app.py | Gradio demo UI |
utils/configs/cldm_v2.yaml | Architecture configuration |
Released under the MIT License.
You may use, modify, and distribute the model and dataset with attribution.
Developed by FPT University AI Research Group, Hanoi, Vietnam
as part of the EquiAI Research Suite on fairness, robustness, and trustworthy generative AI.