DetailCLIP: Injecting Image Details into CLIP's Feature Space
This work addresses the problem of detail loss in high-resolution image retrieval for applications like remote sensing, where targets appear at tiny scales, representing an incremental improvement over existing CLIP-based methods.
The paper tackles the loss of subtle details in CLIP's feature representation when processing high-resolution images by proposing DetailCLIP, a framework that generates a single feature retaining details from different scales while sharing CLIP's semantic space, and demonstrates significant improvements in image retrieval tasks, particularly for remote sensing applications.
Although CLIP-like Visual Language Models provide a functional joint feature space for image and text, due to the limitation of the CILP-like model's image input size (e.g., 224), subtle details are lost in the feature representation if we input high-resolution images (e.g., 2240). Our proposed framework addresses this issue by generating a single feature representation for a high-resolution image that retains image details from different scales while sharing the same semantic space as the original CLIP. An application scenario is remote sensing text-image retrieval, where targets (e.g., vehicles and ships) often appear at tiny scales. To achieve this, we develop a feature fusion model that relies on CLIP features extracted from a carefully designed image patch method, dubbed Complete Cover. This method ensures comprehensive coverage of objects across various scales and is weakly supervised by image-agnostic class prompted queries. We evaluate our framework's performance using real-world and synthetic datasets, demonstrating significant improvements in image retrieval tasks based on class prompted queries. To further showcase our framework's capability in detail retrieval, we introduce a CLEVR-like synthetic dataset, named CLVER-DS. This fully annotated dataset offers a controllable object scale, allowing for a more thorough examination of our approach's effectiveness.Our code is publicly available at https://github.com/zilunzhang/DetailCLIP