Views
No views yet
baidu/Unlimited-OCR.scripts/run_ocr_rocm.py for image and PDF OCR.scripts/rocm_container.sh for the ROCm PyTorch container.scripts/setup_container_env.sh for OCR dependencies without replacing the
ROCm PyTorch build.scripts/smoke_test.sh for a local smoke test.docs/AMD_VALIDATION.md for the validation snapshot from the tested machine.gfx1151docker.io/rocm/pytorch:rocm7.2.1_ubuntu24.04_py3.12_pytorch_release_2.9.12.9.1+rocm7.2.1.gitff65f5bc7.2.53211-e1a6bc56634.57.11git clone https://huggingface.co/corsairnui/Unlimited-OCR-AMD-Strix-Halo
2cd Unlimited-OCR-AMD-Strix-Halo
3bash scripts/rocm_container.sh bash scripts/setup_container_env.shbash scripts/rocm_container.sh bash -lc 'PYTHONPATH=$PWD/.deps:$PYTHONPATH python scripts/verify_rocm.py'1bash scripts/rocm_container.sh bash -lc 'PYTHONPATH=$PWD/.deps:$PYTHONPATH python scripts/make_sample_image.py'
2bash scripts/rocm_container.sh bash -lc 'PYTHONPATH=$PWD/.deps:$PYTHONPATH python scripts/run_ocr_rocm.py --image samples/strix_halo_ocr_sample.png --output-dir results/my_image --mode base --image-size 512 --max-length 2048'bash scripts/rocm_container.sh bash -lc 'PYTHONPATH=$PWD/.deps:$PYTHONPATH python scripts/run_ocr_rocm.py --pdf document.pdf --pdf-strategy pages --quality-profile excellent --quality-target 0.80 --excellent-pdf-dpi 220 --excellent-image-size 1024 --output-dir results/my_pdf --image-size 512 --pdf-dpi 120 --max-length 4096 --retry-image-size 1024 --retry-pdf-dpi 160'bash scripts/rocm_container.sh bash -lc 'PYTHONPATH=$PWD/.deps:$PYTHONPATH python scripts/run_ocr_rocm.py --pdf document.pdf --pdf-strategy pages --quality-profile high-quality --output-dir results/my_high_quality_pdf --image-size 1024 --pdf-dpi 300 --max-length 32768 --ngram-window 1024 --retry-image-size 1024 --retry-pdf-dpi 300'bash scripts/rocm_container.sh bash scripts/smoke_test.shexcellent profile:| Document | Pages | Word F1 vs embedded PDF text |
|---|---|---|
| Unlimited-OCR paper | 14/14 | 0.940 |
| IRS W-4 | 5/5 | 0.978 |
| Attention Is All You Need | 15/15 | 0.849 |
| Metric | Result |
|---|---|
| Completed cases | 8/8 |
| Mean word F1 | 0.886 |
| Mean Unicode char F1 | 0.886 |
| Throughput | 1.53 pages/min |
| Hard-loop alerts | 0 |
| Structure detected | 4 tables, 2 equations, 4 images, 2 captions |
| Non-Latin OCR characters | 4495 |