Browse Source

update installation readme

tags/v0.20
Esther2013 Haiping 5 years ago
parent
commit
d028a2841a
1 changed files with 27 additions and 28 deletions
  1. +27
    -28
      tensorflowlib/README.md

+ 27
- 28
tensorflowlib/README.md View File

@@ -1,27 +1,12 @@
TensorFlow.NET pack all required libraries in architecture-specific assemblies folders per NuGet standard [Deprecated] .

We changed to use `Microsoft.ML.TensorFlow.Redist` to maintain the TensorFlow library.



### Download manually

Here are some pre-built TensorFlow binaries you can use for each platform:

- Linux
- CPU-only: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz
- GPU-enabled: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-1.14.0.tar.gz
- Mac: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz
- Windows
- CPU-only: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.14.0.zip
- GPU-enabled: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-1.14.0.zip

TensorFlow.NET pack all required libraries in architecture-specific assemblies folders per NuGet standard.


```powershell
PM> Install-Package TensorFlow.NET
PM> Install-Package SciSharp.TensorFlow.Redist
```


### Run in Linux ### Run in Linux


`Install-Package TensorFlow.NET`

Download Linux pre-built library and unzip `libtensorflow.so` and `libtensorflow_framework.so` into current running directory. Download Linux pre-built library and unzip `libtensorflow.so` and `libtensorflow_framework.so` into current running directory.


To run image recognition in Linux, please ensure some prerequisite libraries is install. To run image recognition in Linux, please ensure some prerequisite libraries is install.
@@ -33,20 +18,34 @@ sudo apt install libgdiplus


More information about [System.Drawing on Linux](<https://www.hanselman.com/blog/HowDoYouUseSystemDrawingInNETCore.aspx>). More information about [System.Drawing on Linux](<https://www.hanselman.com/blog/HowDoYouUseSystemDrawingInNETCore.aspx>).


### Run TensorFlow in GPU
Before running verify you installed CUDA and cuDNN (TensorFlow v1.15 is compatible with CUDA v10.0 and cuDNN v7.4), and make sure the corresponding cuda version is compatible.


#### Run in Mac OS
There is no GPU support for macOS.


### Run in Mac OS



### Tensorflow GPU for Windows

Before running verify you installed CUDA and cuDNN (TensorFlow v1.14 is compatible with CUDA v10.0 and cuDNN v7.4), and make sure the corresponding cuda version is compatible.
#### Tensorflow GPU for Windows


```powershell ```powershell
PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU
``` ```


#### Tensorflow GPU for Linux
```powershell
PM> Install-Package SciSharp.TensorFlow.Redist-Linux-GPU
```

### Download prebuild binary manually

Here are some pre-built TensorFlow binaries you can use for each platform:

- Linux
- CPU-only: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz
- GPU-enabled: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-1.15.0.tar.gz
- Mac: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.15.0.tar.gz
- Windows
- CPU-only: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.15.0.zip
- GPU-enabled: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-1.15.0.zip




### Build from source for Windows ### Build from source for Windows
@@ -69,7 +68,7 @@ https://www.tensorflow.org/install/source_windows


4. Install from local wheel file. 4. Install from local wheel file.


`pip install C:/tmp/tensorflow_pkg/tensorflow-1.14.0-cp36-cp36m-win_amd64.whl`
`pip install C:/tmp/tensorflow_pkg/tensorflow-1.15.0-cp36-cp36m-win_amd64.whl`


### Export more APIs ### Export more APIs




Loading…
Cancel
Save