Hi, Is this pth file the official weights for dino-v3 7b model?
#1
by
coincheung
- opened
As in the title. Could you show us how to load this weight and generate image feat with it?
I think you can follow https://github.com/facebookresearch/dinov3?
You can load it through:
import torch
from transformers import AutoImageProcessor, AutoModel
from transformers.image_utils import load_image
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = load_image(url)
pretrained_model_name = "facebook/dinov3-convnext-tiny-pretrain-lvd1689m"
processor = AutoImageProcessor.from_pretrained(pretrained_model_name)
model = AutoModel.from_pretrained(
pretrained_model_name,
device_map="auto",
)
Thanks, you are a great man.
coincheung
changed discussion status to
closed