-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
50 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# -*- encoding: utf-8 -*- | ||
# @Author: SWHL | ||
# @Contact: [email protected] | ||
""" | ||
以下测试用例在以下环境中可以全部通过 | ||
OS: macOS 15.1.1 (24B91) | ||
Python: 3.10.13 | ||
paddlepaddle: 3.0.0b2 CPU | ||
""" | ||
|
||
import sys | ||
from pathlib import Path | ||
from typing import List | ||
|
@@ -27,7 +34,7 @@ def test_long_img(): | |
download_file(img_url, save_path=img_path) | ||
result, _ = engine(img_path) | ||
assert result is not None | ||
assert len(result) == 55 | ||
assert len(result) == 53 | ||
img_path.unlink() | ||
|
||
|
||
|
@@ -62,7 +69,7 @@ def test_transparent_img(img_name: str, gt: str): | |
( | ||
"test_letterbox_like.jpg", | ||
2, | ||
"A::取决于所使用的执行提供者,它可能没有完全支持模型中的所有操作。回落到CPU操作可能会导致性能速度的下降。此外,即使一个操作是由CUDAeXecution", | ||
"A::取决于所使用的执行提供者,它可能没有完全支持模型中的所有操作。回落到CPU操作可能会导致性能速度的下降。此外,即使一个操作是由CUDAexecution", | ||
), | ||
("test_without_det.jpg", 1, "在中国作家协会第三届儿童文学"), | ||
], | ||
|
@@ -79,7 +86,7 @@ def test_only_det(): | |
result, _ = engine(img_path, use_det=True, use_cls=False, use_rec=False) | ||
|
||
assert len(result) == 18 | ||
assert result[0][0] == [5.0, 2.0] | ||
assert result[0][0] == [6.0, 2.0] | ||
|
||
|
||
def test_only_cls(): | ||
|
@@ -212,7 +219,7 @@ def test_input_three_ndim_one_channel(): | |
), | ||
( | ||
"text_vertical_words.png", | ||
["已", "取", "之", "時", "不", "參", "一", "人", "见", "而"], | ||
["已", "取", "之", "時", "不", "參", "一", "人", "見", "而"], | ||
), | ||
( | ||
"issue_170.png", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# -*- encoding: utf-8 -*- | ||
# @Author: SWHL | ||
# @Contact: [email protected] | ||
""" | ||
以下测试用例在以下环境中可以全部通过 | ||
OS: macOS 15.1.1 (24B91) | ||
Python: 3.10.13 | ||
openvino: 2024.0.0 | ||
""" | ||
|
||
import sys | ||
from pathlib import Path | ||
from typing import List | ||
|
@@ -27,7 +34,7 @@ def test_long_img(): | |
download_file(img_url, save_path=img_path) | ||
result, _ = engine(img_path) | ||
assert result is not None | ||
assert len(result) == 55 | ||
assert len(result) == 53 | ||
img_path.unlink() | ||
|
||
|
||
|
@@ -62,7 +69,7 @@ def test_transparent_img(img_name: str, gt: str): | |
( | ||
"test_letterbox_like.jpg", | ||
2, | ||
"A::取决于所使用的执行提供者,它可能没有完全支持模型中的所有操作。回落到CPU操作可能会导致性能速度的下降。此外,即使一个操作是由CUDAeXecution", | ||
"A::取决于所使用的执行提供者,它可能没有完全支持模型中的所有操作。回落到CPU操作可能会导致性能速度的下降。此外,即使一个操作是由CUDAexecution", | ||
), | ||
("test_without_det.jpg", 1, "在中国作家协会第三届儿童文学"), | ||
], | ||
|
@@ -79,7 +86,7 @@ def test_only_det(): | |
result, _ = engine(img_path, use_det=True, use_cls=False, use_rec=False) | ||
|
||
assert len(result) == 18 | ||
assert result[0][0] == [5.0, 2.0] | ||
assert result[0][0] == [6.0, 2.0] | ||
|
||
|
||
def test_only_cls(): | ||
|
@@ -212,7 +219,7 @@ def test_input_three_ndim_one_channel(): | |
), | ||
( | ||
"text_vertical_words.png", | ||
["已", "取", "之", "時", "不", "參", "一", "人", "见", "而"], | ||
["已", "取", "之", "時", "不", "參", "一", "人", "見", "而"], | ||
), | ||
( | ||
"issue_170.png", | ||
|