Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Fix rapid_strcture actions errors.

SWHL9eee447e6592
diff --git a/.github/workflows/gen_whl_to_pypi_rapid_layout.yml b/.github/workflows/gen_whl_to_pypi_rapid_layout.yml
index e83b3c4..d73ff71 100644
--- a/.github/workflows/gen_whl_to_pypi_rapid_layout.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapid_layout.yml
@@ -35,7 +35,7 @@ jobs:
ZIP_NAME=${RESOURCES_URL##*/}
DIR_NAME=${ZIP_NAME%.*}
unzip $DIR_NAME
- cp $DIR_NAME/resources/*.onnx python/rapid_structure/rapid_layout/models/
+ cp $DIR_NAME/*.onnx python/rapid_structure/rapid_layout/models/
cd python/rapid_structure
pip install -r requirements.txt
pytest tests/test_layout.py
diff --git a/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml b/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml
index a2b5fe3..5635e65 100644
--- a/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml
@@ -33,7 +33,7 @@ jobs:
DIR_NAME=${ZIP_NAME%.*}
unzip $ZIP_NAME
rm python/rapid_structure/rapid_orientation/models/.gitkeep
- mv $DIR_NAME/* python/rapid_structure/rapid_orientation/models/
+ mv $DIR_NAME/*.onnx python/rapid_structure/rapid_orientation/models/
cd python/rapid_structure
pip install -r requirements.txt
cd tests
diff --git a/.github/workflows/gen_whl_to_pypi_rapid_table.yml b/.github/workflows/gen_whl_to_pypi_rapid_table.yml
index 81574e2..7fc9129 100644
--- a/.github/workflows/gen_whl_to_pypi_rapid_table.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapid_table.yml
@@ -35,7 +35,7 @@ jobs:
ZIP_NAME=${RESOURCES_URL##*/}
DIR_NAME=${ZIP_NAME%.*}
unzip $DIR_NAME
- cp $DIR_NAME/resources/*.onnx python/rapid_structure/rapid_table/models/
+ cp $DIR_NAME/*.onnx python/rapid_structure/rapid_table/models/
cd python/rapid_structure
pip install -r requirements.txt
pip install rapidocr_onnxruntime