Spaces:
Paused
Paused
File size: 1,501 Bytes
3f62a95 15e4e8c b599b20 3f62a95 b599b20 3f62a95 b599b20 3f62a95 15e4e8c b599b20 15e4e8c b599b20 15e4e8c b599b20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ---
title: AnyCalib
emoji: "\U0001F4F7"
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: true
license: apache-2.0
tags:
- camera-calibration
- anycalib
- computer-vision
- lens-correction
- dinov2
---
# AnyCalib — Full-Resolution Camera Calibration
Single-image camera calibration and lens distortion correction.
No quantization, no resolution limits — full FP32 inference with the complete AnyCalib pipeline.
Automatically uses GPU when available (ZeroGPU / dedicated), falls back to CPU.
## What it does
1. Upload any image (phone photo, action cam, drone, dashcam, etc.)
2. DINOv2 ViT-L/14 backbone predicts per-pixel ray directions
3. RANSAC + Gauss-Newton calibrator fits camera intrinsics
4. Image is undistorted at **original resolution** using the fitted parameters
## Output
- **Corrected image** at full input resolution
- **Camera intrinsics**: focal length, principal point, distortion k1
- **FOV** (horizontal and vertical)
- **Distortion type** (barrel, pincushion, or negligible)
- **Raw JSON** with all parameters, timing, and metadata
## Model
- **Architecture**: DINOv2 ViT-L/14 (304M) + LightDPT (15.2M) + ConvexTangentDecoder (0.6M)
- **Total**: ~320M parameters, full FP32
- **Weights**: [SebRincon/anycalib](https://huggingface.co/SebRincon/anycalib)
- **ONNX**: [SebRincon/anycalib-onnx](https://huggingface.co/SebRincon/anycalib-onnx)
- **Source**: [github.com/javrtg/AnyCalib](https://github.com/javrtg/AnyCalib)
|