Wood Image Classification — B1 (Image Split)
PyTorch checkpoint for condition B1_species_20_image_split, using a ViT-B/16 model (timm architecture: vit_base_patch16_224). The task has 20 classes and uses an image-level split.
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,135 | 209 | 0.990466 | 0.988937 | 0.990308 |
Training configuration
- Classes: 20
- Epochs: 8
- Seed: 42
- Learning rate:
3e-5 - 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(
"B1_species_20_image_split_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.
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}
}