# UNSAMV2: Self-Supervised Learning Enables Segment Anything at Any Granularity

Source: https://www.youtube.com/watch?v=qsyB1fP0Xs0
Recap page: https://rapidrecap.app/video/qsyB1fP0Xs0
Generated: 2025-11-21T18:37:27.067+00:00

---
## Quick Overview

The UNSAMv2 model achieves self-supervised learning for image segmentation across any granularity by fundamentally changing how segmentation is defined, shifting from a fixed object definition to a continuous, user-controllable process that integrates context.

**Key Points:**
- UNSAMv2 is a self-supervised learning model that enables image segmentation at any granularity, effectively solving the object ambiguity problem.
- The model achieves this by placing the definition of the object back in the user's hands, offering continuous control over segmentation granularity.
- The authors leveraged the success of SAMv2 and DinoV2, but introduced a new granularity-aware mask token and a novel continuous context-dependent mechanism.
- Experiments show UNSAMv2 significantly outperforms SAMv2, achieving a 15.2% jump on the CA80/NC90 metric and a 16.5% jump on CA80/NC90 for the original Sam data.
- The model uses a continuous scale factor (G) from 0.1 to 1.0 to control the level of detail, allowing users to specify finer or coarser segmentations.
- The evaluation metrics confirmed that UNSAMv2 achieved superior performance across various segmentation tasks compared to previous state-of-the-art methods.

![Screenshot at 07:25: The speaker summarizes the core benefit of the new approach, stating that the shift from a fixed object definition to continuous control ensures that discovered parts remain semantically meaningful.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-07-25.png)

**Context:** The video discusses the limitations of previous foundational vision models like SAM (Segment Anything Model) which often struggled with defining objects at arbitrary levels of detail, leading to ambiguity or rigidity in segmentation outputs. The new model, UNSAMv2, builds upon the success of SAMv2 and DinoV2 by introducing mechanisms for continuous control over segmentation granularity, allowing the model to adapt its segmentation based on user-defined context, moving beyond fixed definitions.

## Detailed Analysis

The discussion focuses on the advancements in image segmentation brought by the UNSAMv2 model, specifically its ability to handle segmentation at any desired granularity. The key innovation is moving away from the fixed, ambiguous definition of an object prevalent in earlier models like SAM. UNSAMv2 grants users continuous control over the segmentation output by introducing a granularity factor (G) slider, ranging from 0.1 (coarse) to 1.0 (fine). This is achieved by integrating a new granularity-aware mask token and leveraging the power of DinoV2 features. The model successfully decomposes large instances into smaller, contextually relevant sub-parts without requiring extensive human labeling, unlike previous methods that relied on millions of labeled masks. During evaluation, UNSAMv2 significantly outperformed SAMv2, showing a 15.2% improvement on the CA80/NC90 metric and a 16.5% improvement on the same metric when tested on SAM's original data. This efficiency means users need significantly fewer clicks to achieve desired results, moving the process from guesswork to precise control over object perception.

### Introduction to UNSAMv2

- Deep dive into the next massive step for Vision Foundation Models
- UNSAMv2 enables segmenting anything at any granularity
- Tearing apart research papers on UNSAMv2

### The Object Ambiguity Problem

- Difficulty arises when models like SAM rely on human annotators to draw boundaries
- Traditional models yield fixed outputs, creating gaps in perceived context

### UNSAMv2's Solution

- Puts the definition back in the user's hands via continuous flexibility
- Introduces a granularity factor (G) slider from 0.1 to 1.0
- This allows for granular control over visual perception

### Technical Implementation

- Uses a continuous scale factor (G) to merge regions until the entire holistic entity is captured
- Leverages DinoV2 features to decompose large instances into smaller, meaningful sub-parts

### Performance Metrics

- UNSAMv2 achieved a score of 58.0 compared to Sam's 42.5 on the CA80/NC90 metric, showing a huge boost
- The model performs exceptionally well in interactive segmentation tasks, even on unseen data

### Conclusion and Future Implications

- The model fundamentally redefines the relationship between user and AI model perception
- Enables precise control over segmentation, moving away from ambiguity

![Screenshot at 00:00: Introductory screen with podcast hosts and 'Become A Member Today!' call to action.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-00-00.png)
![Screenshot at 01:45: Visual representation of the granularity control slider being adjusted from a lower to a higher value.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-01-45.png)
![Screenshot at 05:55: Comparison showing the dense nature of the previously learned structure versus the new decomposition strategy.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-05-55.png)
![Screenshot at 08:48: Graphic displaying the quantitative performance improvement: Sam score 40.4 vs. UNSAMv2 score 58.0.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-08-48.png)
![Screenshot at 11:18: Chart comparing the accuracy of the one-click evaluation metric for different models.](https://ss.rapidrecap.app/screens/qsyB1fP0Xs0/00-11-18.png)
