This repository contains the implementation of our SIGIR'25 full paper.

- Ubuntu 22.04
- CUDA 12.2
- Python 3.9
Install other required packages by
pip install -r requirements.txtWe conduct experiments on three fashion related datasets, i.e., FashionAI, DARN, and DeepFashion. Please download and put them in the corresponding folders.
As the full FashionAI has not been publicly released, we utilize its early version for the FashionAI Global Challenge 2018. You can first sign up and download two training subsets:
- fashionAI_attributes_train1.zip(6G)
- fashionAI_attributes_train2.zip(7G).
Once done, you should uncompress and link them into the data/FashionAI directory.
As some images’ URLs have been broken, only 214,619 images are obtained for our experiments. We provide a series of URLs for the images. Please download them into a pic directory that should be created in data/DARN directory.
DeepFashion is a large dataset which consists of four benchmarks for various tasks in the field of clothing including category and attribute prediction which we use for our experiments, in-shop clothes retrieval, fashion landmark detection and consumer-to-shop clothes retrieval. Download the images into a img directory that should be created in data/DeepFashion directory.
The behavior of our codes is controlled by configuration files under the config directory.
config
│── FashionAI
│ ├── FashionAI.yaml
│ ├── train.yaml
├── DARN
│ ├── DARN.yaml
│ ├── train.yaml
└── DeepFashion
├── DeepFashion.yaml
├── train.yamlEach dataset is configured by two types of configuration files. One is <Dataset>.yaml that specifies basic dataset information such as path to the training data and annotation files. The other sets some training options as needed.
If the above data directory is placed at the same level with main.py, no changes are needed to the configuration files. Otherwise, be sure to correctly configure relevant path to the data according to your working environment.
Run the following script that uses default settings:
python main.py --cfg config/<Dataset>/<Dataset>.yaml config/<Dataset>/train.yamlRun the following script to test on the trained models:
python main.py --cfg config/<Dataset>/<Dataset>.yaml config/<Dataset>/train.yaml --resume runs/<Dataset>_train/model_best.pth.tar --test TESTWe release several pretrained models:
- Coki on FashionAI: released_model
- Coki on DARN: released_model
- Coki on DeepFashion: released_model
@inproceedings{dong2025open,
title={Open-world fine-grained fashion retrieval with llm-based commonsense knowledge infusion},
author={Dong, Jianfeng and Zhu, Junwei and Liu, Daizong and Qu, Xiaoye and Bao, Cuizhu and Han, Zhike and Zhu, Jixiang and Wang, Xun},
booktitle={Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval},
pages={223--232},
year={2025}
}