/ Модель

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

Лицензия
MIT
Опубликована
10 июл 2026

GorillaIdentifier

Эмбеддинги изображенийИзображение → embedding3 профессии

Модель извлекает признаки лиц горных горилл, чтобы распознавать отдельных особей на фотографиях, включая офлайн-сценарии на Android.

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

Бенчмарки

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

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

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

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

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

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

GorillaIdentifier — модель распознавания отдельных горных горилл по лицам на полевых фотографиях, разработанная для проекта с офлайн-приложением Android. Конвейер сначала обнаруживает лицо гориллы с помощью YOLOv8, затем обрабатывает квадратный фрагмент размером 224×224 моделью MegaDescriptor-T на базе Swin Transformer Tiny и получает эмбеддинг размерности 768. Идентификатор сравнивает его с примерами особей по косинусному сходству и может отклонить снимок как неизвестный.

Модель предназначена для идентификации горилл Вирунга и работы без подключения к сети. В галерее хранится до 25 эталонных эмбеддингов на особь; добавлять особь можно по нескольким фотографиям с телефона без повторного обучения. Для Android подготовлен экспорт backbone в TFLite. Для версии 1 на 66 особях заявлены точность Top-1 93,0% и Top-3 96,1% на отложенной валидационной выборке.

Веса представлены в PyTorch и TFLite; лицензия репозитория — MIT. Метрики получены на ограниченном наборе фотографий из Вирунги 2025 года, поэтому качество на других популяциях, условиях съёмки и видах приматов не установлено.

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

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

Ограничения

Модель обучена на ограниченной выборке горных горилл из Вирунги и не имеет подтверждённых метрик для других популяций или видов. Конвейеру для идентификации требуется отдельный детектор лиц горилл и галерея эталонных эмбеддингов.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

GorillaIdentifier

Individual facial recognition for mountain gorillas (Gorilla beringei beringei, Virunga), from field photographs to an offline Android deployment.

Overview

This project trains a face detector and an individual identification model from labeled field photographs, then exports the result as a lightweight gallery JSON for an Android app that runs entirely offline. The gallery holds up to 25 exemplar embeddings per individual. Adding a new individual takes a handful of photos on the phone and requires no retraining.

Inference pipeline

Field photo -> YOLO gorilla face detection
            -> 224x224 crop
            -> MegaDescriptor-T-224 (Swin Transformer Tiny, 768-dim embedding)
            -> max cosine similarity over the exemplars of each individual
            -> Known individual (score >= 0.4689 and margin >= 0.08) or Unknown

Android app assets

This repository hosts the assets required to run the offline Android app. The app identifies files by role, so the recognition backbone must be downloaded here (it exceeds the GitHub 100 MB limit), while the detector and the gallery are also bundled in the app repository:

  • megadesc_T_arcface_backbone.tflite : the MegaDescriptor-T embedding backbone (107 MB). Download it and place it in app/src/main/assets/ before building the app.
  • yolo_v2_detector.tflite : the gorilla face detector (the filename is the one the Android app expects; it is the gorilla detector, not an orangutan model).
  • gallery.json : the identity database, 66 individuals.

Models

FileRoleSizeDescription
yolo_gorilla.ptpipeline18 MBGorilla face detector (YOLOv8), used for crop extraction and training
gorilla_v1_best.ptpipeline105 MBTrained V1 identifier checkpoint (MegaDescriptor-T + Sub-center ArcFace)
megadesc_T_arcface_backbone.tfliteapp107 MBIdentifier backbone exported to TFLite for the Android app
yolo_v2_detector.tfliteapp6 MBGorilla face detector exported to TFLite for the Android app
gallery.jsonapp30 MBIdentity gallery, 66 individuals, up to 25 exemplars each, 768-dim

The generic MegaDescriptor-T-224 backbone used as the training starting point is not stored here. timm downloads it automatically from BVRA/MegaDescriptor-T-224 the first time training runs.

Performance

Version 1, 66 individuals, Virunga 2025. Metrics are measured on the held-out validation set after training.

MetricValue
Recognized individuals66
Top-1 accuracy93.0%
Top-3 accuracy96.1%
Mean F10.981
Composite score0.808
Rejection threshold0.4689
Separability gap0.4351
BackboneMegaDescriptor-T-224 (Swin Transformer Tiny, 27.5M parameters)
Training timeabout 66 minutes on an RTX 3050 4 GB

The rejection threshold is the cosine-similarity cutoff below which a face is reported as unknown, calibrated by maximizing F1 on the validation set. The separability gap is the average similarity gap between an individual's own exemplars and its closest rival; a higher gap means less confusion.

Dataset

SourceIndividualsCropsRole
Field photographs (Virunga)66 known (+ 3 held out)2,809Training and validation
Internet / background imagesunlabeled428Background class (pseudo-unknowns)

Two individuals with too few crops were excluded from training, and three were held out as pseudo-unknowns to calibrate the rejection threshold. Photographs are not included in this repository.

Download

from huggingface_hub import hf_hub_download

path = hf_hub_download(
    repo_id="tit0000/GorillaIdentifier",
    filename="gorilla_v1_best.pt",
)

Or, for the pipeline detector, via the helper script in the code repository:

python models/download_models.py

Security note

These .pt files are standard PyTorch and Ultralytics checkpoints. The pickle imports flagged by Hugging Face come from trusted libraries (torch, ultralytics, collections) and contain no malicious code.

References

  • Čermák et al. (2024). WildlifeDatasets. WACV 2024.
  • Deng et al. (2019). ArcFace. CVPR 2019.
  • Deng et al. (2020). Sub-center ArcFace. ECCV 2020.
  • Liu et al. (2021). Swin Transformer. ICCV 2021.
  • Khosla et al. (2020). Supervised Contrastive Learning. NeurIPS 2020.

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
2a1ffd0

0 моделей