Skip to content

SIGIR‘25 Open-World Fine-Grained Fashion Retrieval with LLM-based Commonsense Knowledge Infusion

Notifications You must be signed in to change notification settings

HuiGuanLab/CoKi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open-World Fine-Grained Fashion Retrieval with LLM-based Commonsense Knowledge Infusion

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

Table of Contents

Environments

  • Ubuntu 22.04
  • CUDA 12.2
  • Python 3.9

Install other required packages by

pip install -r requirements.txt

Datasets

We conduct experiments on three fashion related datasets, i.e., FashionAI, DARN, and DeepFashion. Please download and put them in the corresponding folders.

Download Data

FashionAI

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.

DARN

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

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.

Configuration

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.yaml

Each 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.

Training

Run the following script that uses default settings:

python main.py --cfg config/<Dataset>/<Dataset>.yaml config/<Dataset>/train.yaml

Evaluation

Run 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 TEST

We release several pretrained models:

Reference

@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}
}

About

SIGIR‘25 Open-World Fine-Grained Fashion Retrieval with LLM-based Commonsense Knowledge Infusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages