Skip to content

Commit 07a28b6

Browse files
committed
fix(ci): install opencv-python-headless for the TableFormer export step
docling_ibm_models's tf_predictor imports cv2, but publish-models.yml only installed docling_ibm_models/onnxscript/onnxruntime/huggingface_hub, so the export step failed with ModuleNotFoundError: No module named 'cv2'. scripts/pdf_setup.sh never hit this because it installs the full `docling` package instead, which pulls opencv in transitively. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DofkqhMuAJbL9arnnuVisL
1 parent 40bca49 commit 07a28b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-models.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Install TableFormer export deps
5858
continue-on-error: true
5959
id: tf-deps
60-
run: pip install docling_ibm_models onnxscript onnxruntime huggingface_hub
60+
run: pip install docling_ibm_models onnxscript onnxruntime huggingface_hub opencv-python-headless
6161

6262
- name: Export TableFormer
6363
if: steps.tf-deps.outcome == 'success'

0 commit comments

Comments
 (0)