What's new?
-
Add support for DINOv3 in #1390
See here for the full list of supported models.
Example: Compute image embeddings
import { pipeline } from '@huggingface/transformers'; const image_feature_extractor = await pipeline( 'image-feature-extraction', 'onnx-community/dinov3-vits16-pretrain-lvd1689m-ONNX', ); const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png'; const features = await image_feature_extractor(url); console.log(features);
Try it out using our online demo:
dinov3.mp4
Full Changelog: 3.7.1...3.7.2