Views
No views yet
| Checkpoint | Dataset | MAE | Median Error |
|---|---|---|---|
cgd_mambaout_base_coco2017.ckpt | COCO 2017 | 2.84° | 0.55° |
cgd_mambaout_base_coco2014.ckpt | COCO 2014 | 3.71° | 0.68° |
model_cgd.py, architectures.py, rotation_utils.py), then:1from model_cgd import CGDAngleEstimation
2from PIL import Image
3
4# Load model (defaults to COCO 2017 checkpoint)
5model = CGDAngleEstimation.from_pretrained("maxwoe/image-rotation-angle-estimation")
6
7# Or load a specific checkpoint
8# model = CGDAngleEstimation.from_pretrained(
9# "maxwoe/image-rotation-angle-estimation",
10# model_name="cgd_mambaout_base_coco2014.ckpt",
11# )
12
13image = Image.open("your_image.jpg")
14angle = model.predict_angle(image)
15print(f"Predicted rotation: {angle:.1f}°")predict_angle accepts a PIL Image, numpy array, or file path.| Metric | Value |
|---|---|
| MAE | 2.84° |
| Median Error | 0.55° |
| RMSE | 8.45° |
| P90 Error | 3.54° |
| P95 Error | 12.00° |
| Accuracy at 2° | 90.2% |
| Accuracy at 5° | 97.5% |
| Accuracy at 10° | 98.1% |
mambaout_base.in1k), pretrained on ImageNet-1K