All Projects → gcucurull → visual-compatibility

gcucurull / visual-compatibility

Licence: other
Context-Aware Visual Compatibility Prediction (https://arxiv.org/abs/1902.03646)

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to visual-compatibility

pytorch-deepfashion
pytorch implementation of the deepfashion architecture (https://www.cv-foundation.org/openaccess/content_cvpr_2016/papers/Liu_DeepFashion_Powering_Robust_CVPR_2016_paper.pdf)
Stars: ✭ 35 (-61.96%)
Mutual labels:  fashion, fashionai
finetuner
Finetuning any DNN for better embedding on neural search tasks
Stars: ✭ 442 (+380.43%)
Mutual labels:  metric-learning, siamese-network
awesome-few-shot-meta-learning
awesome few shot / meta learning papers
Stars: ✭ 44 (-52.17%)
Mutual labels:  metric-learning
DCGCN
Densely Connected Graph Convolutional Networks for Graph-to-Sequence Learning (authors' MXNet implementation for the TACL19 paper)
Stars: ✭ 73 (-20.65%)
Mutual labels:  graph-neural-networks
Pro-GNN
Implementation of the KDD 2020 paper "Graph Structure Learning for Robust Graph Neural Networks"
Stars: ✭ 202 (+119.57%)
Mutual labels:  graph-neural-networks
SelfGNN
A PyTorch implementation of "SelfGNN: Self-supervised Graph Neural Networks without explicit negative sampling" paper, which appeared in The International Workshop on Self-Supervised Learning for the Web (SSL'21) @ the Web Conference 2021 (WWW'21).
Stars: ✭ 24 (-73.91%)
Mutual labels:  graph-neural-networks
oneshot-audio
Experiment with "one-shot learning" techniques to recognize a voice signature
Stars: ✭ 22 (-76.09%)
Mutual labels:  siamese-network
Fashion-Clothing-Parsing
FCN, U-Net models implementation in TensorFlow for fashion clothing parsing
Stars: ✭ 29 (-68.48%)
Mutual labels:  fashion
simple-cnaps
Source codes for "Improved Few-Shot Visual Classification" (CVPR 2020), "Enhancing Few-Shot Image Classification with Unlabelled Examples" (WACV 2022), and "Beyond Simple Meta-Learning: Multi-Purpose Models for Multi-Domain, Active and Continual Few-Shot Learning" (Neural Networks 2022 - in submission)
Stars: ✭ 88 (-4.35%)
Mutual labels:  metric-learning
PyNets
A Reproducible Workflow for Structural and Functional Connectome Ensemble Learning
Stars: ✭ 114 (+23.91%)
Mutual labels:  graph-neural-networks
dialectID siam
Dialect identification using Siamese network
Stars: ✭ 15 (-83.7%)
Mutual labels:  siamese-network
awesome-efficient-gnn
Code and resources on scalable and efficient Graph Neural Networks
Stars: ✭ 498 (+441.3%)
Mutual labels:  graph-neural-networks
GalaXC
GalaXC: Graph Neural Networks with Labelwise Attention for Extreme Classification
Stars: ✭ 28 (-69.57%)
Mutual labels:  graph-neural-networks
PREREQ-IAAI-19
Inferring Concept Prerequisite Relations from Online Educational Resources (IAAI-19)
Stars: ✭ 22 (-76.09%)
Mutual labels:  siamese-network
ntds 2019
Material for the EPFL master course "A Network Tour of Data Science", edition 2019.
Stars: ✭ 62 (-32.61%)
Mutual labels:  graph-neural-networks
SimP-GCN
Implementation of the WSDM 2021 paper "Node Similarity Preserving Graph Convolutional Networks"
Stars: ✭ 43 (-53.26%)
Mutual labels:  graph-neural-networks
TwinBert
pytorch implementation of the TwinBert paper
Stars: ✭ 36 (-60.87%)
Mutual labels:  siamese-network
MinkLocMultimodal
MinkLoc++: Lidar and Monocular Image Fusion for Place Recognition
Stars: ✭ 65 (-29.35%)
Mutual labels:  metric-learning
proxy-synthesis
Official PyTorch implementation of "Proxy Synthesis: Learning with Synthetic Classes for Deep Metric Learning" (AAAI 2021)
Stars: ✭ 30 (-67.39%)
Mutual labels:  metric-learning
ChangeFormer
Official PyTorch implementation of our IGARSS'22 paper: A Transformer-Based Siamese Network for Change Detection
Stars: ✭ 220 (+139.13%)
Mutual labels:  siamese-network

Context-Aware Visual Compatibility Prediction

In this repository we provide the implementation for the paper Context-Aware Visual Compatibility Prediction. We propose a method that predicts compatibility between two items based on their visual features, as well as their context. We define context as the products that are known to be compatible with each of these items. Our model is in contrast to other metric learning approaches that rely on pairwise comparisons between item features alone. We address the compatibility prediction problem using a graph neural network that learns to generate product embeddings conditioned on their context.

Requirements

The model is implemented with Tensorflow. All necessary libraries can be installed with:

pip install -r requirements.txt

Data

Polyvore

The Polyvore dataset can be automatically downloaded by running the following script in data/:

./get_polyvore.sh

Note: Expect this to take a while, it has to download about 12 GB and then decompress it.

When all files are downloaded, run ./process_polyvore.sh in data/polyvore/which will extract image features and create the necessary files.

Amazon

To download the Amazon dataset, contact the authors of the dataset. Then, download the metadata and image features files for the Clothing, Shoes and Jewelry category, and place them in data/amazon/.

Finally, process the dataset to generate needed files by running prepare_dataset.sh in data/amazon/.

Training

The model is trained with the following command:

python train.py -d DATASET

The most relevant arguments are the following:

  • -d DATASET: Choose from (fashiongen, polyvore, amazon)
  • -lr LR: Learning rate. 0.001 by default.
  • -hi N N N: One argument per layer that defines the number of hidden units in that layer. Default: -hi 350 350 350
  • -deg D: Size of the neighbourhood used around each node. Default 1.

For the amazon dataset, the subcategory used is selected with:

  • -amzd NAME: Which can be one from (Men_also_bought, Women_also_bought, Women_bought_together, Men_bought_together)

For example, to train a model like the one described in the paper for the Polyvore dataset, run:

python train.py -d polyvore

Which will store the log and the weights of the model in logs/.

Evaluation:

A model trained on Polyvore or FashionGen can be evaluated for the FITB task and the Compatibility prediction task. Evaluation for the FITB task is performed with:

python test_fitb.py -lf PATH_TO_MODEL -k K

and for the compatibility task with:

python test_compatibility.py -lf PATH_TO_MODEL -k K

In both cases, K is the maximum number of neighbours used around a node. For Polyvore, the flag --resampled can be set to use the resampled version of the task, which is harder.

Reference

Please cite our paper as:

@InProceedings{Cucurull_2019_CVPR,
  author = {Cucurull, Guillem and Taslakian, Perouz and Vazquez, David},
  title = {Context-Aware Visual Compatibility Prediction},
  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  month = {June},
  year = {2019}
}

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].