校准系统默认配置

- 将 User ORM 默认角色改为 annotator,避免脚本直建用户时绕出第二个管理员。

- 启动默认 seed 不再把历史无 owner 项目改写归属 admin,保持共享项目库的历史元数据语义。

- 将 SAM 默认配置和环境模板统一到 SAM 2.1 tiny,并默认关闭历史 SAM3 外部 worker。

- 更新安装/实现文档,并补充默认角色、默认模型和 legacy 项目 owner 不改写的后端测试。
This commit is contained in:
2026-05-04 05:24:46 +08:00
parent 523beeb446
commit ee27f29495
7 changed files with 49 additions and 25 deletions

View File

@@ -14,10 +14,10 @@ VITE_API_BASE_URL="http://192.168.3.11:8000"
# Optional WebSocket override. If unset, it is derived from VITE_API_BASE_URL.
VITE_WS_PROGRESS_URL="ws://192.168.3.11:8000/ws/progress"
# Backend SAM runtime defaults. SAM 3 additionally requires the official sam3
# package, Python 3.12+, PyTorch 2.7+, and a CUDA-capable GPU per Meta's repo.
sam_default_model="sam2"
sam_model_path="/home/wkmgc/Desktop/Seg_Server/models/sam2_hiera_tiny.pt"
sam_model_config="configs/sam2/sam2_hiera_t.yaml"
# Backend SAM runtime defaults. Current product exposes SAM 2.1 variants only.
sam_default_model="sam2.1_hiera_tiny"
sam_model_path="/home/wkmgc/Desktop/Seg_Server/models/sam2.1_hiera_tiny.pt"
sam_model_config="configs/sam2.1/sam2.1_hiera_t.yaml"
sam3_model_version="sam3"
sam3_checkpoint_path="/home/wkmgc/Desktop/Seg_Server/sam3权重/sam3.pt"
sam3_external_enabled=false