Egor Pugin
23b8036737
Update .travis.yml
2019-01-15 19:36:05 +03:00
Egor Pugin
3749d16e07
Update appveyor.yml
2019-01-15 19:16:55 +03:00
Egor Pugin
27d6e9d309
Fix sw build.
2019-01-15 19:13:49 +03:00
zdenop
9fd8f471f3
Merge pull request #2160 from stweil/opt-intsimdmatrix
...
Refactor IntSimMatrix and WeightMatrix
2019-01-15 15:28:30 +01:00
Stefan Weil
502bb624c2
More optimisations for IntSimdMatrix
...
* Move IntDotProductSSE. That allows inlining of the code.
* Improve IntDotProductSSE by moving some instructions.
* Remove unused num_input_groups_ from IntSimdMatrix.
* Re-order elements in IntSimdMatrix to avoid padding.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
95606398f5
Clean code for IntSimdMatrix
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
7fc7d28dd0
Compile files for AVX, AVX2 or SSE only when needed
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
a9a1035e55
Move IntSimdMatrixNative from IntSimdMatrix to unittest
...
It is only used for the unit test.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
d36231e3e4
Set best or user selected IntSimdMatrix
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
605b4d66c7
Replace dynamically allocated IntSimdMatrix instances by constants
...
Two header files are no longer needed and could be removed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
26be7c5d2e
Use constructor with parameters for IntSimdMatrix
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
e237a38405
Add const attributes to IntSimMatrix multiplier
...
IntSimMatrix no longer contains variable members.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
7c70147701
Move shaped weights from IntSimMatrix to WeightMatrix
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
ea4d0d354b
Format comment
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
Stefan Weil
c79d613b65
Replace ASSERT_HOST by assert
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 21:34:37 +01:00
zdenop
f75b2c1948
Merge pull request #310 from nickjwhite/hocrcharboxes
...
Character boxes in hOCR output
2019-01-14 19:19:04 +01:00
zdenop
752ce43d80
Merge pull request #2158 from stweil/misc
...
Several small fixes for unittests
2019-01-14 19:17:01 +01:00
Stefan Weil
c4de29d16f
unittest: Allow more time for apiexample_test when using a debug build
...
OCR of an image needs much more time than 55 s when running with
a debug build without optimisations on a slow host.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Stefan Weil
e67751633a
unittest: Fix comment
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Stefan Weil
a5283f293d
Add test for the C++ implementation of MatrixDotVector
...
Check also whether the sum of all results matches the expected value.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Stefan Weil
9adf6e442b
Revert 59fb3370bb
(-ffast-math)
...
It breaks intsimdmatrix_test.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Stefan Weil
5d3d251267
Fix build for unittest
...
Debug builds failed because libpthread (needed for googletest) was missing.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Nick White
ebbf907c56
Fix typo in hocr character box output
2019-01-13 16:28:31 +00:00
Nick White
4ce797b6f6
Fix hocr character box info to use new hocr renderer correctly
2019-01-13 13:01:14 +00:00
Nick White
c43e4501e3
Merge remote-tracking branch 'origin/master' into hocrcharboxes
2019-01-13 12:41:42 +00:00
zdenop
238cb219d5
Merge pull request #2152 from stweil/clean
...
Remove opencl_device_selection.h
2019-01-09 15:02:59 +01:00
zdenop
21e7e4ba3e
Merge pull request #2153 from stweil/documentation
...
Fix documentation for page segmentation mode 2
2019-01-09 15:02:14 +01:00
Stefan Weil
a0e6586e63
Fix documentation for page segmentation mode 2
...
It never worked, so add a comment that the implementation is missing.
Add also a to-do comment.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-09 13:51:44 +01:00
Stefan Weil
0fae848b58
OpenCL: Add comments to users of openclwrapper.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-09 12:11:00 +01:00
Stefan Weil
e0fc4f2945
Remove opencl_device_selection.h
...
Always use OpenCL device selection if OpenCL is enabled.
This fixes a regression which was introduced by commit
5c6a57b727
which removed
the definition for USE_DEVICE_SELECTION.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-09 12:09:56 +01:00
Egor Pugin
62b857554a
[sw] Depend on leptonica-master.
2019-01-08 23:52:29 +03:00
Egor Pugin
7732f65b4a
Activate sw builds.
2019-01-08 23:33:34 +03:00
zdenop
c39a95ca57
try to fix appveyor
2019-01-06 17:46:59 +01:00
zdenop
bd1c05c102
remove old line
2019-01-06 16:56:38 +01:00
zdenop
c41a80f107
respect cmake -DCPPAN_BUILD=OFF
2019-01-06 16:47:54 +01:00
zdenop
7a83bb32e1
Merge pull request #2147 from stweil/clean
...
OpenCL: Remove unused code
2019-01-05 19:57:40 +01:00
Stefan Weil
595bb7df16
OpenCL: Remove unused code
...
The OpenCL kernel pixSubtract is never used, so remove it.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-05 16:41:20 +01:00
zdenop
7c7c6ecaa8
Merge pull request #2144 from nickjwhite/fixheaders
...
Fix headers
2019-01-05 11:07:56 +01:00
Nick White
b8de06430d
Ensure baseapi.h header is used by commontraining.h regardless of autotools usage
2019-01-04 20:20:00 +00:00
Nick White
cd34ee55ec
Add necessary intproto.h header to protos.cpp
2019-01-04 20:19:54 +00:00
zdenop
f46e8e7e10
Merge pull request #2142 from rhardih/master
...
Avoid linking pthread on Android
2019-01-04 08:36:59 +01:00
René Hansen
ff2535f8ec
Avoid linking pthread on Android
2019-01-03 23:53:38 +01:00
zdenop
40e14b027f
Merge pull request #2140 from stweil/clean
...
Remove unused code
2019-01-03 14:14:36 +01:00
Stefan Weil
62b635a74e
Remove unused functions from cluster.cpp
...
Add also missing static attributes.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-03 13:16:31 +01:00
Stefan Weil
f76d8a14cd
Remove unused code from oldlist
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-03 12:27:10 +01:00
zdenop
3377ed2e25
Merge pull request #2139 from stweil/tensorflow
...
Add missing std namespace in tensorflow code
2019-01-03 11:49:51 +01:00
Stefan Weil
7719f80155
Add missing std namespace in tensorflow code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-03 11:15:36 +01:00
Stefan Weil
8a6fa452dc
Fix build for architectures without CPUID
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-03 09:32:36 +01:00
Egor Pugin
0aca60906d
Merge pull request #2137 from stweil/nullptr
...
Replace NULL by nullptr and fix a compiler warning
2019-01-02 11:45:43 +03:00
Stefan Weil
91af010200
Fix compiler warning
...
gcc warning:
src/training/text2image.cpp:694:35: warning:
ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
putenv expects a string which can be modified.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-01 22:49:04 +01:00