zuoxiang95 / fashion_compatibility_mcn

Outfit Compatibility Prediction and Diagnosis with Multi-Layered Comparison Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outfit Compatibility Prediction and Diagnosis with Multi-Layered Comparison Network

diagnosis

Implementation of the method proposed in the paper:

Outfit Compatibility Prediction and Diagnosis with Multi-Layered Comparison Network

by Xin Wang, Bo Wu, Yueqi Zhong Published at ACM MM 2019 in Nice, France.

Contents of this repository

  • mcn: Main program source code
  • data: Polyvore-T datasets based on Polyvore.
  • baselines: Compared baselines in our experiment
  • exp: Experiment details, scripts and results etc.

Requirements

Ubuntu 16.04, NVIDIA GTX 1080Ti (for batch size 16), python >= 3.5.2

torch>=0.4.1
torchvision
networkx

Usage

  1. Download the original Polyvore dataset, then unzip the file and put the image directory into data folders (or you can create a soft link for it).

  2. Train

    cd mcn
    python train.py
  3. Evaluate

    python evaluate.py
    
  4. Visualize outfit diagnosis

    cd exp
    python diagnosis.py
    
  5. Automatically revise outfit

    python revision.py
    

Prediction Performance

Pretrained model weights can be found in the links. The train, validation and test split is provided in data.

AUC FITB
Pooling 88.35 57.28
Concatenation 83.40 52.91
Self-attention 79.65 48.60
BiLSTM 74.82 46.02
CSN 84.90 57.06
Ours 91.90 64.35

Cite

Please cite our paper if you use this code in your own work:

@inproceedings{wang2019diagnosis,
  title={Outfit Compatibility Prediction and Diagnosis with Multi-Layered Comparison Network},
  author={Xin Wang, Bo Wu and Yueqi Zhong},
  booktitle={ACM International Conference on Multimedia},
  year={2019}
}

About

Outfit Compatibility Prediction and Diagnosis with Multi-Layered Comparison Network

License:MIT License


Languages

Language:Jupyter Notebook 94.5%Language:Python 5.5%