恢复 algorithm_subprocesses 权重文件的 git 追踪。

权重目录与 doctor_info.pth 纳入版本库;样本视频、Excel、构建缓存仍保持 ignore。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-21 16:12:00 +08:00
parent 70431ca3f9
commit c5716cf0af
9 changed files with 5 additions and 14 deletions

6
.gitignore vendored
View File

@@ -53,12 +53,10 @@ backend/.env.*
backend/logs/
backend/Ultralytics/
# Large model weights (deploy via mount or offline delivery)
# Large duplicate ActionFormer checkpoint (canonical copy lives under algorithm_subprocesses/5.15/weights/)
backend/app/resources/actionformer_epoch_045.pth.tar
# Algorithm subprocess bundles — runtime assets ignored via backend/algorithm_subprocesses/.gitignore
backend/algorithm_subprocesses/**/weights/*
!backend/algorithm_subprocesses/**/weights/.gitkeep
# Algorithm subprocess bundles — runtime I/O ignored; weights are tracked in git
backend/algorithm_subprocesses/**/input/*
!backend/algorithm_subprocesses/**/input/.gitkeep
backend/algorithm_subprocesses/**/output/*

View File

@@ -1,10 +1,8 @@
# 算法子进程包algorithm subprocess bundles
# 源码与配置保留在 git权重、样本 I/O、构建缓存离线交付或挂载
# 权重weights/、doctor_info.pth 等)纳入 git样本 I/O、构建缓存、运行时产物忽略
# 详见 algorithm_subprocesses/5.15/README.md §「准备权重与输入」。
# --- 运行时 I/O保留 .gitkeep---
**/weights/*
!**/weights/.gitkeep
**/input/*
!**/input/.gitkeep
**/output/*
@@ -12,18 +10,13 @@
**/data/*
!**/data/.gitkeep
# --- 大文件 / 离线资产 ---
*.pt
*.pth
*.pth.tar
*.pkl
*.task
# --- 离线样本 / 表格(本地准备,不进 git---
*.mp4
*.xlsx
*.xls
**/商品信息表.xlsx
# --- 子包运行时 ---
# --- 子包运行时(非权重)---
doctor_identity_package/.mediapipe_models/
**/infer_single_*/input/
**/*_run.log

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.