heesup/Cowpea-Architecture-XML
Preview β’ Updated β’ 320
How to use heesup/dinov2-small_448_Sideview_gpt2-medium with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("heesup/dinov2-small_448_Sideview_gpt2-medium")
model = AutoModel.from_pretrained("heesup/dinov2-small_448_Sideview_gpt2-medium", device_map="auto")Lightweight ViT-S checkpoint from the paper "A vision language model for generating XML-based organ-level plant architecture representations of cowpea from simulated images" (Frontiers in Artificial Intelligence, 2026).
Note: For the best-performing checkpoint reported in the paper (ViT-B + GPT-2-Medium, BLEU-4 94.00%, ROUGE-L 0.5182), see heesup/dinov2-base_448_RGB_Sideview_gpt2-medium.
facebook/dinov2-small (ViT-S)gpt2-medium (with cross-attention)448 x 448 RGB9000β9099)
| Metric | Score |
|---|---|
| BLEU-4 | 84.27% |
| ROUGE-L | 0.5175 |
See the GitHub repository for PlantArchitectureModel and XML conversion utilities:
import torch
from models.model import PlantArchitectureModel
checkpoint_path = "heesup/dinov2-small_448_Sideview_gpt2-medium"
model = PlantArchitectureModel.from_pretrained(checkpoint_path, torch_dtype=torch.float16).to("cuda")
model.eval()
@article{yun2026vision,
title={A vision language model for generating XML-based organ-level plant architecture representations of cowpea from simulated images},
author={Yun, Heesup and Uyehara, Isaac Kazuo and Droutsas, Ioannis and Ranario, Earl and Diepenbrock, Christine H. and Bailey, Brian N. and Earles, J. Mason},
journal={Frontiers in Artificial Intelligence},
volume={9},
pages={1844338},
year={2026},
doi={10.3389/frai.2026.1844338},
url={https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2026.1844338/full}
}