Skip to content

Commit 8bcdd9c

Browse files
committed
try chinese v5
1 parent 441e0c8 commit 8bcdd9c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/Sdcb.PaddleOCR.Tests/OnlineModelsTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ public class OnlineModelsTest(ITestOutputHelper console)
1212
[Fact]
1313
public async Task FastCheckOCR()
1414
{
15-
// EnglishV3 is not working in macos-arm64, so we use ChineseV4 instead: https://github.com/PaddlePaddle/Paddle/issues/72413
15+
// EnglishV3 is not working in macos-arm64, so we use ChineseV5 instead: https://github.com/PaddlePaddle/Paddle/issues/72413
1616
// ----------------------
1717
// Error Message Summary:
1818
// ----------------------
1919
// NotFoundError: No allocator found for the place, Place(undefined:0)
2020
// [Hint: Expected iter != allocators.end(), but received iter == allocators.end().] (at /Users/runner/work/PaddleSharp/PaddleSharp/paddle-src/paddle/phi/core/memory/allocation/allocator_facade.cc:381)
2121
// [operator < matmul > error]
2222
// The active test run was aborted. Reason: Test host process crashed
23-
FullOcrModel model = await OnlineFullModels.ChineseV4.DownloadAsync();
24-
model = model with { ClassificationModel = null }; // disable classification for now, because it is not working in macOS arm64
23+
FullOcrModel model = await (OnlineFullModels.ChineseV5 with { ClsModel = null }).DownloadAsync();
2524

2625
// from: https://visualstudio.microsoft.com/wp-content/uploads/2021/11/Home-page-extension-visual-updated.png
2726
byte[] sampleImageData = File.ReadAllBytes(@"./samples/vsext.png");

0 commit comments

Comments
 (0)