concepts.vision.fm_match.diff3f.extractor_dino.get_dino_features#
- get_dino_features(device, dino_model, img, grid, normalize=True)[source]#
Get the DINO features for a given image and grid.
This function will always resize the image to (518, 518) and then compute its DINO features. This will result in a feature map of (37, 37). Then, we will “project” the feature map to the grid using bilinear interpolation.
- Parameters:
- Returns:
the grid-projected DINO features.
- Return type: