LeeYK / Deep-ing-Source

1 stars 0 forks source link

Inception-v3 by google #11

Open seriousran opened 7 years ago

seriousran commented 7 years ago

Reference: 텐서플로우(TensorFlow)를 이용한 ImageNet 이미지 인식(추론) 프로그램 만들기 http://solarisailab.com/archives/346

seriousran commented 7 years ago

1. 2017-08-09 17:27:35.925611: W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().

2. 2017-08-09 17:27:37.451892: E tensorflow/stream_executor/cuda/cuda_dnn.cc:352] Loaded runtime CuDNN library: 6021 (compatibility version 6000) but source was compiled with 5110 (compatibility version 5100). If using a binary install, upgrade your CuDNN library to match. If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.

3. 2017-08-09 17:27:37.452058: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms)

Aborted (core dumped)

seriousran commented 7 years ago

2=> https://developer.nvidia.com/rdp/cudnn-archive https://developer.nvidia.com/cuda-75-downloads-archive CuDNN v5.1 CUDA v7.5

remove cuda

sudo apt-get remove --auto-remove nvidia-cuda-toolkit

OR

sudo /usr/local/cuda-8.0/bin/uninstall_cuda_8.0.pl

OR

rm /usr/local/cuda/include/cudnn.h
rm /usr/local/cuda/lib64/libcudnn*

tar zxvf cudnn-7.5-linux-x64-v5.tgz
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*

but it does not work at all, so I relink them one by one like this:

ln -s libcudnn.so.5 -> libcudnn.so
ln -s libcudnn.so.5.1.3 -> libcudnn.so.5

lrwxrwxrwx 1 root root 13 Oct 21 11:26 libcudnn.so -> libcudnn.so.5*
lrwxrwxrwx 1 root root 17 Oct 21 11:25 libcudnn.so.5 -> libcudnn.so.5.1.3*
-rwxr-xr-x 1 root root 60696704 Oct 21 10:48 libcudnn.so.5.1.3*