Repository Public
1#!/bin/zsh2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : MacLustr Identity8# File : scripts/fetch-models.sh9# Module : scripts10# Repository : https://git.spboucher.ai/maclustr-identity11# Project Website : https://identity.spboucher.ai12# Created : 2026-12-0113# Last Modified : 2026-12-0114#15# Author : Simon-Pierre Boucher16# Position : Professor of Finance17# Institution : Université du Québec en Outaouais (UQO)18# Organization : SP Boucher19# Website : https://spboucher.ai20# Git : https://git.spboucher.ai21#22# Preferred Contact: admin@spboucher.ai23# Technical Contact: dev@spboucher.ai24# Security/Admin : admin@spboucher.ai25#26# Copyright (c) 202627# Simon-Pierre Boucher28# All rights reserved where applicable. This file is governed by the29# applicable project license, copyright notices and relevant law.30# Existing third-party rights and notices remain unaffected.31#32# License : None specified (no license file in this repository)33#34# Do not embed credentials, private keys, access tokens,35# certificates or confidential personal information.36#37# =============================================================================38# END OF SP BOUCHER SOURCE HEADER39# =============================================================================4041# Récupère les poids absents et vérifie l'empreinte de chacun (voir docs/MODEL_REGISTRY.md).42set -euo pipefail43cd "$(dirname "$0")/../models/weights"44fetch() { [ -f "$1" ] || curl -fsSL -m 300 -o "$1" "$2"; echo "$3 $1" | shasum -a 256 -c - >/dev/null || { echo "empreinte invalide : $1"; exit 1; }; }45fetch yunet.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx 8f2383e4dd3cfbb4553ea8718107fc0423210dc964f9f4280604804ed2552fa446fetch sface.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx 0ba9fbfa01b5270c96627c4ef784da859931e02f04419c829e83484087c34e7947echo "f82ef6dc973d3675a645bd4e026e72c546e4069e37bed7123ad89390522d09fd minifasnet_v1se_4.0.onnx" | shasum -a 256 -c - >/dev/null48echo "3a193e9764077a5114e972a1a9c808375885aa4de3f29edb14af161007d3a816 minifasnet_v2_2.7.onnx" | shasum -a 256 -c - >/dev/null49echo " modèles vérifiés"50