feat: 合并 Docker Compose、标注表格优化与部署文档
将 platform + CVAT 合并为单文件 docker-compose.yml,完善 .env 与 init/dev_up 脚本; 新增 docs/DEPLOY.md 与更新 README 以支持新机器部署;含数据湖示例、车队地图、 紧凑表格 UI、ADAS det_7cls 路径与批次台账等近期改动。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,6 +35,15 @@ def validate_delivery_fields(
|
||||
return f"数据路径不存在: {path}"
|
||||
if project == "dms" and p.name in ("train", "val", "test") and p.parent.name == "images":
|
||||
return f"请填批次根目录(例如 {p.parent.parent}),不要填到 images/train"
|
||||
if project == "adas" and task == "det_7cls":
|
||||
if "/inbox/det_7cls/" not in str(p).replace("\\", "/"):
|
||||
return "ADAS 2D 须落在 adas/inbox/det_7cls/{批次}(project=adas, task=det_7cls)"
|
||||
if project == "adas" and task in (None, "", "cuboid_7cls"):
|
||||
if "/inbox/cuboid_7cls/" not in str(p).replace("\\", "/"):
|
||||
return "ADAS 3D 须落在 adas/inbox/cuboid_7cls/{批次}(project=adas, task=cuboid_7cls)"
|
||||
if project == "dms" and task == "adas":
|
||||
if "/inbox/adas/" not in str(p).replace("\\", "/"):
|
||||
return "旧版 ADAS 2D 路径 dms/inbox/adas/{批次};新数据请用 adas/inbox/det_7cls/"
|
||||
return None
|
||||
|
||||
|
||||
@@ -59,7 +68,7 @@ def ingest_from_directory(
|
||||
raise ValueError(err)
|
||||
|
||||
src = Path(data_path.strip())
|
||||
task_eff = task if project == "dms" else None
|
||||
task_eff = task if project in ("dms", "adas") else None
|
||||
cand = create_directory_candidate(
|
||||
project=project,
|
||||
task=task_eff,
|
||||
@@ -117,4 +126,11 @@ def run_delivery_ingest(delivery_id: str) -> dict[str, Any]:
|
||||
rec.error_message = None
|
||||
db.flush()
|
||||
|
||||
try:
|
||||
from as_platform.deliveries.scan import bridge_delivery_to_workbench
|
||||
|
||||
bridge_delivery_to_workbench(delivery_id)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user