Upload the checkpoint
Browse filesFiles changed (13)
- 2D_Stage/models/checkpoint/pytorch_model.binAdded+3
- 2D_Stage/models/checkpoint/pytorch_model_1.binAdded+3
- 2D_Stage/models/checkpoint/pytorch_model_2.binAdded+3
- 2D_Stage/models/checkpoint/random_states_0.pklAdded+3
- 2D_Stage/models/checkpoint/scaler.ptAdded+3
- 2D_Stage/models/checkpoint/scheduler.binAdded+3
- 2D_Stage/models/image_encoder/config.jsonAdded+23
- 2D_Stage/models/image_encoder/pytorch_model.binAdded+3
- 3D_Stage/models/base/README.mdAdded+60
- 3D_Stage/models/base/config.jsonAdded+24
- 3D_Stage/models/base/preprocessor_config.jsonAdded+27
- 3D_Stage/models/base/pytorch_model.binAdded+3
- 3D_Stage/models/lrm.ckptAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:78c23c5e22d9c288d71414ec9604430b1298e652bb596ca2ff594792c1be4286size 3477169045123version https://git-lfs.github.com/spec/v1oid sha256:ea2e21ccc13d9886254fa3a3f0008d1a00f07de08a7479abae4641dbb9bdebe9size 467911123version https://git-lfs.github.com/spec/v1oid sha256:c4778df29d33f4bf04c4ce2c3f20ed689356b97768f8de2a1abd83cc65c64fa8size 3466686597123version https://git-lfs.github.com/spec/v1oid sha256:3e7a6c2bd22c21bae0c8e44733217ee7e70700fb0f902dc81264a034c630c36csize 21643123version https://git-lfs.github.com/spec/v1oid sha256:3c63c3d2e7b7f18788aca8a5a0e766ad4633f631d49192602d8532b6b0df7615size 559123version https://git-lfs.github.com/spec/v1oid sha256:9dd24dd3ce46b1f2d8818aaa494cf772b80ded38d54dfed6df753f0ae2123630size 6231234567891011121314151617181920212223{ "_name_or_path": "./image_encoder", "architectures": [ "CLIPVisionModelWithProjection" ], "attention_dropout": 0.0, "dropout": 0.0, "hidden_act": "gelu", "hidden_size": 1280, "image_size": 224, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 5120, "layer_norm_eps": 1e-05, "model_type": "clip_vision_model", "num_attention_heads": 16, "num_channels": 3, "num_hidden_layers": 32, "patch_size": 14, "projection_dim": 1024, "torch_dtype": "float16", "transformers_version": "4.28.0.dev0"}123version https://git-lfs.github.com/spec/v1oid sha256:3d3ec1e66737f77a4f3bc2df3c52eacefc69ce7825e2784183b1d4e9877d9193size 2528481905123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960---license: apache-2.0tags:- dino- vision---
# Vision Transformer (base-sized model) trained using DINOv2
Vision Transformer (ViT) model trained using the DINOv2 method. It was introduced in the paper [DINOv2: Learning Robust Visual Features without Supervision](https://arxiv.org/abs/2304.07193) by Oquab et al. and first released in [this repository](https://github.com/facebookresearch/dinov2).
Disclaimer: The team releasing DINOv2 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a self-supervised fashion.
Images are presented to the model as a sequence of fixed-size patches, which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.
Note that this model does not include any fine-tuned heads.
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image.
## Intended uses & limitations
You can use the raw model for feature extraction. See the [model hub](https://huggingface.co/models?search=facebook/dinov2) to look forfine-tuned versions on a task that interests you.
### How to use
Here is how to use this model:
```pythonfrom transformers import AutoImageProcessor, AutoModelfrom PIL import Imageimport requests
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'image = Image.open(requests.get(url, stream=True).raw)
processor = AutoImageProcessor.from_pretrained('facebook/dinov2-base')model = AutoModel.from_pretrained('facebook/dinov2-base')
inputs = processor(images=image, return_tensors="pt")outputs = model(**inputs)last_hidden_states = outputs.last_hidden_state```
### BibTeX entry and citation info
```bibtexmisc{oquab2023dinov2, title={DINOv2: Learning Robust Visual Features without Supervision}, author={Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski}, year={2023}, eprint={2304.07193}, archivePrefix={arXiv}, primaryClass={cs.CV}}```123456789101112131415161718192021222324{ "architectures": [ "Dinov2Model" ], "attention_probs_dropout_prob": 0.0, "drop_path_rate": 0.0, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "image_size": 518, "initializer_range": 0.02, "layer_norm_eps": 1e-06, "layerscale_value": 1.0, "mlp_ratio": 4, "model_type": "dinov2", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 14, "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.31.0.dev0", "use_swiglu_ffn": false}123456789101112131415161718192021222324252627{ "crop_size": { "height": 256, "width": 256 }, "do_center_crop": false, "do_convert_rgb": false, "do_normalize": true, "do_rescale": true, "do_resize": false, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "BitImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 256 }}123version https://git-lfs.github.com/spec/v1oid sha256:014965d9e330e7f4bff8ddcbee9df5e4f2ca032b2f5180942a6edb454783e75dsize 346392713123version https://git-lfs.github.com/spec/v1oid sha256:ec0edc6eed553910bdf8a1ceb204d8837d7b823826dca55f673c84046078094bsize 43610329662D_Stage/models/checkpoint/pytorch_model.binAdded+3
2D_Stage/models/checkpoint/pytorch_model_1.binAdded+3
2D_Stage/models/checkpoint/pytorch_model_2.binAdded+3
2D_Stage/models/checkpoint/random_states_0.pklAdded+3
2D_Stage/models/checkpoint/scaler.ptAdded+3
2D_Stage/models/checkpoint/scheduler.binAdded+3
2D_Stage/models/image_encoder/config.jsonAdded+23
2D_Stage/models/image_encoder/pytorch_model.binAdded+3
3D_Stage/models/base/README.mdAdded+60
3D_Stage/models/base/config.jsonAdded+24
3D_Stage/models/base/preprocessor_config.jsonAdded+27
3D_Stage/models/base/pytorch_model.binAdded+3
3D_Stage/models/lrm.ckptAdded+3