Add comprehensive model card for Realistic Image GarmentParticles
Browse files
README.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: image-to-3d
|
| 4 |
+
tags:
|
| 5 |
+
- garment-particles
|
| 6 |
+
- 3d-garments
|
| 7 |
+
- sewing-patterns
|
| 8 |
+
- diffusion
|
| 9 |
+
- flow-matching
|
| 10 |
+
- fsdp2
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Garment Particles (Realistic Image Fine-Tuned Checkpoints)
|
| 14 |
+
|
| 15 |
+
Official fine-tuned checkpoints for **Garment Particles**, adapted for realistic and rendered image conditioning.
|
| 16 |
+
|
| 17 |
+
- **Paper**: [Garment Particles: A 2D--3D Symmetric Garment Representation for Generation and Editing](https://huggingface.co/papers/2605.26391)
|
| 18 |
+
- **Project Page**: [https://garment-particles.github.io](https://garment-particles.github.io)
|
| 19 |
+
- **Code**: [https://github.com/garment-particles/GarmentParticles](https://github.com/garment-particles/GarmentParticles)
|
| 20 |
+
- **Base Models**: [georgeNakayama/GarmentParticles](https://huggingface.co/georgeNakayama/GarmentParticles)
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## Overview
|
| 25 |
+
|
| 26 |
+
This repository hosts the **realistic image-conditioned Stage 1 (PGF)** fine-tuned checkpoints alongside the shared **Stage 2 Edge Model**.
|
| 27 |
+
|
| 28 |
+
The Stage 1 model was fine-tuned for 35,000 steps across 16 × NVIDIA H100 GPUs using PyTorch FSDP2 on 46,119 realistic garment outfits generated with GPT Image 2 from GarmentCodeData-v2.
|
| 29 |
+
|
| 30 |
+
### Validation Loss Trajectory
|
| 31 |
+
|
| 32 |
+
| Checkpoint | Steps | Validation Loss | Notes |
|
| 33 |
+
|---|---|---|---|
|
| 34 |
+
| Step 5,000 | 5k | 0.8781 | Initial adaptation |
|
| 35 |
+
| Step 10,000 | 10k | 0.7472 | Rapid feature alignment |
|
| 36 |
+
| Step 15,000 | 15k | 0.6867 | Stable generation |
|
| 37 |
+
| Step 20,000 | 20k | 0.6466 | High geometric detail |
|
| 38 |
+
| Step 25,000 | 25k | 0.6255 | Fine-grain pattern refinement |
|
| 39 |
+
| **Step 30,000** | 30k | **0.6150** | Near-convergence milestone |
|
| 40 |
+
| **Step 35,000** | 35k | **0.6131** | **Final fully converged checkpoint (-30.2% loss reduction)** |
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## Checkpoints Included
|
| 45 |
+
|
| 46 |
+
| Checkpoint Directory | Description | Size |
|
| 47 |
+
|---|---|---|
|
| 48 |
+
| `pgf_image_realistic_step35000/` | **Recommended:** Fully converged Stage 1 PGF flow matching model | 15 GB (16 shards) |
|
| 49 |
+
| `pgf_image_realistic_step30000/` | Step 30,000 Stage 1 checkpoint | 15 GB (16 shards) |
|
| 50 |
+
| `edge/` | Pretrained Stage 2 Edge & Sewing Pattern Reconstruction Model | 8.8 GB (8 shards) |
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Quickstart & Inference
|
| 55 |
+
|
| 56 |
+
Clone the [GarmentParticles repository](https://github.com/garment-particles/GarmentParticles):
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
git clone https://github.com/garment-particles/GarmentParticles.git
|
| 60 |
+
cd GarmentParticles
|
| 61 |
+
|
| 62 |
+
# Install dependencies
|
| 63 |
+
pip install torch torchvision
|
| 64 |
+
pip install -r src/requirements.txt
|
| 65 |
+
pip install flash-attn --no-build-isolation
|
| 66 |
+
export PYTHONPATH=$PWD/src:$PYTHONPATH
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
Download the checkpoints:
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
hf download image2garment/GarmentParticles-Realistic --local-dir src/checkpoints/realistic
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Run two-stage image-conditioned inference:
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
torchrun --standalone --nproc_per_node=1 inference/infer_twostage.py \
|
| 79 |
+
eval.sample_per_batch=1 eval.n_samples=0 eval.evaluate=False \
|
| 80 |
+
train.exp_name=realistic_img_samples sample.num_sampling_steps=100 \
|
| 81 |
+
gpf_ckpt=null \
|
| 82 |
+
dataset.front_only=True dataset.use_all_captions=True \
|
| 83 |
+
dataset.img_drop_prob=0 dataset.text_drop_prob=1 \
|
| 84 |
+
model.use_qknorm=True model.use_rope=False model.in_channels=6 model.freeze_everything=False \
|
| 85 |
+
edge_model.use_qknorm=True \
|
| 86 |
+
edge_model_ckpt=checkpoints/realistic/edge \
|
| 87 |
+
model=sparse_lightningdit_v3_xl1_w_img_text_v2 \
|
| 88 |
+
pgf_weight_init=checkpoints/realistic/pgf_image_realistic_step35000 \
|
| 89 |
+
--config-name sparselightningdit_xl_garment_particle_inference
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Architecture Specifications
|
| 95 |
+
|
| 96 |
+
- **Stage 1 (PGF):** `SparseLightningDiTV3CrossAttnVarlenImgTextV2` (28 DiT layers, 1152 hidden dimension, 16 attention heads, QK-Norm, DINOv2-Large image encoder + CLIP text conditioning, velocity flow matching).
|
| 97 |
+
- **Stage 2 (Edge Model):** `LightningCrossAttnDiTV3EdgeModelVarlen` (24 DiT layers, 1024 hidden dimension, 16 attention heads, RoPE, RMSNorm, SwiGLU, FlashAttention-2, 37 panels, 38 curves).
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## Citation
|
| 102 |
+
|
| 103 |
+
```bibtex
|
| 104 |
+
@inproceedings{garmentparticles2026,
|
| 105 |
+
title={Garment Particles: A 2D--3D Symmetric Garment Representation for Generation and Editing},
|
| 106 |
+
author={George Nakayama and others},
|
| 107 |
+
booktitle={SIGGRAPH Conference Papers},
|
| 108 |
+
year={2026}
|
| 109 |
+
}
|
| 110 |
+
```
|