Skip to content

Commit 9d0d67b

Browse files
committed
Fix typo in OnnxInputProperties docs
1 parent f3fa7e6 commit 9d0d67b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pdfocr-onnxtr/src/main/java/com/itextpdf/pdfocr/onnxtr/OnnxInputProperties.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public class OnnxInputProperties {
4747
public static final int EXPECTED_SHAPE_SIZE = 4;
4848

4949
/**
50-
* Per-channel mean, used for normalization. Should be EXPECTED_SHAPE_SIZE length.
50+
* Per-channel mean, used for normalization. Should be EXPECTED_CHANNEL_COUNT length.
5151
*/
5252
private final float[] mean;
5353

5454
/**
55-
* Per-channel standard deviation, used for normalization. Should be EXPECTED_SHAPE_SIZE length.
55+
* Per-channel standard deviation, used for normalization. Should be EXPECTED_CHANNEL_COUNT length.
5656
*/
5757
private final float[] std;
5858

@@ -69,8 +69,8 @@ public class OnnxInputProperties {
6969
/**
7070
* Creates model input properties.
7171
*
72-
* @param mean per-channel mean, used for normalization. Should be EXPECTED_SHAPE_SIZE length
73-
* @param std per-channel standard deviation, used for normalization. Should be EXPECTED_SHAPE_SIZE length
72+
* @param mean per-channel mean, used for normalization. Should be EXPECTED_CHANNEL_COUNT length
73+
* @param std per-channel standard deviation, used for normalization. Should be EXPECTED_CHANNEL_COUNT length
7474
* @param shape target input shape. Should be EXPECTED_SHAPE_SIZE length
7575
* @param symmetricPad whether padding should be symmetrical during input resizing
7676
*/

0 commit comments

Comments
 (0)