Split UI pages and add inference workflow
This commit is contained in:
@@ -30,6 +30,7 @@ def evaluate_project() -> dict:
|
||||
backend = settings.project_root / "backend" / "app" / "main.py"
|
||||
jobs_backend = settings.project_root / "backend" / "app" / "jobs.py"
|
||||
readme = settings.project_root / "README.md"
|
||||
dataset_doc = settings.project_root / "docs" / "DATASET_PREPARATION.md"
|
||||
results_service = settings.project_root / "backend" / "app" / "modules" / "results" / "service.py"
|
||||
catalog = get_catalog()
|
||||
coverage = get_coverage_report()
|
||||
@@ -42,12 +43,26 @@ def evaluate_project() -> dict:
|
||||
acceptance_text = (settings.project_root / "backend" / "app" / "acceptance.py").read_text(encoding="utf-8")
|
||||
results_service_text = results_service.read_text(encoding="utf-8") if results_service.exists() else ""
|
||||
readme_text = readme.read_text(encoding="utf-8") if readme.exists() else ""
|
||||
dataset_doc_text = dataset_doc.read_text(encoding="utf-8") if dataset_doc.exists() else ""
|
||||
|
||||
expectations = {
|
||||
"left_nav_dataset": "数据集" in frontend_text and "#datasets" in frontend_text,
|
||||
"left_nav_dataset": "数据集" in frontend_text and '"datasets"' in frontend_text and "navigate(item.id)" in frontend_text,
|
||||
"separated_pages_ui": "type PageId" in frontend_text
|
||||
and "data-page-section" in frontend_text
|
||||
and 'data-page={page}' in frontend_text
|
||||
and '"inference"' in frontend_text
|
||||
and '"results"' in frontend_text,
|
||||
"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,
|
||||
"dataset_preparation_doc": "DATASET_PREPARATION.md" in readme_text
|
||||
and "彩色 label 到训练 mask" in dataset_doc_text
|
||||
and "YOLO txt" in dataset_doc_text,
|
||||
"uploaded_yolo_workflow_ui": "startSelectedYoloTrain" in frontend_text and "startSelectedYoloPredict" in frontend_text and "startSelectedYoloHeatmap" in frontend_text,
|
||||
"trained_model_inference_ui": "modelWeightOptions" in frontend_text
|
||||
and "selectedInferenceWeight" in frontend_text
|
||||
and "startInferenceJob" in frontend_text
|
||||
and "yolo.predict_custom" in frontend_text
|
||||
and "yolo.heatmap_custom" in frontend_text,
|
||||
"dataset_yolo_outputs_ui": "DatasetYoloOutputs" in frontend_text
|
||||
and "selectedYoloOutputs" in frontend_text
|
||||
and "BEST.PT READY" in frontend_text
|
||||
|
||||
@@ -12,6 +12,9 @@ def test_evaluation_agent_returns_checks():
|
||||
assert checks["real_workspace_acceptance"] is True
|
||||
assert checks["real_train_acceptance"] is True
|
||||
assert checks["single_epoch_curve_support"] is True
|
||||
assert checks["separated_pages_ui"] is True
|
||||
assert checks["trained_model_inference_ui"] is True
|
||||
assert checks["dataset_preparation_doc"] is True
|
||||
|
||||
|
||||
def test_validation_agent_lightweight(monkeypatch):
|
||||
|
||||
Reference in New Issue
Block a user