Instructions to use facebook/webssl-dino300m-light2b-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/webssl-dino300m-light2b-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="facebook/webssl-dino300m-light2b-224")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("facebook/webssl-dino300m-light2b-224") model = AutoModel.from_pretrained("facebook/webssl-dino300m-light2b-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config
Browse files- config.json +2 -3
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/checkpoint/amaia/video/davidfan/experiments/dinov2_scaling/metaclipv2_textimg_prompt0/vitl14/12_node/2b_iter/job_5265076/eval/training_649999/hugging_face",
|
| 3 |
"apply_layernorm": true,
|
| 4 |
"architectures": [
|
| 5 |
"Dinov2Model"
|
|
@@ -21,10 +20,10 @@
|
|
| 21 |
"num_hidden_layers": 24,
|
| 22 |
"num_layers_per_block": 6,
|
| 23 |
"out_features": [
|
| 24 |
-
"
|
| 25 |
],
|
| 26 |
"out_indices": [
|
| 27 |
-
|
| 28 |
],
|
| 29 |
"patch_size": 14,
|
| 30 |
"qkv_bias": true,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"apply_layernorm": true,
|
| 3 |
"architectures": [
|
| 4 |
"Dinov2Model"
|
|
|
|
| 20 |
"num_hidden_layers": 24,
|
| 21 |
"num_layers_per_block": 6,
|
| 22 |
"out_features": [
|
| 23 |
+
"stage24"
|
| 24 |
],
|
| 25 |
"out_indices": [
|
| 26 |
+
24
|
| 27 |
],
|
| 28 |
"patch_size": 14,
|
| 29 |
"qkv_bias": true,
|