DINOv3
Paper • 2508.10104 • Published • 308
How to use unionpoint/vit_small_plus_patch16_dinov3.ft_plantdoc_384 with timm:
import timm
model = timm.create_model("hf_hub:unionpoint/vit_small_plus_patch16_dinov3.ft_plantdoc_384", pretrained=True)How to use unionpoint/vit_small_plus_patch16_dinov3.ft_plantdoc_384 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="unionpoint/vit_small_plus_patch16_dinov3.ft_plantdoc_384")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("unionpoint/vit_small_plus_patch16_dinov3.ft_plantdoc_384", dtype="auto")This model classifies diseases from plant images.
Built with:
import torch
import timm
# create model
model = timm.create_model(
"vit_small_plus_patch16_dinov3.lvd1689m",
pretrained=False,
num_classes=39,
)
# load weights
state_dict = torch.load("model.bin", map_location="cpu")
model.load_state_dict(state_dict)