Dinov2 Base
with ONNX weights to be compatible with Transformers.js.
Fuente del modelo
- Tipo
- Other
- Tamaño del archivo
- 47,2–331 MB
- Modelo base
- facebook/dinov2-base
- Versión
- vRevision d623d12
- Actualizado
- 22 sept 2026
- Descargas
- 1,3 mil
- Fuente
- Hugging Face
Descripción de la fuente
https://huggingface.co/facebook/dinov2-base with ONNX weights to be compatible with Transformers.js.
Usage (Transformers.js)
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Perform image feature extraction.
import { pipeline } from '@huggingface/transformers';
const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/dinov2-base');
const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png';
const features = await image_feature_extractor(url);
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).
Fuentes
1 fuente
Fuentes
1 fuenteVerificado 9 sept
Artefactos del modelo
7 artefactos
Artefactos del modelo
7 artefactosExtractos de fuentes
2 extractos
Extractos de fuentes
2 extractos--- base_model: facebook/dinov2-base library_name: transformers.js --- https://huggingface.co/facebook/dinov2-base with ONNX weights to be compatible with Transformers.js. ## Usage (Transformers.js) If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using: ```bash npm i @huggingface/transformers ``` **Example:** Perform image feature extraction. ```js import { pipeline } from '@huggingface/transformers'; const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/dinov2-base'); const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png'; const features = await image_feature_extractor(url); ``` Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
Source context: 1264 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers.js · Repo Xenova/dinov2-base
