Show dataset YOLO training curves

This commit is contained in:
2026-06-30 15:35:25 +08:00
parent b60fcc5112
commit 90dccbea0e
5 changed files with 61 additions and 4 deletions

View File

@@ -44,7 +44,11 @@ def evaluate_project() -> dict:
"upload_ui": "uploadDatasetFiles" in frontend_text and "labels" in frontend_text and "masks" in frontend_text,
"dataset_quality_ui": "DatasetQuality" in frontend_text and "generateSelectedYoloYaml" in frontend_text,
"uploaded_yolo_workflow_ui": "startSelectedYoloTrain" in frontend_text and "startSelectedYoloPredict" in frontend_text and "startSelectedYoloHeatmap" in frontend_text,
"dataset_yolo_outputs_ui": "DatasetYoloOutputs" in frontend_text and "selectedYoloOutputs" in frontend_text and "BEST.PT READY" in frontend_text,
"dataset_yolo_outputs_ui": "DatasetYoloOutputs" in frontend_text
and "selectedYoloOutputs" in frontend_text
and "BEST.PT READY" in frontend_text
and "datasetOutputCurve" in frontend_text
and "MiniCurvePlot" in frontend_text,
"loss_result_ui": "loss" in frontend_text.lower() and "heatmap" in frontend_text.lower() and "CurvePanel" in frontend_text,
"job_progress_ui": "JobProgressBar" in frontend_text and "progressTrack" in frontend_text,
"runtime_readiness_ui": "runtimeReadiness" in frontend_text and "环境就绪" in frontend_text,

View File

@@ -216,8 +216,8 @@ def api_results() -> list[dict]:
@app.get("/api/results/curves")
def api_result_curves() -> list[dict]:
return scan_training_curves()
def api_result_curves(limit: int = 100) -> list[dict]:
return scan_training_curves(limit=limit)
@app.get("/api/artifacts/{artifact_path:path}")