Fine Tuning Similar Cars Search
Blog post from Qdrant
Quaterion is a framework designed to address challenges in similarity learning, which offers solutions for tasks where traditional supervised classification falls short, such as search or retrieval. It utilizes PyTorch Lightning, providing tools like trainable model classes, annotated loss functions, and a wrapper for PyTorch Metric Learning, aiming to reduce engineering time and enhance research focus. The framework includes a caching mechanism to optimize iterations and memory usage. Quaterion's architecture comprises trainable models with configurable components like encoders and encoder heads, which can leverage pretrained models such as ResNet. It supports sophisticated loss functions, exemplified by Triplet Loss, and incorporates caching strategies to boost efficiency. The tutorial explores training and evaluating a model using the Stanford Cars dataset to demonstrate how Quaterion can effectively manage novel class retrieval, achieving significantly improved performance compared to a baseline model.