-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Davis edited this page Aug 29, 2018
·
6 revisions
- Anaconda3
- CMake (version >= 3.5)
- CUDA toolkit (version recommended by the Tensorflow installation)
- Windows only
- Visual studio 14 (2015)
Create a conda environment with the following packages:
- tensorflow-gpu
- opencv-python
- matplotlib
- joblib
- pillow
conda create --name interpolator python=3.5
conda activate interpolator
pip install tensorflow-gpu opencv-python matplotlib joblib pillow
In a terminal with the conda environment activated:
mkdir build
cd build
cmake ..
cmake --build . --config Release --target install
Note that the built custom ops (e.g libcorrelation_op.so) must be in the build folder.
In powershell with the conda environment activated:
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release --target install
Note that the built custom ops (e.g correlation_op.dll) must be in the build folder.
If cmake can't find CUDA, you may need to manually pass it the toolkit's root path:
cmake -D CUDA_TOOLKIT_ROOT_DIR=/path/to/cuda ..
If you get an error saying TF_LIB_DIR could not be found. Make sure you are running this in an environment with Tensorflow installed. that likely means you haven't activated your conda environment.