An ONNX export of the age output of iitolstykh/mivolo_v2 (MiVOLO: Multi-input Transformer for Age and Gender Estimation, by Maksim Kuprashevich and Irina Tolstykh), made for Slide Station, which dates digitised family slides from the ages of the people on them. Only the file format changed: same weights, same licence (Apache-2.0).
faces_bodies: float32 [1, 6, 384, 384] — the face crop's 3 channels, then the body crop's.
Each crop: letterboxed to 384 × 384 (keep the aspect ratio, pad with black, centred), RGB,
divided by 255, normalised with ImageNet mean [0.485, 0.456, 0.406] and std
[0.229, 0.224, 0.225]. Without a body crop, pass an all-black image normalised the same way
(MiVOLO's own "no body").age: float32 [1, 1] — years.This matches MiVOLO's own preprocessing (mivolo.data.misc.prepare_classification_images).
Checked against the PyTorch model on 41 faces: at most 0.01 years apart.
torch.onnx.export(..., opset_version=18, dynamo=True) of mivolo_v2 loaded with
trust_remote_code=True in float32 (transformers 4.51.0, timm 0.8.13dev0), wrapped to return
age_output for a concat_input. Batch size is fixed at 1.
@article{mivolo2023,
Author = {Maksim Kuprashevich and Irina Tolstykh},
Title = {MiVOLO: Multi-input Transformer for Age and Gender Estimation},
Year = {2023},
Eprint = {arXiv:2307.04616},
}
@article{mivolo2024,
Author = {Maksim Kuprashevich and Grigorii Alekseenko and Irina Tolstykh},
Title = {Beyond Specialization: Assessing the Capabilities of MLLMs in Age and Gender Estimation},
Year = {2024},
Eprint = {arXiv:2403.02302},
}
iitolstykh/mivolo_v2