Abstract
Modelling human free-hand sketches has become topical recently, driven by practical applications such as fine-grained sketch based image retrieval (FG-SBIR). Sketches are clearly related to photo edge-maps, but a human free-hand sketch of a photo is not simply a clean rendering of that photo’s edge map. Instead there is a fundamental process of abstraction and iconic rendering, where overall geometry is warped and salient details are selectively included. In this paper we study this sketching process and attempt to invert it. We model this inversion by translating iconic free-hand sketches to contours that resemble more geometrically realistic projections of object boundaries, and separately factorise out the salient added details. This factorised re-representation makes it easier to match a free-hand sketch to a photo instance of an object. Specifically, we propose a novel unsupervised image style transfer model based on enforcing a cyclic embedding consistency constraint. A deep FG-SBIR model is then formulated to accommodate complementary discriminative detail from each factorised sketch for better matching with the corresponding photo. Our method is evaluated both qualitatively and quantitatively to demonstrate its superiority over a number of state-of-the-art alternatives for style transfer and FG-SBIR.
Introduction
Fine-grained sketch-based image retrieval (FG-SBIR) aims to identify a specific object instance from a gallery of photographs based on a user-provided sketch. The primary obstacle in this task is the significant domain gap between human drawings and camera-captured images. Unlike simple edge maps, human sketches involve a complex process of abstraction and iconic rendering.
Humans typically introduce global geometric distortions—such as wobbly lines or exaggerated proportions—while selectively emphasizing salient details like specific textures or hardware. Most existing research attempts to bridge this gap by transforming photographs to look more like sketches. This paper proposes the inverse: Deep Factorised Inverse-Sketching. By "un-distorting" a free-hand sketch into a realistic photo-like contour and factorising out specific object details, the model creates a representation that is significantly easier to match against actual photographs.
Methodology
The proposed framework operates in two distinct stages: unsupervised style transfer and discriminative factorisation for retrieval.
Unsupervised Sketch Style Transfer
The first stage involves restyling a distorted sketch into a clean, geometrically realistic contour. Traditional pixel-level "cyclic consistency" (as seen in CycleGAN) often fails in this domain because sketches and photo contours do not align pixel-for-pixel. To address this, the authors introduce Cyclic Embedding Consistency (CEC).
Instead of enforcing consistency in the image space, the model forces the sketch and the photo contour to share a common low-dimensional semantic embedding space. This "soft consistency" is more robust to the geometric variances inherent in free-hand drawing. Furthermore, an auxiliary Attribute Prediction task is integrated into the embedding layer. By requiring the model to predict semantic attributes (e.g., shoe type), the framework ensures the learned embeddings capture meaningful object features rather than just superficial line patterns.
Discriminative Factorisation for Retrieval
Once the sketch is rectified, the model utilizes a four-branch Siamese network for retrieval. These branches process the original sketch, the synthesized realistic contour, and positive/negative photo examples.
A critical component of this stage is the Decorrelation Loss. This loss function forces the "original sketch" branch and the "synthesized contour" branch to learn non-overlapping features. Consequently, the synthesized branch focuses on global shape, while the original sketch branch is incentivized to capture the fine details (such as straps, buckles, or heels) that may have been smoothed over during the style transfer process.
Experimental Results
Retrieval Performance
The model was evaluated primarily on the QMUL-Shoe-V2 dataset, which contains 6,648 sketches and 2,000 paired photos. The proposed method achieved a state-of-the-art 35.89% acc@1, outperforming standard triplet networks (33.48%) and previous specialized models (33.78%). To provide the target domain for unsupervised learning, the UT-Zap50K dataset was employed, with realistic contours generated via off-the-shelf edge detectors.
Qualitative and Visual Validation
In a human perceptual study, participants preferred the "Inverse-Sketched" contours over those produced by competing models like UNIT or Pix2pix nearly 90% of the time. Visual validation using Grad-CAM confirmed that the factorised model successfully attends to global contours in the synthesized branch and specific discriminative details in the sketch branch. This prevents the model from being "distracted" by the wobbly, non-representative lines typical of human sketching.
Conclusion and Future Work
Deep Factorised Inverse-Sketching demonstrates that rectifying a sketch to match photo geometry is a more effective strategy for FG-SBIR than simulating sketchiness from photos. By separating shape and detail, the model handles the different "noise" profiles of each factor independently.
Future research may focus on generalizing this approach beyond single categories like shoes to more complex scenes or diverse object classes. Additionally, integrating the style transfer and retrieval stages into a single end-to-end differentiable pipeline could further enhance performance and efficiency.
Summary updated