/ Модель

Характеристики

Размер весов
4 ГБ
Лицензия
Своя лицензия
Библиотека
mlx
Опубликована
22 сен 2026

LoMa-mlx

Языковая модель

Неофициальная конверсия LoMa в формат MLX для сопоставления ключевых точек между изображениями на устройствах Apple Silicon.

0скачиваний за 30 дней0лайковвеса обновлены22 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

mnmly/LoMa-mlx — неофициальная конверсия пяти чекпойнтов LoMa в формат MLX, подготовленная сторонним автором для запуска через Swift-пакет mlx-swift-LoMa (LoMaKit) на Apple Silicon. LoMa сопоставляет локальные признаки на паре изображений: полный конвейер включает детектор ключевых точек DaD, дескриптор DeDoDe и матчинг LoMa; варианты DeDoDe-G используют также DINOv2 ViT-L/14. Веса сохранены в safetensors с расположением тензоров NHWC; опубликованные варианты различаются размером и конфигурацией, а таблица README приводит размеры от 127 до 900 МБ для части вариантов.

Это форматное преобразование исходных весов без переобучения, дообучения или квантизации. README сообщает о проверке соответствия PyTorch-референсу: на CPU относительная ошибка не превышала 1e-5, а в сравнении полного сопоставления на MPS большинство найденных совпадений воспроизводилось в пределах двух пикселей. Модель предназначена для сопоставления изображений и извлечения соответствующих точек в задачах компьютерного зрения. Конверсия неофициальная и не одобрена авторами LoMa; лицензия указана как other, поэтому условия использования следует уточнить в исходном репозитории и у авторов.

Сценарии применения

  • сопоставление ключевых точек на двух изображениях
  • поиск соответствий между локальными признаками изображений
  • сравнение кадров для визуальной локализации
  • получение пар совпадающих точек для компьютерного зрения

Ограничения

Конверсия неофициальная и рассчитана на запуск через LoMaKit на Apple Silicon; результаты могут отличаться от PyTorch-референса, в том числе из-за различий декодирования JPEG. Лицензия обозначена как other, поэтому применимые условия использования нужно проверять отдельно.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LoMa — MLX weights (unofficial conversion)

MLX-format (.safetensors, NHWC) conversions of the five released LoMa: Local Feature Matching Revisited (ECCV 2026) checkpoints. They are for use with the mlx-swift-LoMa Swift package (LoMaKit), which runs on Apple Silicon.

Unofficial. These files were converted by a third party. They are not produced or endorsed by the LoMa authors. All credit for the models goes to the original authors (see Citation).

Each file bundles the whole pipeline: the DaD keypoint detector, the DeDoDe descriptor (VGG19-BN, plus DINOv2 ViT-L/14 for the dedode_g variants) and the LoMa matcher.

FileUpstream checkpointMatcher (embed / heads)DescriptorSize
loma_b.safetensorsloma_B.pt256 / 4DeDoDe-G, 256-d758 MB
loma_b128.safetensorsloma_B128.pth256 / 4DeDoDe-B, 128-d127 MB
loma_l.safetensorsloma_L.pth512 / 8DeDoDe-G, 256-d900 MB
loma_g.safetensorsloma_G.pth1024 / 16DeDoDe-G, 256-d1.47 GB
loma_r.safetensorsloma_R.pth (rotation-invariant)256 / 4DeDoDe-G, 256-d758 MB

Each loma_<v>.json holds that variant's configuration, the SHA-256 of the upstream checkpoint it was converted from, and the SHA-256 of the converted file. The same provenance is embedded in each safetensors header (__metadata__).

Provenance and modifications

  • Source: the upstream checkpoints from https://github.com/davnords/storage/releases/download/loma/…, converted against davnords/LoMa at commit 8fb59c458f2a2ef44314f462467b229c27786bf0.
  • Changes, all structural (no retraining, fine-tuning or quantization):
    • Conv kernels transposed from PyTorch NCHW (O, I, kH, kW) to MLX NHWC (O, kH, kW, I).
    • Numeric nn.Sequential / nn.ModuleDict keys renamed (e.g. ffn.3 → ffn.fc2, decoder.layers.8 → decoder.scale8, VGG layers.{i} → convs.{j} / norms.{j}).
    • num_batches_tracked buffers dropped. Transformer layers beyond n_layers = 9 dropped, as upstream's own loader does.
    • Tensor dtypes kept as stored: fp32, and bf16 for DINOv2.

