README.md 1.28 KB
Newer Older
nilsfreyer's avatar
nilsfreyer committed
1
2
3
4
5
# Calculator MXNET


## Prerequisites
1. Ubuntu Linux 16.04 LTS or 18.04 LTS (experimental)
nilsfreyer's avatar
nilsfreyer committed
6
2. Deep Learning Framework **MXNet**
nilsfreyer's avatar
nilsfreyer committed
7
8
9
10
11
12
13
14
15
16
17
3. Armadillo (at least armadillo version 6.600 must be used) [Official instructions at Armadillo Website](http://arma.sourceforge.net/download.html).
4. OpenCV


## How to Run
Generate and build the code for the EMADL model by executing:

```
bash build.sh
```

Nils Freyer's avatar
Nils Freyer committed
18
Finally, run the calculator as follows:
nilsfreyer's avatar
nilsfreyer committed
19
```
20
./build/src/cpp/DigitCalculator resources/images/1.png resources/images/2.png resources/images/3.png resources/images/4.png resources/images/5.png resources/images/6.png
nilsfreyer's avatar
nilsfreyer committed
21
22
```

23
24
You can try different images from the provided `/resources/images` directory or even create your own images for testing. Note that the application program DigitCalculator will automatically rescale the given input image to the size 32x32.

nilsfreyer's avatar
nilsfreyer committed
25
26
27
28
29
30
31
32
33
34
35
36
37


## Troubleshooting Help

ERROR: HelperA.h:79:28: error: ‘sqrtmat’ was not declared in this scope.

FIX:
Copy compiled armadillo lib and include files to usr/lib and usr/include respectively. Replace YOUR_ARMADILLO_REPOSITORY and VERSION (e.g. 8.500.1) with your corresponding information:
```
cd YOUR_ARMADILLO_REPOSITORY/armadillo-VERSION
sudo cp libarmadillo* /usr/lib
cd YOUR_ARMADILLO_REPOSITORY/armadillo-VERSION/include
sudo cp -r * /usr/include