DENet icon indicating copy to clipboard operation
DENet copied to clipboard

TensorFlow 2 compatibility

Open jackgle opened this issue 5 years ago • 4 comments

It would be great if the DELayer was updated to be compatible with TF2

jackgle avatar Mar 15 '21 15:03 jackgle

Hello @jackgle I'm trying to run the example but I face many errors like cannot import name 'Layer' from 'tensorflow.python.keras.engine.base_layer' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/base_layer.py). can you help me run the example? Many thanks.

rohanali1798 avatar Aug 09 '21 10:08 rohanali1798

Which version of Tensorflow and Keras are you using? @rohanali1798

robertanto avatar Aug 10 '21 10:08 robertanto

@robertanto I just replicated the example. The libraries along with versions are mentioned in the requirements.txt file so I just installed that but I always get that kind of error that I mentioned above, I am unable to import get_denet from denet. I'm using Google Colab.

rohanali1798 avatar Aug 11 '21 06:08 rohanali1798

I used the following code block in the google colab and the error was removed:

!pip3 uninstall -y tensorflow

!pip3 insatll tensorflow==1.13.2

!pip3 install -r requirements.txt

To install the above libraries from the Linux terminal, just remove the ! from the beginning of each code. To install from the windows terminal, use pip instead of pip3.

Nazmus-Sanib avatar Sep 09 '21 18:09 Nazmus-Sanib