Run this model with HF Jobs
Run Beeam9/ko-receipt-ppocrv5-rec on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Beeam9/ko-receipt-ppocrv5-rec. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Beeam9/ko-receipt-ppocrv5-rec on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Beeam9/ko-receipt-ppocrv5-rec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use Beeam9/ko-receipt-ppocrv5-rec with PaddleOCR:
# Please refer to the document for information on how to use the model. # https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/module_usage/module_overview.html
- Notebooks
- Google Colab
- Kaggle
Docs: add stage-by-stage comparison from untuned official & pre-smartphone KORIE models to v2.0
Browse files29 unmodified lines3031323333343536373835363738394041424344454647484950515253544055564257584459604661626364506566676869707172737475527677787932 unmodified lines1121131149111511611711811912097121122991001011021231241041251261271281291301311321331341351361371381391401411421061431441451461 unmodified line1481491501141511161521531181541551201561571581591601611621631641651661671681231691701711726 unmodified lines17918018113618218318418529 unmodified lines - **Export SHA-256 (`inference.pdiparams`)**: `1a939fe293c448ab0b5adfd586456578f2338ec4e66af7c67f3a5abdf29874ce` (`13.34 MB`)- **Previous Release (`v1.0` tag)**: `b1a_phone_only/epoch_10` remains permanently accessible via `revision="v1.0"`.
### What's New in v2.0---
1. **Expanded Pure Gold Training Data (`+28.2%`) & Leak Elimination**: Added `1,357` manually verified line crops from `127` unseen smartphone receipts (`4,818 โ 6,175` Gold lines) and purged sequential burst-shot overlap pairs.2. **Eliminated Implicit `RecAug: null` Distortion Bug**: Removed PaddleOCR's implicit 40% color-inversion / TIA warp augmentation that degraded crisp thermal characters, while strictly freezing all 302 BatchNorm running-stat tensors (`BN_L2 == 0.0`).3. **Stronger Unseen-Store Generalization (`OOD-Guard-25`)**: Post-hoc `WiSE-FT` (`alpha = 0.50`) reduced unseen-store end-to-end no-space CER from **`3.96%` (559 edits) to `3.62%` (511 edits, `-48` edits)** and human-certified `Dev-Val-51` edits from **`400` (`3.24%`) to `384` (`3.11%`)**.4. **Optional Zero-False-Repair Receipt Settlement Solver (`settlement.py`)**: Includes a standalone 3-section Korean receipt parser & single-digit thermal confusion solver (`0โ8`, `6โ8`, `1โ7`, etc.) achieving **`100.0%` repair precision (`77.0%` recall)** on single-digit corruptions and **`0` false repairs** on consistent receipts.### 1. Why Domain Adaptation Matters: Untuned General Model โ Public Korean Receipt Model โ Smartphone Receipt Model
Off-the-shelf Korean OCR models and even models tuned only on clean public receipt datasets struggle severely when applied to **real smartphone-captured thermal receipts** (low thermal contrast, crumpled paper, narrow Hangul-digit spacing, and multi-column item layouts).
#### Stage-by-Stage Progression Across Model Generations
| Stage | Model Generation | Public Receipt `KORIE val` (1,785 crops)<br/>CER โ / Line EM โ / **Amount EM โ** | Real Smartphone Receipt Crops (`1,444` lines)<br/>Single-Line CER โ / **Line EM โ** | Full Smartphone Receipt E2E (`OOD-Guard-25`, unseen stores)<br/>`full_ns` CER โ (edits) || :---: | :--- | :---: | :---: | :---: || **0** | **Untuned Official General Korean Model**<br/>(`PaddlePaddle/korean_PP-OCRv5_mobile_rec`, zero receipt tuning) | `30.87%` / `54.57%` / **`50.82%`** | โ *(misses ~half of receipt amounts)* | โ || **1** | **Public Korean Receipt Tuned (Pre-Smartphone Model)**<br/>(`KORIE Round-2`, before real smartphone receipt training) | `23.35%` / `74.34%` / **`78.14%`** | `6.35%` / **`68.28%`**<br/>*(8,343-line pool: `8.18%` CER / `59.49%` EM)* | โ || **2** | **1st Smartphone Adaptation & Replay Baseline**<br/>(`phone_v1` / `replay_bn_frozen_ep12` / `v1.0`) | `9.14%` *(with line-split routing)* | **`2.28%`** / **`84.63%`**<br/>*(Blind-audited `v1.0`: `1.68%` CER, `1.03%` no-space, `87.97%` EM)* | `3.96%` (559 edits) || **3** | **This Model (`ko-receipt-ppocrv5-rec v2.0`, `main`)**<br/>(Verified Gold `6,175` lines + `No-RecAug` + `BN_L2=0` + `WiSE-FT 0.50`) | โ *(100% smartphone-receipt specialized)* | **`2.43%` raw / `~1.0%` no-space**<br/>(**`85.9%` strict EM / `97.6%` char acc**) | **`3.62%` (511 edits)**<br/>*(**-48 edits** vs Stage 2)* |
> **Key Takeaway**:> - **Untuned General Model โ Public Receipt (`KORIE`) Model**: Improved public receipt amount exact match from **`50.82% โ 78.14%` (`+27.32%p`)**, yet still suffered **`6.35%` CER (`68.28%` EM)** on real smartphone photos due to capture-domain shift.> - **Pre-Smartphone (`KORIE`) Model โ Smartphone-Tuned Model**: Cut smartphone single-line CER nearly **3ร (`6.35% โ 2.28%`, `1.03%` no-space)** and boosted line exact match by **`+16.35%p ~ +19.69%p` (`68.28% โ 84.63%~87.97%`)**.> - **Stage 2 Baseline โ `v2.0` (`main`)**: Eliminated implicit `RecAug: null` distortion, added `+1,357` manually verified Gold lines, and applied `WiSE-FT (alpha=0.50)` to cut unseen-store E2E errors by **`-48` edits (`3.96% โ 3.62%`)**.
---
### Benchmark Results (v2.0 End-to-End Evaluation)### 2. Detailed v2.0 End-to-End Benchmark Results
Evaluated end-to-end on full smartphone receipt images paired with official `PP-OCRv6_medium_det` (`limit_side_len=1600`, `unclip_ratio=1.479`, SAHI tiling):Evaluated end-to-end on full smartphone receipt photos paired with official `PP-OCRv6_medium_det` (`limit_side_len=1600`, `unclip_ratio=1.479`, SAHI tiling):
| Benchmark Split | Metric | Baseline (`replay_ep12`) | Intermediate (`v7_a040`) | **`v2.0` (`main`)** | Improvement vs Baseline || Benchmark Split | Metric | Replay Baseline (`replay_ep12`) | Intermediate (`v7_a040`) | **`v2.0` (`main`)** | Improvement vs Baseline || :--- | :--- | :---: | :---: | :---: | :---: || **`Dev-Val-51`** (51 receipts ยท Blind Human-Certified GT) | E2E `span_ns` CER (edits) | `3.24%` (400) | `3.18%` (393) | **`3.11%` (384)** | **`-16` edits (`-0.13%p`)** || **`Dev-Val-51`** (51 receipts ยท Blind Verified GT) | E2E `span_ns` CER (edits) | `3.24%` (400) | `3.18%` (393) | **`3.11%` (384)** | **`-16` edits (`-0.13%p`)** || **`Dev-Val-51`** (51 receipts ยท Original Frozen GT) | E2E `span_ns` CER (edits) | `3.68%` (455) | `3.63%` (449) | **`3.56%` (440)** | **`-15` edits (`-0.12%p`)** || **`OOD-Guard-25`** (25 unseen-store receipts ยท Full det-free GT) | E2E `full_ns` CER (edits) | `3.96%` (559) | `3.84%` (542) | **`3.62%` (511)** | **`-48` edits (`-0.34%p`)** || **`OOD-Guard-25` Wide Lines (`AR > 6.67`)** | Wide-line `span_ns` edits | 300 | 292 | **283** | **`-17` edits** || **Single-Line Cropped `Val`** (1,341 lines) | Line Exact Match / Norm Edit | `84.6%` / `97.3%` | `85.5%` / `97.5%` | **`85.9%` / `97.6%`** | **Line CER `2.43%`** |
---
### 3. What's New in v2.0
1. **Expanded Pure Gold Training Data (`+28.2%`) & Leak Elimination**: Added `1,357` manually verified line crops from `127` unseen smartphone receipts (`4,818 โ 6,175` Gold lines) and purged sequential burst-shot overlap pairs.2. **Eliminated Implicit `RecAug: null` Distortion Bug**: Removed PaddleOCR's implicit 40% color-inversion / TIA warp augmentation that degraded crisp thermal characters, while strictly freezing all 302 BatchNorm running-stat tensors (`BN_L2 == 0.0`).3. **Optional Zero-False-Repair Receipt Settlement Solver (`settlement.py`)**: Includes a standalone 3-section Korean receipt parser & single-digit thermal confusion solver (`0โ8`, `6โ8`, `1โ7`, etc.) achieving **`100.0%` repair precision (`77.0%` recall)** on single-digit corruptions and **`0` false repairs** on consistent receipts.
---
### Quickstart (PaddleOCR 3.x / PaddleX)### 4. Quickstart (PaddleOCR 3.x / PaddleX)
```bash# Default E2E inference (PP-OCRv5_mobile_det + v2.0 recognizer)32 unmodified lines
## ํ๊ตญ์ด
์ค๋งํธํฐ์ผ๋ก ์ดฌ์ํ **ํ๊ตญ์ด ์ด์ ์ฌ ์์์ฆ** ํ๊ฒฝ์ ์ต์ ํํ์ฌ `korean_PP-OCRv5_mobile_rec`๋ฅผ ํ์ธํ๋ํ ๊ฒฝ๋ ํ
์คํธ ์ธ์(Recognition) ๋ชจ๋ธ์
๋๋ค.์ค๋งํธํฐ์ผ๋ก ์ดฌ์ํ **ํ๊ตญ์ด ์ด์ ์ฌ ์์์ฆ** ํ๊ฒฝ์ ์ต์ ํํ์ฌ `korean_PP-OCRv5_mobile_rec`๋ฅผ ๋จ๊ณ์ ์ผ๋ก ๋๋ฉ์ธ ์ ์ยทํ์ธํ๋ํ ๊ฒฝ๋ ํ
์คํธ ์ธ์(Recognition) ๋ชจ๋ธ์
๋๋ค.
- **ํ์ฌ ๋ฒ์ (`v2.0`, `main`)**: ์์์
๊ฒ์ ์๋ฃ ์์ Gold ๋ฐ์ดํฐ(`326`์ฅ, `6,175`์ค ยท ์ฐ์ฌ ๋์ ์ ๊ฑฐ) + ์๋ฌต ์๊ณก ์ ๊ฑฐ(`No-RecAug`) + BatchNorm ์์ ๋๊ฒฐ(`BN_L2 == 0.0`) + ์ฌํ **`WiSE-FT` (`alpha = 0.50`)** ๋ณด๊ฐ ๋ชจ๋ธ - **Export SHA-256 (`inference.pdiparams`)**: `1a939fe293c448ab0b5adfd586456578f2338ec4e66af7c67f3a5abdf29874ce` (`13.34 MB`)- **์ด์ ๋ฒ์ (`v1.0` ํ๊ทธ ๋ณด์กด)**: ๊ธฐ์กด `b1a_phone_only/epoch_10` ๋ชจ๋ธ์ `revision="v1.0"` ์ต์
์ผ๋ก ์ธ์ ๋ ๋์ผํ๊ฒ ๋ก๋ํ ์ ์์ต๋๋ค.
### 1. v2.0 ์ฃผ์ ๊ฐ์ ์ฌํญ (Release Highlights)---
1. **์์์
๊ฒ์ ์์ Gold ํ์ต ๋ฐ์ดํฐ `+28.2%` ํ์ฅ ๋ฐ ๋์ ์์ ์ ๊ฑฐ**: ์ ๊ท ์์์ฆ 127์ฅ์์ ์ง์ ์๊ฐ ๊ฒ์๋ฅผ ๊ฑฐ์น `1,357`์ค์ ์์ Gold ๊ณ์ธต์ผ๋ก ์น๊ฒฉ(`4,818 โ 6,175`์ค)ํ๊ณ , ์ฐ์ฌ ์ดฌ์ ์ค๋ณต ์์ ์ ์ ๋ฐฐ์ ํ์ต๋๋ค.2. **`RecAug: null` ์๋ฌต์ ์๋ฐ์ ยท์๊ณก ๋ฒ๊ทธ ์ ๊ฑฐ ๋ฐ `BN_L2 == 0.0` ๋ฌด๊ฒฐ์ฑ ๋ณด์ฅ**: PaddleOCR ์ค์ ์์ `RecAug: null` ๊ธฐ์ฌ ์ ๊ธฐ๋ณธ 40% ํ๋ฅ ๋ก ์๋ฐ์ ยท๊ธฐํ ์ํ์ด ์๋ํ๋ ๋ฌธ์ ๋ฅผ ์ ๊ฑฐํ๊ณ , 302๊ฐ BatchNorm ์ด๋ํต๊ณ ํ
์ ๋ณํ๋ฅผ `0.0`์ผ๋ก ์์ ๊ณ ์ ํ์ต๋๋ค.3. **๋ฏธ๋
ธ์ถ ํ ๋งค์ฅ(`OOD-Guard-25`) ์ผ๋ฐํ ๋ํญ ํฅ์**: ์ฌํ `WiSE-FT`(`alpha = 0.50`) ๊ฒฐํฉ์ ํตํด ๋ฏธ๋
ธ์ถ 25๊ฐ ๋งค์ฅ ์ ์ ํด๋ฆฌ๊ณค E2E ์ค๋ฅ์จ(๊ณต๋ฐฑ ์ ๊ฑฐ CER)์ **`3.96%`(559ํธ์ง) โ `3.62%`(511ํธ์ง, `-48`ํธ์ง ๊ฐ์)**๋ก ๋ฎ์ถ์์ผ๋ฉฐ, ๋จ์ผ ์ค ํฌ๋กญ ๊ธฐ์ค ์ ํ๋ `97.57%`(`CER 2.43%`, ๊ณต๋ฐฑ ์ ๊ฑฐ `~1.0%`)๋ฅผ ๋ฌ์ฑํ์ต๋๋ค.4. **๋ฌด์ค๋ฅ(`Zero-False-Repair`) ์์์ฆ ์ ์ฐ ํ์ & ์ญ์ฐ ๋ณต์ ๋ชจ๋(`settlement.py`) ์ถ๊ฐ**: ์๊ฐ ๋ถ๋ฆฌ ์ด์ก(`๊ณ ๊ธ ์ก`, `์ ์ ๊ธ ์ก`) ์ธ์ ๋ฐ ์๊ณ ์ค๋ณตํฉ์ฐ์ ๋ฐฉ์งํ๋ 3๊ตฌ์ญ ํ์์ ์ด์ ์ฌ ๋จ์ผ ์ซ์ ์ค๋
๋ณต์๊ธฐ(๋จ์ผ ์ค๋
๋ณต์ ์ ๋ฐ๋ **`100.0%`**, ์ ์ ์์์ฆ ์ค์์ **`0๊ฑด`**)๋ฅผ ์ ํ ์ต์
(`--settlement`)์ผ๋ก ํจ๊ป ์ ๊ณตํฉ๋๋ค.### 1. ํ๋ ์ ์์ ๋ชจ๋ธ vs ๊ณต๊ฐ ์์์ฆ ํ๋ ๋ชจ๋ธ(์ค๋งํธํฐ ํ์ต ์ ) vs ๋ณธ ๋ชจ๋ธ ๋จ๊ณ๋ณ ๋น๊ต
### 2. ๋ฒค์น๋งํฌ ์ฑ๋ฅ (`v2.0` End-to-End ํต์ง ์์์ฆ ๊ธฐ์ค)์ผ๋ฐ ํ๊ตญ์ด OCR ์์ ๋ชจ๋ธ์ ๊ทธ๋๋ก ์ฐ๊ฑฐ๋, ๊ณต๊ฐ ์์์ฆ ๋ฐ์ดํฐ์
(`KORIE`)๋ง์ผ๋ก 1์ฐจ ํ๊ตญ์ด ํ๋์ ์ํํ ๋ชจ๋ธ์ **์ค์ ์ค๋งํธํฐ์ผ๋ก ์ดฌ์ํ ์ด์ ์ฌ ์์์ฆ**(์ ๋๋น ์ํฌ, ์ข
์ด ๊ตฌ๊น, ์ข์ ์๊ฐ, ๋ค๋จ ๊ธ์กํ)์์ ํฐ ์ธ์๋ฅ ์ ํ๋ฅผ ๊ฒช์ต๋๋ค. ์๋ ํ๋ ์ด๊ธฐ ์์ ์ํ๋ถํฐ ๋ณธ `v2.0` ๋ชจ๋ธ๊น์ง์ ์ค์ธก ์ฑ๋ฅ ๋ณํ๋ฅผ ๋ณด์ฌ์ค๋๋ค.
| ๋จ๊ณ | ๋ชจ๋ธ ๊ตฌ๋ถ | ๊ณต๊ฐ ์์์ฆ `KORIE val` (1,785๊ฐ)<br/>CER โ / ์ค EM โ / **๊ธ์ก EM โ** | ์ค์ ์ค๋งํธํฐ ์์์ฆ ํฌ๋กญ (`1,444`์ค)<br/>๋จ์ผ ์ค CER โ / **์ค ์์ ์ผ์น(EM) โ** | ํต์ง ์ค๋งํธํฐ ์์์ฆ E2E (`OOD-Guard-25`, ๋ฏธ๋
ธ์ถ ๋งค์ฅ)<br/>๊ณต๋ฐฑ ์ ๊ฑฐ `full_ns` CER โ (ํธ์ง ์) || :---: | :--- | :---: | :---: | :---: || **Stage 0** | **ํ๋ ์ ์ผ๋ฐ ํ๊ตญ์ด ์์ ๋ชจ๋ธ**<br/>(`PaddlePaddle/korean_PP-OCRv5_mobile_rec` ๊ณต์ ๊ธฐ๋ณธ ๋ชจ๋ธ) | `30.87%` / `54.57%` / **`50.82%`** | โ *(์์์ฆ ๊ธ์ก ํ๋์ ์ ๋ฐ ๊ฐ๊น์ด ์ค๋
)* | โ || **Stage 1** | **๊ณต๊ฐ ํ๊ตญ์ด ์์์ฆ ํ๋ ๋ชจ๋ธ (์ค๋งํธํฐ ํ์ต ์ )**<br/>(`KORIE 2์ฐจ ํ๋ ๋ชจ๋ธ` ยท ์ค์ดฌ์ ์ค๋งํธํฐ ๋ฐ์ดํฐ ํ์ต ์ ) | `23.35%` / `74.34%` / **`78.14%`** | `6.35%` / **`68.28%`**<br/>*(304์ฅ 8,343์ค ์ ์ฒด ๊ธฐ์ค: `CER 8.18%` / `EM 59.49%`)* | โ || **Stage 2** | **์ค๋งํธํฐ ์์์ฆ 1์ฐจ ํ๋ ๋ฐ ๋ฆฌํ๋ ์ด ๊ธฐ์ค์ **<br/>(`phone_v1` / `replay_bn_frozen_ep12` / `v1.0`) | `9.14%` *(๋ค์ค์ค ํฌ์ ๋ถํ ๊ฒฐํฉ ์)* | **`2.28%`** / **`84.63%`**<br/>*(๋ธ๋ผ์ธ๋ ๊ฐ์ฌ `v1.0`: `CER 1.68%`, ๊ณต๋ฐฑ์ ๊ฑฐ `1.03%`, `EM 87.97%`)* | `3.96%` (559ํธ์ง) || **Stage 3** | **๋ณธ ๋ชจ๋ธ (`ko-receipt-ppocrv5-rec v2.0`, `main`)**<br/>(์์์
์ ์ Gold `6,175`์ค + `No-RecAug` + `BN_L2=0` + `WiSE-FT 0.50`) | โ *(์ค์ดฌ์ ์ค๋งํธํฐ ์์์ฆ ์ ์ฉ ์ต์ ํ)* | **`2.43%` (๊ณต๋ฐฑ ํฌํจ) / `~1.0%` (๊ณต๋ฐฑ ์ ๊ฑฐ)**<br/>(**์ค EM `85.9%` / ๊ธ์ ์ ํ๋ `97.6%`**) | **`3.62%` (511ํธ์ง)**<br/>*(Stage 2 ๋๋น **`-48`ํธ์ง ์ถ๊ฐ ๊ฐ์**)* |
> **๋จ๊ณ๋ณ ํต์ฌ ์ฐจ์ด ์์ฝ**> 1. **ํ๋ ์ ์ผ๋ฐ ์์ ๋ชจ๋ธ(`Stage 0`)์ ํ๊ณ**: ์ผ๋ฐ ํ๊ตญ์ด๋ ์ฝ์ง๋ง ์์์ฆ ํน์ ์ ์ซ์ยท๊ธฐํธยท๋ค๋จ ๊ธ์ก ๊ตฌ์กฐ์ ์ทจ์ฝํด ๊ณต๊ฐ ์์์ฆ์์๋ **๊ธ์ก ํ๋ ์์ ์ผ์น์จ(EM)์ด `50.82%`**(`test` `52.14%`, ์ ์ฒด `CER 30.87%`)์ ๊ทธ์ณค์ต๋๋ค.> 2. **ํ๊ตญ์ด ๊ณต๊ฐ ์์์ฆ ํ๋ ๋ชจ๋ธ โ ์ค๋งํธํฐ ํ์ต ์ (`Stage 1`)์ ๋๋ฉ์ธ ๊ฒฉ์ฐจ**: `KORIE` ํ๋์ผ๋ก ๊ณต๊ฐ ์์์ฆ ๊ธ์ก EM์ **`50.82% โ 78.14%` (`+27.32%p`)**๋ก ํฌ๊ฒ ์ฌ๋์ผ๋, ์ค์ ์ค๋งํธํฐ์ผ๋ก ์ฐ์ ์์์ฆ์ ๋ฃ์ผ๋ฉด **`CER 6.35%` (`EM 68.28%`, 10์ค ์ค 3์ค ์ด์ ์คํ)**๋ก ์ฌ์ ํ ์ค๋ฌด ํฌ์
์ด ์ด๋ ค์ ์ต๋๋ค.> 3. **์ค์ ์ค๋งํธํฐ ๋๋ฉ์ธ ํ์ต(`Stage 2`) โ ์ต์ข
`v2.0` ๊ณ ๋ํ(`Stage 3`)**: ์ค๋งํธํฐ ์ค์ดฌ์ ํ์ต์ผ๋ก ๋จ์ผ ์ค ์ค๋ฅ์จ์ **`6.35% โ 2.28%`(๋ธ๋ผ์ธ๋ ๊ฐ์ฌ ๊ณต๋ฐฑ ์ ๊ฑฐ `1.03%`)**๋ก ์ฝ **3๋ฐฐ ์ด์ ์ถ์**ํ๊ณ , ์ด์ด์ `v2.0`์์ ์๋ฌต์ `RecAug` ์๊ณก ๋ฒ๊ทธ ์ ๊ฑฐ + ์์์
์ ์ Gold `+1,357`์ค ์น๊ฒฉ + `WiSE-FT(0.50)` ๋ณด๊ฐ์ ํตํด **์ฒ์ ๋ณด๋ ํ ๋งค์ฅ(`OOD-Guard-25`) ํต์ง ์์์ฆ E2E ์ค๋ฅ๊น์ง `3.96% โ 3.62%`(`-48`ํธ์ง)๋ก ์ถ๊ฐ ์ ๊ฐ**ํ์ต๋๋ค.
---
### 2. v2.0 ์ธ๋ถ ๋ฒค์น๋งํฌ ์ฑ์ ํ (ํต์ง ์์์ฆ End-to-End ๊ธฐ์ค)
๊ณต์ `PP-OCRv6_medium_det` (`limit_side_len=1600`, `unclip_ratio=1.479`, SAHI ํ์ผ๋ง) ๊ฒฐํฉ End-to-End ํ๊ฐ ๊ฒฐ๊ณผ์
๋๋ค.๊ณต์ `PP-OCRv6_medium_det` (`limit_side_len=1600`, `unclip_ratio=1.479`, SAHI ํ์ผ๋ง)์ ๊ฒฐํฉํด **์๋ณธ ์์์ฆ ์ฌ์ง ์ ์ฒด(๊ฒ์ถ โ ํฌ๋กญ โ ์ธ์)**๋ฅผ ์ฑ์ ํ ๊ฒฐ๊ณผ์
๋๋ค.
| ํ๊ฐ์
| ์งํ | ๊ธฐ์ค์ (`replay_ep12`) | ์ง์ ๋ฒ์ (`v7_a040`) | **`v2.0` (`main`)** | ๊ธฐ์ค์ ๋๋น ๊ฐ์ ํญ || :--- | :--- | :---: | :---: | :---: | :---: |1 unmodified line| **`Dev-Val-51`** (51์ฅ ยท ์๋ณธ ๋๊ฒฐ GT) | E2E `span_ns` CER (ํธ์ง ์) | `3.68%` (455) | `3.63%` (449) | **`3.56%` (440)** | **`-15`ํธ์ง (`-0.12%p`)** || **`OOD-Guard-25`** (๋ฏธ๋
ธ์ถ 25์ฅ ยท ๊ฒ์ถ๊ธฐ ๋น์์กด ์ ์ GT) | E2E `full_ns` CER (ํธ์ง ์) | `3.96%` (559) | `3.84%` (542) | **`3.62%` (511)** | **`-48`ํธ์ง (`-0.34%p`)** || **`OOD-Guard-25` ์ฅ๋ฌธ ๊ตฌ๊ฐ (`AR > 6.67`)** | ์ฅ๋ฌธ `span_ns` ํธ์ง ์ | 300 | 292 | **283** | **`-17`ํธ์ง** || **๋จ์ผ ์ค ํฌ๋กญ ๊ฒ์ฆ์
** (`1,341`์ค) | ์ค ์์ ์ผ์น(EM) / ๊ธ์ ์ ํ๋ | `84.6%` / `97.3%` | `85.5%` / `97.5%` | **`85.9%` / `97.6%`** | **๋จ์ผ ์ค CER `2.43%`** |
*(์ฐธ๊ณ : ์ด๊ธฐ `v1.0` ๊ธฐ์ค ๋จ์ผ ์ค ํฌ๋กญ ์์นด์ด๋ธ `val` ๊ณต๋ฐฑ ์ ๊ฑฐ CER์ `1.03%`, ๊ณต๋ฐฑ ํฌํจ CER์ `1.68%`์ด๋ฉฐ `revision="v1.0"` ํ๊ทธ์์ ๋์ผํ๊ฒ ์ฌํ๋ฉ๋๋ค.)*---
### 3. ์๋ ค์ง ํ๊ณ ๋ฐ ๊ฒ์ถ๊ธฐ ์กฐํฉ ๊ฐ์ด๋### 3. v2.0 ์ฃผ์ ๊ธฐ์ ์ ๊ฐ์ ์
- **๊ธฐ๋ณธ ๊ตฌ์ฑ (`PP-OCRv5_mobile_det`) vs ํ์ฅ ๊ตฌ์ฑ (`PP-OCRv6_medium_det`)**: ๊ธฐ๋ณธ ์คํฌ๋ฆฝํธ๋ ์๋ ๋ค์ด๋ก๋๋๋ `PP-OCRv5_mobile_det`๋ก ๊ฐ๋ณ๊ฒ ์คํ๋๋ฉฐ, ์ธ๋ก๋ก ๊ธด ์์์ฆ์ 1์๋ฆฌ ์๋(`1`, `2`) ๋ฏธ๊ฒ์ถ์ ์ค์ด๊ณ ์ถ์ ๋๋ ๊ณต์ `PP-OCRv6_medium_det` + SAHI ํ์ผ๋ง ์กฐํฉ์ ๊ถ์ฅํฉ๋๋ค(์ํ 1์๋ฆฌ ์ซ์ ๊ฒ์ถ ์ฌํ์จ `68.9% โ 85.1%`).1. **์์์
๊ฒ์ ์์ Gold ํ์ต ๋ฐ์ดํฐ `+28.2%` ํ์ฅ ๋ฐ ๋์ ์์ ์ ๊ฑฐ**: ์ ๊ท ์์์ฆ 127์ฅ์์ ์ง์ ์๊ฐ ๊ฒ์๋ฅผ ๊ฑฐ์น `1,357`์ค์ ์์ Gold ๊ณ์ธต์ผ๋ก ์น๊ฒฉ(`4,818 โ 6,175`์ค)ํ๊ณ , ์ฐ์ฌ ์ดฌ์ ์ค๋ณต ์์ ์ ์ ๋ฐฐ์ ํ์ต๋๋ค.2. **`RecAug: null` ์๋ฌต์ ์๋ฐ์ ยท์๊ณก ๋ฒ๊ทธ ์ ๊ฑฐ ๋ฐ `BN_L2 == 0.0` ๋ฌด๊ฒฐ์ฑ ๋ณด์ฅ**: PaddleOCR ์ค์ ์์ `RecAug: null` ๊ธฐ์ฌ ์ ๊ธฐ๋ณธ 40% ํ๋ฅ ๋ก ์๋ฐ์ ยท๊ธฐํ ์ํ์ด ์๋ํ๋ ๋ฌธ์ ๋ฅผ ์ ๊ฑฐํ๊ณ , 302๊ฐ BatchNorm ์ด๋ํต๊ณ ํ
์ ๋ณํ๋ฅผ `0.0`์ผ๋ก ์์ ๊ณ ์ ํ์ต๋๋ค.3. **๋ฌด์ค๋ฅ(`Zero-False-Repair`) ์์์ฆ ์ ์ฐ ํ์ & ์ญ์ฐ ๋ณต์ ๋ชจ๋(`settlement.py`) ๋ด์ฅ**: ์๊ฐ ๋ถ๋ฆฌ ์ด์ก(`๊ณ ๊ธ ์ก`, `์ ์ ๊ธ ์ก`) ์ธ์ ๋ฐ ์๊ณ ์ค๋ณตํฉ์ฐ์ ๋ฐฉ์งํ๋ 3๊ตฌ์ญ ํ์์ ์ด์ ์ฌ ๋จ์ผ ์ซ์ ์ค๋
๋ณต์๊ธฐ(๋จ์ผ ์ค๋
๋ณต์ ์ ๋ฐ๋ **`100.0%`**, ์ ์ ์์์ฆ ์ค์์ **`0๊ฑด`**)๋ฅผ ์ ํ ์ต์
(`--settlement`)์ผ๋ก ํจ๊ป ์ ๊ณตํฉ๋๋ค.
---
### 4. ์๋ ค์ง ํ๊ณ ๋ฐ ๊ฒ์ถ๊ธฐ ์กฐํฉ ๊ฐ์ด๋
- **๋จ์ผ ์ค ํฌ๋กญ ํ๊ฐ(`~1.0~2.4%`) vs ํต์ง ์์์ฆ E2E ํ๊ฐ(`3.1~3.6%`)์ ์ฐจ์ด**: ํต์ง ์์์ฆ E2E ์ ์์๋ ์ธ์๊ธฐ ์ค๋ฅ๋ฟ ์๋๋ผ ๊ฒ์ถ๊ธฐ ๋ฐ์ค ๋๋ฝ ๋ฐ ์๋ ๊ธฐํธ ์ ๋จ ์์ค์ด ํจ๊ป ํฌํจ๋ฉ๋๋ค. ์ธ๋ก๋ก ๊ธด ์์์ฆ์ 1์๋ฆฌ ์๋(`1`, `2`) ๋ฏธ๊ฒ์ถ์ ์ค์ด๊ณ ์ถ์ ๋๋ ๊ณต์ `PP-OCRv6_medium_det` + SAHI ํ์ผ๋ง ์กฐํฉ์ ๊ถ์ฅํฉ๋๋ค(1์๋ฆฌ ์ซ์ ๊ฒ์ถ ์ฌํ์จ `68.9% โ 85.1%`).- **์ด์ฅ๋ฌธ ํ ๋ฐ ์ฌํ ๋ฌผ๋ฆฌ ํผ์**: ํ์ต ์
๋ ฅ ํญ(`320ร48`) ๋๋น ๋งค์ฐ ๋์ ์๋ด๋ฌธ/๋ง์คํน ํ์ด๋ ์ฌํ๊ฒ ๊ตฌ๊ฒจ์ง ์ด์ ์ฌ ์์์ฆ, ๊ธ๊ฒฉํ ํ์ /๋น ๋ฐ์ฌ ํ๊ฒฝ์์๋ ๊ฒ์ถ ๋ฐ์ค ๊ฒฝ๊ณ ์ ๋จ์ผ๋ก ์ธํด ์ธ์๋ฅ ์ด ๋ฎ์์ง ์ ์์ต๋๋ค.
---
### 4. ์ฌ์ฉ ๋ฐฉ๋ฒ### 5. ์ฌ์ฉ ๋ฐฉ๋ฒ
```bash# ๊ธฐ๋ณธ ์คํ (PP-OCRv5_mobile_det ์๋ ๋ก๋ + ๋ณธ v2.0 ์ธ์๊ธฐ)6 unmodified linespython predict.py receipt.jpg --revision v1.0```
### 5. ํฌํจ ํ์ผ ๋ฐ ๋ผ์ด์ ์ค### 6. ํฌํจ ํ์ผ ๋ฐ ๋ผ์ด์ ์ค
- `inference.json` / `inference.pdiparams` (`13.34 MB`) / `inference.yml` โ PaddleOCR ์ถ๋ก ๋ชจ๋ธ ๋ฐ ์ฌ์ ์ค์ - `provenance.json` โ ๋ฒ์ , BN ๋ฌด๊ฒฐ์ฑ ๋ฐ SHA-256 ์ฒดํฌ์ฌ ์ ๋ณดREADME.md+71-25