aurora95 / Keras-FCN

Keras-tensorflow implementation of Fully Convolutional Networks for Semantic Segmentation(Unfinished)
MIT License
650 stars 268 forks source link

File "/usr/local/lib/python3.5/dist-packages/keras_contrib-1.2.1-py3.5.egg/keras_contrib/backend/tensorflow_backend.py", line 10, in <module> ImportError: cannot import name '_postprocess_conv3d_output' #53

Closed OrdinaryChen closed 6 years ago

OrdinaryChen commented 7 years ago

The code raise this error when I try "python train.py " but I check the egg file and found the "from keras.backend.tensorflow_backend import _postprocess_conv3d_output" in line10. so I try to use print(dir()) to show what this module contains. but I can only see _preprocess_conv2d_input', '_preprocess_conv3d_input', '_preprocess_padding', there is no function named _postprocess_conv3d_output How can it be?

tomonari-t commented 6 years ago

@OrdinaryChen I had same problem. It causes keras-contrib's this iuuse #164.

I fixed the problem to make Keras version to 2.0.8 by pip.

pip install Keras==2.0.8

ahundt commented 6 years ago

yeah need to use keras 2 now