A Detect-Then-Retrieve Model for Multi-Domain Fashion Item Retrieval

Michal Kucer, Naila MurrayWorkshops @ CVPR 2019

Introduction

The "Street-to-Shop" task aims to bridge the gap between casual user-taken photos ("street" images) and professional retail catalogs ("shop" images). This task is inherently challenging due to the significant domain gap—street images are often low-quality and cluttered, while shop images are staged and clean—and the high deformability of fashion items, which change appearance based on human pose.

Historically, solutions relied on category-specific models, which are difficult to scale and computationally expensive. This paper proposes a simplified "detect-then-retrieve" pipeline that utilizes a single universal model to achieve state-of-the-art results on the Exact Street2Shop benchmark.

The Detect-Then-Retrieve Pipeline

The authors introduce a two-stage approach designed to minimize background noise and focus on fine-grained visual features.

The proposed detect-then-retrieve pipeline: (a) detection of items in a street image, (b) cropping of detected items, and (c) retrieval of matching shop items.
  1. Clothing Item Detection: A Mask R-CNN with a ResNext-101 backbone is employed to detect and crop fashion items in both query and database images. By applying detection to the retail database as well as the user query, the model effectively removes "distractors" like studio props or model limbs.
  2. Fashion Item Retrieval: The cropped patches are processed by a ResNet50 backbone. The standard pooling layer is replaced with Generalized Mean (GeM) pooling to better capture the subtle details necessary for exact matching.

Loss Ensembling: The "Secret Sauce"

A key innovation in this work is the ensembling of two complementary loss functions:

  • Triplet Loss: Ensures that positive matches are closer to the query than negative ones by a defined margin, excelling at identifying the very best matches.
  • Average Precision (AP) Loss: Directly optimizes the ranking metric, helping to refine the overall retrieval list.

By concatenating features from models trained with these distinct objectives, the system achieves a "best of both worlds" performance boost without changing the underlying architecture.

Datasets and Evaluation

The model was trained and evaluated using two major datasets:

  • ModaNet: Used to train the initial detector, providing 55,000 street images with polygon annotations across 13 categories.
  • Exact Street2Shop: The primary benchmark for retrieval, containing over 400,000 shop images and 20,000 street queries across 11 categories.

Key Results and Insights

The proposed ensemble significantly outperformed previous benchmarks. On the Exact Street2Shop dataset, the model achieved an average mAP of 0.2967 and a Top-1 accuracy of 34.4%, nearly doubling the performance of earlier baselines.

Notably, the "universal model" approach proved that a single well-trained network could outperform a suite of category-specific ones. This makes the system more memory-efficient and practical for production environments. However, the authors noted a "footwear exception": detection provided minimal gains for shoes, likely because retail shoe photos are already highly standardized and clean.

Conclusion

By combining robust detection with a dual-loss retrieval strategy, this "detect-then-retrieve" framework simplifies the Street-to-Shop pipeline while setting a new standard for accuracy. Future work may focus on reducing latency through one-stage architectures that perform detection and description simultaneously.

Summary updated

BibTeX
@inproceedings{kucer2019detect,
  author = {Michal Kucer and Naila Murray},
  title = {{A Detect-Then-Retrieve Model for Multi-Domain Fashion Item Retrieval}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00047},
}
Figure