Downloads · 30 days
8
14% of all-time downloads
aksshaymathewp/agrihybridFM-small-dino-pretrained
agrihybridFM-small-dino-pretrained is a image classification model from aksshaymathewp. Use it when you need a label for an image. The card lists the license as apache-2.0.
AgriHybridFM: A hybrid CNN-Transformer foundation model for agricultural vision tasks. Pretrained using DINO self-supervised learning on agricultural images.
Downloads · 30 days
8
14% of all-time downloads
All-time downloads
59
Public
Parameters
51.3M
410 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin205 MB · 50%
From the Hugging Face model README
AgriHybridFM: A hybrid CNN-Transformer foundation model for agricultural vision tasks. Pretrained using DINO self-supervised learning on agricultural images.
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import torch
# Download weights
weights_path = hf_hub_download(
repo_id="aksshaymathewp/agrihybridFM-small-dino-pretrained",
filename="model.safetensors"
)
# Load state dict
state_dict = load_file(weights_path)
# Create model (you need the AgriViT model code)
from models import create_agrivit
model = create_agrivit("small")
model.load_state_dict(state_dict)
model.eval()
If you use this model, please cite:
@misc{agrihybridfm2024,
title={AgriHybridFM: A Hybrid CNN-Transformer Foundation Model for Agricultural Vision},
author={Aksshay Mathew P},
year={2024},
}
Apache 2.0