加载中…
加载中…
A Multi-Stage Convolutional Vision Transformer Framework for Corn Kernel Analysis
Three-stage hierarchical classification pipeline for automated corn kernel quality assessment:
# Clone repository
git clone https://github.com/microsoft/CvT.git
# Install dependencies
pip install -r requirements.txt
Each stage has independent training scripts:
python stage1/train_cvt13.py # Purity classification
python stage2/train_cvt13.py # Shape classification
python stage3/train_cvt13.py # Embryo orientation
python stage1/inference_cvt13.py
python stage2/inference_cvt13.py
python stage3/inference_cvt13.py
ResNet50 and DenseNet121 baselines available in baselines/.
├── stage1/ # Purity classification
├── stage2/ # Shape classification
├── stage3/ # Embryo orientation
└── preprocess/ # Data preprocessing scripts
If you use this code, models, or catalog in your research, please cite:
@Article{computers15010002,
AUTHOR = {Erukude, Sai Teja and Mascarenhas, Jane and Shamir, Lior},
TITLE = {CornViT: A Multi-Stage Convolutional Vision Transformer Framework for Hierarchical Corn Kernel Analysis},
JOURNAL = {Computers},
VOLUME = {15},
YEAR = {2026},
NUMBER = {1},
ARTICLE-NUMBER = {2},
URL = {https://www.mdpi.com/2073-431X/15/1/2},
ISSN = {2073-431X},
DOI = {10.3390/computers15010002}
}