Dataset: add READMEs, organize scripts, update .gitignore

- Add README.md to all 16 dataset directories with script references
- Centralize generation scripts under scripts/ with full README
- Update .gitignore to cover all data directories, keep only metadata
- Remove redundant CCPD/.gitignore (parent covers same rules)
- Remove stale scripts/test/ (254MB pipeline residue)
- Fix label parser reference: scripts are authoritative source of truth
This commit is contained in:
kirl committed 2026-06-23 14:41:39 +08:00
1 parent 7867c3bfaf
commit a64690477a
43 files changed
+2691 -205

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# 数据生成脚本
此目录包含所有数据集生成脚本和少量测试样本。
## 脚本清单
| 脚本 | 输入 | 输出 | 用途 |
|------|------|------|------|
| `pipeline_322k.py` | `CCPD_322K/` | `CCPD_322K_EXP_CUT_TRANS/` | 322K 合成全管线(3 步) |
| `sample_ccpd_full.py` | `CCPD/` | `CCPD_REAL_TRANS/` | CCPD 真图全量 GT-warp |
| `sample_ccpd_real.py` | `CCPD/` | `CCPD_REAL_TRANS/` | CCPD 真图采样(实验用) |
| `build_cblprd_trans.py` | CBLPRD zip | `CBLPRD_TRANS/` | CBLPRD COR 矫正 TRANS |
| `build_ccpd_combined.py` | 多源目录 | `ccpd_combined_5k5k_spe/` | 合并数据集 |
| `rebuild_spe.py` | — | `CCPD_SPE/` | SPE 特殊车牌生成 |
| `gen_random_bg.py` | — | `CCPD_Random_*` | 随机背景蓝绿合成 |
## 目录结构
```
scripts/
├── *.py, *.ps1 ← 生成脚本(权威来源)
├── train/ ← 空(数据已移至 CCPD_322K_EXP_CUT_TRANS/)
└── test/ ← 34004 张测试样本
```
> **以脚本为准**:所有数据集的生成逻辑、标签格式、预处理参数均以本目录中的脚本为唯一权威来源。文件名后缀标签的解析规则见 `ICE_NNv2/ICE-OCR/script/tools/dataset.py`。