Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme to demonstrate Tensorflow installation #13

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
42 changes: 26 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,33 @@ Users should install the dependencies by the following requirments:

For the tensorflow extensions:

* libpng-dev
* libpng-dev
```bash
sudo apt install -y libpng-dev
```
* libjpeg-dev
* libtensorflow.so
* Please refer to the TensorFlow website for more details
```base
RUN wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.4.0.tar.gz \
&& tar -C /usr/local -xzf libtensorflow-cpu-linux-x86_64-2.4.0.tar.gz \
&& ldconfig
```
* libtensorflowlite\_c.so
* You can use the following commands to get libtensorflowlite\_c.so
```bash
# Download TensorFlow deps
wget https://github.com/second-state/ssvm-tensorflow-deps/releases/download/0.1.0/ssvm-tensorflow-deps-lite-0.1.0-linux-x64.tar.gz
tar -zxvf ssvm-tensorflow-deps-lite-0.1.0-linux-x64.tar.gz
cp ./libtensorflowlite_c.so /usr/local/lib
```
```bash
sudo apt install -y libjpeg-dev
```
* libtensorflow.so (please refer to [the TensorFlow website](https://www.tensorflow.org/install/lang_c) for more details)
```bash
cd ~
wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.4.0.tar.gz
sudo tar -C /usr/local -xzf libtensorflow-cpu-linux-x86_64-2.4.0.tar.gz
rm -rf libtensorflow-cpu-linux-x86_64-2.4.0.tar.gz
```
* libtensorflowlite\_c.so (you can use the following commands to get libtensorflowlite\_c.so)
```bash
cd ~
wget https://github.com/second-state/ssvm-tensorflow-deps/releases/download/0.1.0/ssvm-tensorflow-deps-lite-0.1.0-linux-x64.tar.gz
sudo tar -C /usr/local/lib -xzf ssvm-tensorflow-deps-lite-0.1.0-linux-x64.tar.gz
rm -rf ssvm-tensorflow-deps-lite-0.1.0-linux-x64.tar.gz
```
* Configure dynamic linker run-time bindings
```bash
cd /usrlocal/lib
sudo ldconfig
```

## Prepare environment

Expand Down