-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing in colab #52
Comments
Maybe try: |
1.! python -m pip install Keras==2.3.1 tensorflow==2.1.0 After executing the requirements file we need to run the above two steps to run the code in colab |
After following your instructions from the above comment on colab, it gives this error after first epoch: NotImplementedError: numpy() is only available when eager execution is enabled. I tried: tf.disable_v2_behavior() Still same error....@Swathi-Gupta |
I have been trying to implement this code in colab but there is alot of version issue.
The requirements file have tensorflow=1.14.1 which is supported by cuda=10.0
My colab have tensorflow=2.2.0 which is supported by 10.1 and i'm getting the following error:
AttributeError Traceback (most recent call last)
in ()
----> 1 model = Xnet(backbone_name='resnet50', encoder_weights='imagenet', decoder_block_type='transpose') # build UNet++
7 frames
/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py in placeholder(shape, ndim, dtype, sparse, name)
513 x = tf.sparse_placeholder(dtype, shape=shape, name=name)
514 else:
--> 515 x = tf.placeholder(dtype, shape=shape, name=name)
516 x._keras_shape = shape
517 x._uses_learning_phase = False
AttributeError: module 'tensorflow' has no attribute 'placeholder'
Can there be any way in which the above version problem can be rectified?
The text was updated successfully, but these errors were encountered: