Skip to content

Commit a1e99c5

Browse files
committed
reshape primary input for paddle ocr table model
1 parent 35344c0 commit a1e99c5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

projects/PaddleOCR/Sdcb.OpenVINO.PaddleOCR/Models/TableRecognitionModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ internal TableRecognitionModel(IReadOnlyList<string> labels, bool mergeNoSpanStr
4848
}
4949
}
5050

51+
/// <inheritdoc/>
52+
public override void AfterReadModel(Model model)
53+
{
54+
model.ReshapePrimaryInput(new PartialShape(1, 3, 488, 488));
55+
}
56+
5157
/// <summary>
5258
/// Creates a new instance of the <see cref="FileTableRecognizationModel"/> class from a specified directory path and label path.
5359
/// </summary>

0 commit comments

Comments
 (0)