Initial Seg Data Server Net platform
This commit is contained in:
13
scripts/init_git_lfs.sh
Executable file
13
scripts/init_git_lfs.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user