Files
Seg_Data_Server_Net/scripts/init_git_lfs.sh

14 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if ! command -v git-lfs >/dev/null 2>&1 && ! git lfs version >/dev/null 2>&1; then
echo "git-lfs is not installed on this host." >&2
echo "Install git-lfs or publish weights through Gitea releases/packages." >&2
exit 1
fi
git lfs install
git lfs track "*.pt" "*.pth" "*.onnx" "*.engine"
git add .gitattributes