Wood Image Classification — A (38 Classes)
PyTorch checkpoint for condition A_all_38, using a ViT-B/16 model (timm architecture: vit_base_patch16_224).
Evaluation
This is the fold-1, seed-42 checkpoint. It was trained on the fold-1 training and validation partitions and evaluated on that fold's held-out test partition. These are single-fold results, not the aggregate across folds and seeds.
| Test images | Test individuals | Macro-F1 / image | Macro-F1 / individual | Accuracy |
|---|---|---|---|---|
| 1,626 | 298 | 0.991253 | 0.996060 | 0.992620 |
Training configuration
- Classes: 38
- Epochs: 15
- Seed: 42
- Learning rate:
1e-4 - Weight decay:
0.01 - Selection: architecture and epoch selected using the validation protocol
The checkpoint file contains the state_dict, ordered class list, class_to_idx, training metadata, and preprocessing configuration.
Load the checkpoint
Requires PyTorch and timm.
import torch
import timm
checkpoint = torch.load(
"A_all_38_fold1_vit_base_patch16_224_seed42.pt",
map_location="cpu",
weights_only=True,
)
model = timm.create_model(
checkpoint["model_name"],
pretrained=False,
num_classes=len(checkpoint["classes"]),
)
model.load_state_dict(checkpoint["state_dict"], strict=True)
model.eval()
classes = checkpoint["classes"]
class_to_idx = checkpoint["class_to_idx"]
Use resize to 256 pixels with bicubic interpolation, center crop to 224×224, convert to tensor, then normalize with checkpoint["pretrained_cfg"]["mean"] and checkpoint["pretrained_cfg"]["std"].
This is a fold-specific research model, not a model retrained on the entire dataset. Confirm the dataset's terms before redistributing the weights.
Citation
If you use WoodBR-Cross in your research, please cite the accompanying paper:
Casanova, D., Gontijo, A. B., Candido Junior, A., Nisgoski, S., & de Paula Filho, P. L. (2026). WoodBR-Cross: A public wood-image dataset and individual-tree-disjoint benchmark for species identification. arXiv. https://doi.org/10.48550/arXiv.2610.12676
BibTeX
@article{casanova2026woodbrcross,
title = {{WoodBR-Cross}: A public wood-image dataset and individual-tree-disjoint benchmark for species identification},
author = {Casanova, Daniel and Gontijo, Alexandre Bahia and Candido Junior, Arnaldo and Nisgoski, Silvana and de Paula Filho, Pedro Luiz},
year = {2026},
journal = {arXiv preprint arXiv:2610.12676},
eprint = {2610.12676},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
doi = {10.48550/arXiv.2610.12676},
url = {https://arxiv.org/abs/2610.12676}
}