Add dataset bench and validation agents

This commit is contained in:
2026-06-30 12:38:25 +08:00
parent 69f9a8e29b
commit dd7b7384ec
16 changed files with 853 additions and 24 deletions

View File

@@ -103,6 +103,11 @@ def discover_datasets() -> list[dict[str, Any]]:
if item.name == "All_Data_Record.json" or not data:
continue
candidates.append({"name": item.stem, "path": rel(item, root), "source": "mmseg_parameter"})
uploaded_root = settings.project_root / "var" / "uploads" / "datasets"
if uploaded_root.exists():
for item in sorted(uploaded_root.iterdir()):
if item.is_dir():
candidates.append({"name": item.name, "path": rel(item, settings.project_root), "source": "uploaded"})
return candidates
@@ -137,4 +142,3 @@ def get_catalog() -> dict[str, Any]:
"datasets": discover_datasets(),
"weights": discover_weights_summary(),
}