Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ L1 版面 → L2 谱行 → L3 纵向分割线 → 派生小节 → L4 音符 RO
结构调试字段:`structure.barlines[]`(可编辑分割线)、L3 items `kind=measure_derived`。
文档:[l3-split-model.md](../docs/l3-split-model.md) · [architecture-structure-first.md](../docs/architecture-structure-first.md) · 根 [README](../README.md)。

### L1–L3 布局训练数据(#93)

从桌面 **`.enpu.json`** 工程导出标准 layout 样本:

```powershell
# 仓库根
$env:PYTHONPATH = ".\core"
python scripts/export_layout_gt.py --project path\to\song.enpu.json --out samples\layout\L00x
```

模块:`app/layout_gt/`(export + validate)。规范:[docs/train/l1-l3-data-spec.md](../docs/train/l1-l3-data-spec.md)。

## Sidecar 打包(可选,Issue #8)

```powershell
Expand Down
21 changes: 21 additions & 0 deletions core/app/layout_gt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""L1–L3 layout ground-truth export & validation (#93 / #92).

See ``docs/train/l1-l3-data-spec.md`` for the training sample schema.
"""

from app.layout_gt.export import (
LAYOUT_SCHEMA_VERSION,
export_project_to_sample_dir,
layout_sample_from_project,
layout_sample_from_structure,
)
from app.layout_gt.validate import ValidationResult, validate_layout_sample

__all__ = [
"LAYOUT_SCHEMA_VERSION",
"export_project_to_sample_dir",
"layout_sample_from_project",
"layout_sample_from_structure",
"validate_layout_sample",
"ValidationResult",
]
Loading
Loading