kevinlu1248 / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
0 stars 0 forks source link

Sweep: refactor e2e_eval from tools/end2end/eval_end2end.py to make it more modular and add unit tests in eval_end2end_tests.py #1

Open kevinlu1248 opened 10 months ago

kevinlu1248 commented 10 months ago
Checklist - [X] Extract `tools/end2end/eval_end2end.py` ✓ https://github.com/kevinlu1248/PaddleOCR/commit/a89267cdd5bf3191b68eeb37c4ad68434304c4b7 - [X] Create `tools/end2end/eval_end2end_tests.py` ✓ https://github.com/kevinlu1248/PaddleOCR/commit/236b30f4a1bb5b4ed354c5198eccfd4bb55df7eb - [X] Check `tools/end2end/eval_end2end_tests.py` ✓ ![Flowchart](http://24.199.78.105:8082/public/3f613d1c567aa58105de2eadc8d56c5524f1fda8d8871c6ffffa6fde3c234e10_1_flowchart.svg)
sweep-nightly[bot] commented 10 months ago

Here's the PR! https://github.com/kevinlu1248/PaddleOCR/pull/17.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/kevinlu1248/PaddleOCR/blob/47ff250c837ab72890c3ff98d6fa3f68e61f713d/tools/end2end/eval_end2end.py#L1-L175 https://github.com/kevinlu1248/PaddleOCR/blob/47ff250c837ab72890c3ff98d6fa3f68e61f713d/applications/PCB字符识别/PCB字符识别.md#L545-L625 https://github.com/kevinlu1248/PaddleOCR/blob/47ff250c837ab72890c3ff98d6fa3f68e61f713d/applications/轻量级车牌识别.md#L635-L745 https://github.com/kevinlu1248/PaddleOCR/blob/47ff250c837ab72890c3ff98d6fa3f68e61f713d/tools/end2end/readme.md#L5-L62 https://github.com/kevinlu1248/PaddleOCR/blob/47ff250c837ab72890c3ff98d6fa3f68e61f713d/tools/end2end/eval_end2end.py#L125-L192

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/refactor-e2e-eval-and-add-tests.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord