dinov2 icon indicating copy to clipboard operation
dinov2 copied to clipboard

PyTorch code and models for the DINOv2 self-supervised learning method.

Results 171 dinov2 issues
Sort by recently updated
recently updated
newest added

If you can share the code for visualizing, it must be a big&nice contribution

documentation

I would like to ask you if there is possibility to modify the code to feed 3D images? if not, do you have a plan to extend the code to...

Thanks for the outstanding work. Do you have the plan to release the LVD-142M dataset or codes for data processing?

enhancement

I'm not able to find code for Semantic segmentation. In the paper it's written that: ``` a linear layer is trained to predict class logits from a patch tokens. It...

have not find an easy way to do that. managed to get features. `import torch from PIL import Image import torchvision.transforms as T import hubconf dinov2_vits14 = hubconf.dinov2_vits14() image_transforms =...

documentation

Hi, amazing work you've done here! I would like to use this as a backbone in a cnn-based Autoencoder. I have no experience with transformers (.. except from interfering with...

Can somebody please explain this? (Windows 10 + Anaconda) ``` Requirement already satisfied: xformers in c:\users\atc\appdata\roaming\python\python39\site-packages (0.0.18) ``` versus ``` ResolvePackageNotFound: - xformers::xformers=0.0.18 ``` The full log: ``` (base) E:\dino-v2>conda...

documentation

Sorry, I installed -- extra index URL https://pypi.nvidia.com CUML CU11 generated this error pip install --extra-index-url https://pypi.nvidia.com cuml_cu11 Looking in indexes: https://pypi.org/simple, https://pypi.nvidia.com Collecting cuml_cu11 Using cached cuml_cu11-23.4.0.1681368248.tar.gz (6.8 kB)...

1.) vision_transformer `forward` does `self.head(ret["x_norm_clstoken"])` in eval, where `ret` is the result of `forward_features` https://github.com/facebookresearch/dinov2/blob/ea5276ec8c27d7db59632cf75870cb3c1037de1f/dinov2/models/vision_transformer.py#L290 2.) the value of `forward_features` can be the result of `forward_features_list` https://github.com/facebookresearch/dinov2/blob/ea5276ec8c27d7db59632cf75870cb3c1037de1f/dinov2/models/vision_transformer.py#L223 3.) `forward_features_list` returns...

I'm trying to export the model into `.onnx`. Here's my code: ```python import torch model = torch.hub.load('facebookresearch/dinov2', 'dinov2_vits14').to('cuda:0') model.eval() # Generate some input data input_data = torch.randn(1, 3, 224, 224).to('cuda:0')...

enhancement