sadeepj / crfasrnn_keras

CRF-RNN Keras/Tensorflow version
http://crfasrnn.torr.vision
MIT License
603 stars 169 forks source link

> @panfengliHello, may I ask how this problem was finally solved?Thank you very much! #73

Open skq-5233 opened 4 years ago

skq-5233 commented 4 years ago

@panfengli Could you tell me that where should I fixed using the follow code?Thank you!

TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') ) TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )

g++ -std=c++11 -shared high_dim_filter.cc modified_permutohedral.cc -o high_dim_filter.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2

These can be run as terminal commands. I'm using tensorflow 1.10 and these commands removed the error for me

_Originally posted by @qchenclaire in https://github.com/sadeepj/crfasrnn_keras/issues/53#issuecomment-457768795_