ethereon / caffe-tensorflow

Caffe models in TensorFlow
Other
2.8k stars 1.04k forks source link

executing caffe-tensorflow in tensorflow v1.2.0 #128

Open AirAI opened 7 years ago

AirAI commented 7 years ago

Is there anybody executing caffe-tensorflow in tensorflow v1.2.0. Thx.

mu001999 commented 7 years ago

I am. But there is a little problem when executing caffe-tensorflow in tensorflow v1.2.0

AirAI commented 7 years ago

@MU001999 Thx. I have successfully executed caffe-tensorflow in tensorflow v1.2.0. What is your problem?

mu001999 commented 7 years ago

@AirAI When I run classify.py, many problems, for example the tf.pack is not in 1.2.0, have you solved them ? And do you know the version of the tensorflow of caffe-tensorflow ?

AirAI commented 7 years ago

@MU001999 The default version of tensorflow is v0.8.0. If you want to execture it in tensorflow v1.2.0,please do the following changes.

example/imagenet/dataset.py tf.pack() -> tf.stack() tf.image.resize_images(img, new_shape[0], new_shape[2]) -> rf.image.resize_images(img,new_shape) tf.reverse(img,[False,False,True]) -> tf.reverse(img,[2])

kaffe/tensorfow/network.py tf.concat(concat_dim=axis, values=inputs, name=name) -> tf.concat(axis=axis, values=inputs, name=name)

mu001999 commented 7 years ago

@AirAI Thx so much!