Verification

The mlx-swift port was checked against the PyTorch reference for all five variants:

  • Exact CPU stream: every stage agrees to a relative error of 1e-5 or better.
  • GPU float32, full resolution: match-set IoU of 0.97–1.0.
  • End to end vs the upstream LoMa.match (MPS, fp16): 88–97% of Python's matches reproduced within 2 px. Most of the remaining gap comes from JPEG decoding (ImageIO vs libjpeg), not the model.

Usage (Swift)

import LoMaKit

let session = try LoMaSession.load(variant: .b, weightsURL: localURL(of: "loma_b.safetensors"))
let result = try session.match(contentsOf: imageA, imageB)
for m in result.matches() { print(m.pointA, m.pointB, m.score) }

Licenses

The files combine components under two permissive licenses:

ComponentUpstreamLicense
DaD detectorParskatt/dadMIT
DeDoDe descriptor (VGG19 + refiners)Parskatt/DeDoDeMIT
DINOv2 ViT-L/14 backbonefacebookresearch/dinov2Apache-2.0
LoMa matcherdavnords/LoMa (derived from LightGlue)Apache-2.0
Everything else in LoMadavnords/LoMaMIT

See LICENSE-MIT (with the upstream copyright notices) and LICENSE-APACHE.

The models were trained by their authors on third-party datasets (e.g. MegaDepth), and the VGG backbones were initialized from ImageNet-pretrained weights. Refer to the upstream papers for data details and any dataset terms.

Citation

If you use these weights, please cite the original works:

@inproceedings{nordstrom2026loma,
  title={LoMa: Local Feature Matching Revisited},
  author={David Nordström and Johan Edstedt and Georg Bökman and Jonathan Astermark and Anders Heyden and Viktor Larsson and Mårten Wadenbäck and Michael Felsberg and Fredrik Kahl},
  booktitle={Proceedings of the European Conference on Computer Vision (ECCV)},
  year={2026}
}

@inproceedings{nordstrom2026who,
  title={Who Handles Orientation? Investigating Invariance in Feature Matching},
  author={David Nordström and Johan Edstedt and Georg Bökman and Fredrik Kahl},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
  year={2026}
}

@article{edstedt2025dad,
  title={{DaD: Distilled Reinforcement Learning for Diverse Keypoint Detection}},
  author={Edstedt, Johan and B{\"o}kman, Georg and Wadenb{\"a}ck, M{\aa}rten and Felsberg, Michael},
  journal={arXiv preprint arXiv:2503.07347},
  year={2025}
}

@inproceedings{edstedt2024dedode,
  title={{DeDoDe: Detect, Don't Describe --- Describe, Don't Detect for Local Feature Matching}},
  author={Johan Edstedt and Georg Bökman and Mårten Wadenbäck and Michael Felsberg},
  booktitle={2024 International Conference on 3D Vision (3DV)},
  year={2024},
  organization={IEEE}
}

@misc{oquab2023dinov2,
  title={DINOv2: Learning Robust Visual Features without Supervision},
  author={Oquab, Maxime and Darcet, Timothée and Moutakanni, Theo and Vo, Huy V. and Szafraniec, Marc and Khalidov, Vasil and Fernandez, Pierre and Haziza, Daniel and Massa, Francisco and El-Nouby, Alaaeldin and Howes, Russell and Huang, Po-Yao and Xu, Hu and Sharma, Vasu and Li, Shang-Wen and Galuba, Wojciech and Rabbat, Mike and Assran, Mido and Ballas, Nicolas and Synnaeve, Gabriel and Misra, Ishan and Jegou, Herve and Mairal, Julien and Labatut, Patrick and Joulin, Armand and Bojanowski, Piotr},
  journal={arXiv:2304.07193},
  year={2023}
}

@inproceedings{lindenberger2023lightglue,
  title={{LightGlue: Local Feature Matching at Light Speed}},
  author={Philipp Lindenberger and Paul-Edouard Sarlin and Marc Pollefeys},
  booktitle={ICCV},
  year={2023}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx

Нельзя запустить

MLX-модели работают только на Apple Silicon.

Ревизия весов
4218d03

0 моделей