Add dataset bench and validation agents
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user