How kisekloset/dm-vton works
DM-VTON is a virtual try-on research and inference system centered on a lightweight warp-then-generate pipeline. Its primary workflow takes a person, garment, and garment edge, aligns the garment, then composites a rendered try-on result. The README also describes teacher/student training in separate warping-only and end-to-end stages, plus inference evaluation. The repository includes a wider model zoo and video inference path; their internal implementations are only partly sampled, so those links are limited to documented or indexed relationships.
Main entry points: main.py Runtime model runner · dmvton_pipeline.py DM-VTON pipeline · mobile_afwm.py Mobile warper · train_pf_warp.py Warp-only stage
Components 21
Try-on pipeline
- Person and garment
dataloader/viton_dataset.py - DM-VTON pipeline
pipelines/dmvton_pipeline.py - Mobile warper
models/warp_modules/mobile_afwm.py - Mobile feature pyramid
models/extractors/mobile_fpn.py - Feature correlation
models/common/correlation.py - Try-on generator
models/generators/mobile_unet.py - Model base
models/base_model.py - Try-on image
Training
- VITON data
dataloader/viton_dataset.py - Training options
opt/train_opt.py - Warp-only stage
train_pf_warp.py - End-to-end stage
train_pf_e2e.py - FS-VTON teacher
exp/metric/FS_VTON/models/afwm.py
Inference variants
- Runtime model runner
exp/runtime/main.py - Video inference
exp/video_inference/main.py - Pose estimation
exp/video_inference/yolov7_pose/estimator.py
Evaluation
- Image metrics
utils/metrics/pytorch_fid/fid_score.py - Perceptual metric
utils/metrics/lpips/lpips.py - Runtime profiling
utils/general.py
Other components
- Try-on user
- Model trainer
Connections 21
- Try-on user → Person and garment: provides pair
README.md - Person and garment → DM-VTON pipeline: supplies inputs
README.md - DM-VTON pipeline → Mobile warper: warps garment
pipelines/dmvton_pipeline.py - Mobile warper → Mobile feature pyramid: extracts features
models/warp_modules/mobile_afwm.py - Mobile warper → Feature correlation: computes correlation
models/warp_modules/mobile_afwm.py - DM-VTON pipeline → Try-on generator: generates composite
pipelines/dmvton_pipeline.py - DM-VTON pipeline → Try-on image: returns image
pipelines/dmvton_pipeline.py - Try-on generator → Model base: inherits
models/generators/mobile_unet.py - Model trainer → VITON data: prepares data
README.md - Model trainer → Warp-only stage: starts training
README.md - Model trainer → End-to-end stage: starts training
README.md - Training options → Warp-only stage: configures
opt/train_opt.py - Training options → End-to-end stage: configures
opt/train_opt.py - FS-VTON teacher → Warp-only stage: guides student
README.md - FS-VTON teacher → End-to-end stage: guides student
README.md - Runtime model runner → DM-VTON pipeline: runs model
- Video inference → Pose estimation: requests keypoints
exp/video_inference/main.py - Video inference → Runtime model runner: selects model
- Runtime model runner → Image metrics: evaluates results
README.md - Runtime model runner → Perceptual metric: evaluates results
README.md - Runtime model runner → Runtime profiling: measures runtime
README.md