miquel-espinosa/no-time-to-train
Official code for "No time to train! Training-Free Reference-Based Instance Segmentation"
What it solves
This project addresses the high cost and complexity of training custom object segmentation models. Typically, segmenting new objects requires large datasets and extensive fine-tuning. This tool removes those requirements, allowing you to identify and segment objects in new images using only a few reference examples.
How it works
It uses a training-free, reference-based approach that leverages the semantic knowledge already learned by powerful foundation models like SAM2 and DINOv2. The process involves three main steps:
- Memory Bank Construction: It stores features from your provided reference images.
- Representation Aggregation: It organizes these features to create a reliable reference set.
- Semantic-Aware Feature Matching: It compares the target image against the memory bank to automatically generate precise segmentation masks for the objects you want to find.
Who it’s for
It is designed for researchers and developers who need to perform instance segmentation on new object categories without the time or resources to train or fine-tune a model from scratch.
Highlights
- Training-Free: No fine-tuning or complex prompt engineering required.
- Reference-Based: Segment new objects by simply providing a few example images.
- State-of-the-Art: Delivers top-tier performance on standard benchmarks like COCO and PASCAL VOC.
- Flexible: Includes tools to convert bounding box annotations into segmentation masks automatically using SAM2.
Related
- Project
- Project
- Project
- Project