Skip to content

feat(train): Streamlit UI for layout import, train, and eval (#101) - #102

Merged
loootte merged 1 commit into
mainfrom
feature/101-train-ui
Aug 1, 2026
Merged

loootte merged 1 commit into
mainfrom
feature/101-train-ui

Conversation

@loootte

@loootte loootte commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Implements #101 training UI on top of the #95 Framework.

UI (Streamlit)

  • Import real .enpu.json -> layout GT (layout_gt export + validate)
  • Sample list with validation status / systems / splits
  • One-click train (subprocess, progress poll, cancel, log tail, loss chart)
  • One-click eval with L2 IoU + L3 line-level metrics
  • History scan of runs/

Code

  • train/ui/app.py
  • train/enpu_train/ui_backend.py
  • scripts/run_ui.py
  • tests for backend + subprocess train

Run

cd train
pip install -r requirements.txt
$env:PYTHONPATH = \"$PWD;$PWD\..\core\"
python scripts\run_ui.py

Closes #101

Add ui/app.py and ui_backend for selecting .enpu.json, importing layout
GT, launching train/eval subprocesses, and showing metrics/logs/history.

Closes #101
@loootte
loootte merged commit 88e6025 into main Aug 1, 2026
3 checks passed
@loootte
loootte deleted the feature/101-train-ui branch August 1, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(train): 训练 UI —— 选择真实工程导入 Layout、一键训练/测试与结果展示

1 participant