瀏覽代碼

Merge remote-tracking branch 'origin/master'

myhloli 1 年之前
父節點
當前提交
f4036a3566
共有 4 個文件被更改,包括 7 次插入10 次删除
  1. 5 7
      .github/workflows/benchmark.yml
  2. 1 1
      README.md
  3. 1 1
      README_zh-CN.md
  4. 0 1
      tests/test_cli/test_cli.py

+ 5 - 7
.github/workflows/benchmark.yml

@@ -30,14 +30,12 @@ jobs:
         fetch-depth: 2
     - name: check-requirements
       run: |
-        changed_files=$(git diff --name-only -r HEAD~1 HEAD)
-        echo $changed_files
-        if [[ $changed_files =~ "requirements.txt" ]] || [[ $changed_files =~ "requirements-qa.txt" ]]; then
-          pip install -r requirements.txt
-          pip install -r requirements-qa.txt
-        fi
+        pip install -r requirements.txt
+        pip install -r requirements-qa.txt
     - name: get-benchmark-result
       run: |
         echo "start test"
-        cd tools && python benchmark.py
+        echo $GITHUB_WORKSPACE
+        tree
+        cd $GITHUB_WORKSPACE && python tests/benchmark/benchmark.py
   

+ 1 - 1
README.md

@@ -110,7 +110,7 @@ After downloading the model weights, move the 'models' directory to a directory
 
 
 #### 3. Copy the Configuration File and Make Configurations
-
+You can get the magic-pdf.template.json file in the repository root directory.
 ```bash
 cp magic-pdf.template.json ~/magic-pdf.json
 ```

+ 1 - 1
README_zh-CN.md

@@ -102,7 +102,7 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
 下载后请将models目录拷贝到空间较大的ssd磁盘目录
 
 #### 3. 拷贝配置文件并进行配置
-
+在仓库根目录可以获得magic-pdf.template.json文件
 ```bash
 cp magic-pdf.template.json ~/magic-pdf.json
 ```

+ 0 - 1
tests/test_cli/test_cli.py

@@ -18,7 +18,6 @@ class TestCli:
         common.check_shell(cmd)
         #common.count_folders_and_check_contents(pdf_res_path)      
    
-
     # def test_pdf_specify_jsonl(self):
     #     """
     #     输入jsonl, 默认方式解析