Open GoogleCodeExporter opened 9 years ago
i have similar problem of "Matrix inverse failed with error" for Kannada lang.
However says mftraining success by saying "done" I did not proceed further due
to errors listed out.
OS: winXP(with sp3) + tesseractocr r-809.
Original comment by withbles...@gmail.com
on 2 Jan 2013 at 2:34
Provide example data for testing
Original comment by zde...@gmail.com
on 2 Jan 2013 at 6:59
Extact of CMD furnished below:
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0
Stopped with 0 merged, min dist 999.000000
Computing shape distances...
Stopped with 0 merged, min dist 999.000000
Computing shape distances...
Stopped with 0 merged, min dist 999.000000
Computing shape distances... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2
0 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 1
00 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 1
20 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 1
40 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 1
60 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 1
80 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 2
00 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 2
20 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 2
40 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 2
60 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 2
80 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 3
00 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 3
20 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 3
40 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 3
60 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 3
80 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 4
00 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 4
20 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 4
40 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 4
60 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 4
80 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 5
00 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 5
20 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 5
40 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 5
60 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 5
80 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 6
00 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 6
20 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 6
40 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 6
60 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 6
80 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 7
00 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 7
20 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 7
40 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 7
60 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 7
80 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 8
00 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 8
20 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 8
40 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 8
60 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 8
80 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 9
00 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 9
20 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 9
40 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 9
60 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 9
80 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1
000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1
016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1
032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1
048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1
064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
Distance = 0.000000: Distance = 0.000000: Distance = 0.000000: Distance = 0.0000
00: Distance = 0.000000: Distance = 0.004695: Distance = 0.004717: Distance = 0.
005181: Distance = 0.005405: Distance = 0.005714: Distance = 0.006579: Distance
= 0.010309: Distance = 0.011111: Distance = 0.011837: Distance = 0.013158: Dista
nce = 0.014815: Distance = 0.016484: Stopped with 17 merged, min dist 0.028736
Master shape_table:Number of shapes = 1060 max unichars = 3 number with multiple
unichars = 16
P:\recovered files\drive M\rao-files\chilume\test-3.02-r806\New Folder>..\mftrai
ning -S shapetable -F font_properties -U unicharset -O lang.unicharset rao.tun
ga.flash1.tr
Read shape table shapetable of 1060 shapes
Reading rao.tunga.flash1.tr ...
Clustering error: Matrix inverse failed with error 1.0236
Clustering error: Matrix inverse failed with error 9.25958
Clustering error: Matrix inverse failed with error 2.03005
Clustering error: Matrix inverse failed with error 3.71091
Clustering error: Matrix inverse failed with error 1.08046
Clustering error: Matrix inverse failed with error 3.65666
Clustering error: Matrix inverse failed with error 1.13612
Clustering error: Matrix inverse failed with error 1.64712
Clustering error: Matrix inverse failed with error 2.96951
Clustering error: Matrix inverse failed with error 5.37137
Clustering error: Matrix inverse failed with error 3.19508
Clustering error: Matrix inverse failed with error 3.68679
Clustering error: Matrix inverse failed with error 4.39452
Clustering error: Matrix inverse failed with error 82.9357
Clustering error: Matrix inverse failed with error 1.0763
Clustering error: Matrix inverse failed with error 11.034
Clustering error: Matrix inverse failed with error 1.33248
Clustering error: Matrix inverse failed with error 1.51108
Clustering error: Matrix inverse failed with error 1.57891
Clustering error: Matrix inverse failed with error 1.24616
Clustering error: Matrix inverse failed with error 1.58265
Clustering error: Matrix inverse failed with error 6.03406
Clustering error: Matrix inverse failed with error 1.64323
Clustering error: Matrix inverse failed with error 4.42677
Clustering error: Matrix inverse failed with error 4.20198
Clustering error: Matrix inverse failed with error 1.23091
Clustering error: Matrix inverse failed with error 1.06614
Clustering error: Matrix inverse failed with error 1.63946
Clustering error: Matrix inverse failed with error 5.41373
Clustering error: Matrix inverse failed with error 4.37728
Done!
P:\recovered files\drive M\rao-files\chilume\test-3.02-r806\New Folder>pause
Press any key to continue . . .
Original comment by withbles...@gmail.com
on 3 Jan 2013 at 11:08
Original comment by withbles...@gmail.com
on 3 Jan 2013 at 11:19
Attachments:
could not attach the rao.tunga.flash1.tr file since it exceeds 25mb
Original comment by withbles...@gmail.com
on 3 Jan 2013 at 11:23
I have also seen similar errors:
Clustering error: Matrix inverse failed with error 2.82138
Clustering error: Matrix inverse failed with error 17.4269
Done!
These were preceded by Total Miss regarding features such as..
(248,216):176
Testing feature weight 1:(40,184):96
Total miss
Testing feature weight 1:(40,200):16
Total miss
Testing feature weight 1:(40,200):96
Total miss
Testing feature weight 1:(56,168):96
Total miss
Testing feature weight 1:(56,168):96
Total miss
Testing feature weight 1:(56,200):16
Total miss
Testing feature weight 1:(72,152):96
Total miss
Testing feature weight 1:(72,152):96
Total miss
Testing feature weight 1:(72,216):16
Total miss
Testing feature weight 1:(72,216):16
Total miss
Testing feature weight 1:(88,136):96
Total miss
Testing feature weight 1:(88,216):224
Total miss
Testing feature weight 1:(104,120):96
Total miss
Testing feature weight 1:(104,120):96
Total miss
Testing feature weight 1:(104,200):224
Total miss
Testing feature weight 1:(104,200):224
Total miss
Testing feature weight 1:(120,104):96
Total miss
Testing feature weight 1:(120,104):96
Total miss
Testing feature weight 1:(120,168):224
Total miss
Testing feature weight 1:(120,184):224
Total miss
Testing feature weight 1:(136,88):96
Total miss
Testing feature weight 1:(136,88):96
Total miss
Testing feature weight 1:(136,152):224
Total miss
Testing feature weight 1:(136,168):224
Total miss
Testing feature weight 1:(152,56):96
Total miss
Testing feature weight 1:(152,72):96
Total miss
Testing feature weight 1:(152,136):224
Total miss
Testing feature weight 1:(152,152):224
Total miss
Testing feature weight 1:(168,40):96
Total miss
Testing feature weight 1:(168,56):96
Total miss
Testing feature weight 1:(168,120):224
Total miss
Testing feature weight 1:(168,120):224
Total miss
Testing feature weight 1:(184,40):144
Total miss
Testing feature weight 1:(184,104):224
Total miss
Testing feature weight 1:(200,40):144
Total miss
Testing feature weight 1:(200,56):144
Total miss
Testing feature weight 1:(200,88):224
Total miss
Testing feature weight 1:(200,88):224
Total miss
Testing feature weight 1:(216,56):144
Total miss
Testing feature weight 1:(216,72):224
Total miss
Testing feature weight 1:(216,72):224
Total miss
Features present:(40,40):32
(40,40):160
(56,56):32
(56,56):160
(72,72):32
(72,72):160
(72,88):32
(88,88):32
(88,88):160
(88,104):32
(104,88):160
(104,104):32
(104,104):160
(104,120):32
(120,120):32
(120,120):160
(136,136):32
(136,136):160
(136,152):32
(152,136):160
(152,152):32
(152,152):160
(152,168):32
(168,152):160
(168,168):32
(168,168):160
(184,168):160
(184,184):32
(184,184):160
(200,200):32
(200,200):160
(200,216):32
(216,216):32
(216,216):160
Minus one features:(40,40):16
Original comment by shreeshrii
on 17 Apr 2013 at 7:06
I have also seen similar errors:
Clustering error:Matrix inverse failed with error 1.02805.
Original comment by xf.blued...@gmail.com
on 4 Jul 2013 at 10:04
I tested with 3.03 Alpha - rev 897 - built using cygwin on win7.
Still getting this error in some cases:
.....
Reading san.shrilipi.exp8.tr ...
Warning: no protos/configs for sh1046 in CreateIntTemplates()
Warning: no protos/configs for sh1047 in CreateIntTemplates()
Warning: no protos/configs for sh1048 in CreateIntTemplates()
Done!
**** Finished MFTraining *****
**** Started CNTraining *****
...
...
Clustering ...
Clustering error: Matrix inverse failed with error 4.35229
Clustering error: Matrix inverse failed with error 3.92747
Original comment by shreeshrii
on 8 Nov 2013 at 2:15
Testing current version from git
still getting the errors, however the tarining script continues, so I presume
it is not fatal ...
=== Phase C: Clustering feature prototypes (cnTraining) ===
[Wed, Sep 3, 2014 3:58:23 PM] /usr/local/bin/cntraining -D
/home/User/tess304/tesstrain/hin/
/home/User/tess304/tesstrain/hin/hin.0sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.1sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.2sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.3sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.gargi.exp0.tr
/home/User/tess304/tesstrain/hin/hin.kalimati.exp0.tr
/home/User/tess304/tesstrain/hin/hin.sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.santipurot.exp0.tr
/home/User/tess304/tesstrain/hin/hin.siddhanta-calcutta.exp0.tr
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.0sanskrit2003.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.1sanskrit2003.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.2sanskrit2003.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.3sanskrit2003.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.gargi.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.kalimati.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.sanskrit2003.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.santipurot.exp0.tr ...
Reading C:/Home/UserShree/tess304/tesstrain/hin/hin.siddhanta-calcutta.exp0.tr
...
Clustering ...
Writing C:/Home/UserShree/tess304/tesstrain/hin/normproto ...
Clustering error: Matrix inverse failed with error 3.47351
Clustering error: Matrix inverse failed with error 1.68207
Clustering error: Matrix inverse failed with error 1.08806
Clustering error: Matrix inverse failed with error 2.21233
[Wed, Sep 3, 2014 4:03:54 PM] /usr/local/bin/shapeclustering -D
/home/User/tess304/tesstrain/hin/ -U
/home/User/tess304/tesstrain/hin/hin.unicharset -O
/home/User/tess304/tesstrain/hin/hin.mfunicharset -F
/home/user/tess304/langdata/font_properties -X
/home/User/tess304/tesstrain/hin/hin.xheights
/home/User/tess304/tesstrain/hin/hin.0sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.1sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.2sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.3sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.gargi.exp0.tr
/home/User/tess304/tesstrain/hin/hin.kalimati.exp0.tr
/home/User/tess304/tesstrain/hin/hin.sanskrit2003.exp0.tr
/home/User/tess304/tesstrain/hin/hin.santipurot.exp0.tr
/home/User/tess304/tesstrain/hin/hin.siddhanta-calcutta.exp0.tr
Original comment by shreeshrii
on 3 Sep 2014 at 10:38
Original issue reported on code.google.com by
dutchs.d...@gmail.com
on 17 Nov 2012 at 3:33