File tree Expand file tree Collapse file tree
pdfocr-onnxtr/src/main/java/com/itextpdf/pdfocr/onnxtr Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments