Skip to content
Other

DA3METRIC-LARGE-Kraken-UW

оценка метрической глубины под водой

2 min readupdated

Модель определяет расстояние в метрах до объектов и дна по подводным снимкам с камер автономного необитаемого аппарата (AUV). В основе лежит depth-anything/DA3METRIC-LARGE от ByteDance, дообученная командой NTU Mecatron с помощью LoRA (небольшой адаптер, веса которого здесь уже вшиты в основную сеть) на синтетических данных из симулятора UnityMDS. В отличие от базовой версии, которая под водой сильно занижает дистанцию, эта адаптация восстанавливает реальный масштаб на глубинах до 5 метров и распространяется в виде единого файла ONNX (1.34 ГБ) для быстрого запуска в ONNX Runtime или TensorRT. Разработка пригодится создателям подводных роботов и участникам соревнований уровня RoboSub и RobotX.

Ключевые особенности

  • Высокая точность на ближней дистанции: в диапазоне 0–5 м относительная ошибка AbsRel падает с 0.81 до 0.082 по сравнению с оригинальной DA3 Metric Large.
  • Готовность к продакшену: LoRA-адаптер объединён с базовыми слоями в один ONNX-файл, из которого легко собрать fp16-движок для TensorRT.
  • Учёт оптики камеры: для перевода сырого выхода сети в метры используется формула масштабирования с фокусным расстоянием конкретной камеры (без неё оценка будет занижена примерно на 35%).
  • Отдельная маска неба: помимо карты глубины depth модель возвращает маску sky, позволяя корректно заполнять дальний фон на постобработке.

Что можно сделать

  • Встроить в систему восприятия подводного робота (AUV) для навигации и обхода препятствий в симуляторах и бассейнах.
  • Объединить карту глубины с масками сегментации объектов, чтобы вычислять точное расстояние до конкретных целей и подводных труб.
  • Использовать открытые скрипты обучения и экспорта от авторов как шаблон для дообучения Depth Anything 3 под другие камеры и подводные сцены.

Пример

import onnxruntime as ort

sess = ort.InferenceSession("DA3METRIC-LARGE_latest.onnx", providers=["CUDAExecutionProvider"])
# x: RGB-кадр [1, 3, 280, 504] после resize и ImageNet-нормализации
depth, sky = sess.run(["depth", "sky"], {"image": x})
focal = 0.5 * (286.02 * 504 / 640 + 286.02 * 280 / 480)
depth_metres = depth[0, 0] * focal / 300.0
depth_metres[sky[0, 0] >= 0.3] = 200.0
Подробнее Метрики в UnityMDS (камера вниз, медианная высота 3.3 м): AbsRel улучшился с 0.824 до 0.105, масштаб вырос с 0.16 до 0.92 (идеал — 1.0), доля пикселей с ошибкой δ < 1.25 достигла 0.88.
Железо и формат: размер файла 1.34 ГБ, фиксированный вход [1, 3, 280, 504] (fp32, batch 1); обучение заняло ~6 часов на 1× Tesla T4 (8 000 пар RGB+depth).
Ограничения: модель тестировалась только в симуляторе (Sim only), хуже оценивает дистанцию дальше 5 м и занижает расстояние до труб глубже 2 м.
Discuss Telegram 0

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # justnothin/DA3METRIC-LARGE-Kraken-UW
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download justnothin/DA3METRIC-LARGE-Kraken-UW --local-dir ~/models/DA3METRIC-LARGE-Kraken-UW
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of DA3METRIC-LARGE-Kraken-UW (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

justnothin/DA3METRIC-LARGE-Kraken-UW
Author
justnothin
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments