Downloads · 30 days
0
mnmly/anycalib-mlx
anycalib-mlx is a image feature extraction model from mnmly. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
Converted weights for mlx-swift-AnyCalib, a Swift/MLX port of AnyCalib (Tirado-Garín & Civera, ICCV 2025): single-view camera calibration with a camera model chosen after the network runs.
Downloads · 30 days
0
Access
Public
Updated Aug 13, 2026
Repo size
5.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors5.1 GB · 100%
From the Hugging Face model README
Converted weights for mlx-swift-AnyCalib, a Swift/MLX port of AnyCalib (Tirado-Garín & Civera, ICCV 2025): single-view camera calibration with a camera model chosen after the network runs.
These are not new weights. They are the official AnyCalib checkpoints in a different container.
.pt into safetensors.(out, in, kH, kW) → (out, kH, kW, in) for MLX's
native NHWC layout. That same rule also reshapes the (1, 3, 1, 1) ImageNet
mean/std buffers to (1, 1, 1, 3).float16; the default build is float32.No weight values are altered beyond that optional cast. The port is verified stage by stage against the PyTorch reference — on MLX's CPU backend every stage matches to within float32's own noise floor (ray field within 0.0003°).
One subdirectory per pretrained variant, each holding config.json and
weights.safetensors:
anycalib_dist/
anycalib_edit/
anycalib_gen/
anycalib_pinhole/
The variants differ only in training imagery: pinhole (perspective only),
gen (perspective + distorted), dist (distorted + strongly distorted),
edit (stretched and cropped perspective).
anycalib calibrate photo.jpg --cam pinhole --repo mnmly/anycalib-mlx
The Swift loader resolves these through the shared Hugging Face cache, so a copy
pulled by huggingface_hub is reused and vice versa.
Apache 2.0, inherited from upstream. See LICENSE and NOTICE in this repo.
Original work © Javier Tirado-Garín and Javier Civera, I3A, University of Zaragoza. The backbone is DINOv2, © Meta Platforms, Inc., also Apache 2.0.
@InProceedings{tirado2025anycalib,
author={Javier Tirado-Gar{\'i}n and Javier Civera},
title={{AnyCalib: On-Manifold Learning for Model-Agnostic Single-View Camera Calibration}},
booktitle={ICCV},
year={2025}
}