Views
No views yet

1git clone https://github.com/zibingo/TP-MGD.git
2cd TP-MGDpip install diffusers accelerate transformers opencv-python einops wandb open_clip_torchwget https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter_sd15.bin wget https://huggingface.co/zibingo/TP-MGD/resolve/main/vitonhd-texture.zipdataroot_path in the YAML files under the configs/ directory.├── captions.json (from MGD)
├── test/
│ ├── agnostic-mask/
│ ├── agnostic-v3.2/
│ ├── cloth/
│ ├── cloth-mask/
│ ├── cloth-texture/ (from Ours)
│ ├── im_sketch/ (from MGD)
│ ├── im_sketch_unpaired/ (from MGD)
│ ├── image/
│ ├── image-densepose/
│ ├── image-parse-agnostic-v3.2/
│ ├── image-parse-v3/
│ ├── openpose_img/
│ └── openpose_json/
├── test_pairs.txt
├── train/
│ ├── agnostic-mask/
│ ├── agnostic-v3.2/
│ ├── cloth/
│ ├── cloth-mask/
│ ├── cloth-texture/ (from Ours)
│ ├── gt_cloth_warped_mask/
│ ├── im_sketch/ (from MGD)
│ ├── image/
│ ├── image-densepose/
│ ├── image-parse-agnostic-v3.2/
│ ├── image-parse-v3/
│ ├── openpose_img/
│ └── openpose_json/
└── train_pairs.txtwget https://huggingface.co/zibingo/TP-MGD/resolve/main/dresscode-texture.zipdataroot_path in the YAML files under the configs/ directory.├── dresses/
│ ├── dense/
│ ├── dresses_cloth-texture/ (from Ours)
│ ├── im_sketch/ (from MGD)
│ ├── im_sketch_unpaired/ (from MGD)
│ ├── images/
│ ├── keypoints/
│ ├── label_maps/
│ ├── test_pairs_paired.txt
│ ├── test_pairs_unpaired.txt
│ └── train_pairs.txt
├── lower_body/
│ ├── dense/
│ ├── im_sketch/ (from MGD)
│ ├── im_sketch_unpaired/ (from MGD)
│ ├── images/
│ ├── keypoints/
│ ├── label_maps/
│ ├── lower_body_cloth-texture/ (from Ours)
│ ├── test_pairs_paired.txt
│ ├── test_pairs_unpaired.txt
│ └── train_pairs.txt
├── upper_body/
│ ├── dense/
│ ├── im_sketch/ (from MGD)
│ ├── im_sketch_unpaired/ (from MGD)
│ ├── images/
│ ├── keypoints/
│ ├── label_maps/
│ ├── test_pairs_paired.txt
│ ├── test_pairs_unpaired.txt
│ ├── train_pairs.txt
│ └── upper_body_cloth-texture/ (from Ours)
├── coarse_captions.json (from MGD)
├── fine_captions.json (from MGD)
├── multigarment_test_triplets.txt
├── readme.txt
├── test_pairs_paired.txt
├── test_pairs_unpaired.txt
├── test_stitch_map/ (from MGD)
└── train_pairs.txt1python train_vitonhd.py
2python train_dresscode.py1CUDA_VISIBLE_DEVICES=0,1 accelerate launch train_vitonhd.py
2CUDA_VISIBLE_DEVICES=0,1 accelerate launch train_dresscode.pycheckpoints/ directoryresume_state parameter in the YAML files under configs/ directory to point to your checkpoint directory1python inference_vitonhd.py
2python inference_dresscode.py1CUDA_VISIBLE_DEVICES=0,1 accelerate launch inference_vitonhd.py
2CUDA_VISIBLE_DEVICES=0,1 accelerate launch inference_dresscode.pyTP-MGD/
├── configs/ # Configuration files
├── checkpoints/ # Pre-trained model weights
├── assets/ # Sample images
├── train_vitonhd.py # VITON-HD training script
├── train_dresscode.py # DressCode training script
├── inference_vitonhd.py # VITON-HD inference script
├── inference_dresscode.py # DressCode inference script
├── datasets.py # Dataset loading utilities
└── attention_processor.py # Custom attention mechanismsconfigs/*.yaml:dataroot_path: Path to your datasetresume_state: Path to checkpoint for inference or resume train