I am working in Kaggle's notebook on an image segmentation problem. So far I did not have a problem installing TensorFlow 1.5 and Keras 2.1.5 so I can work with the Mask R-CNN model. But now I am getting this error:
I would appreciate the help. I just don't understand how to fix it.
I install Tensorflow and Keras as I have always done:
!pip install tensorflow==1.5
!pip install keras==2.1.5
import tensorflow
import keras
Until yesterday it worked!
Check Settings in your Kaggle notebook. Internet must be set to - On.
Related
I was trying to implement Fast RCNN model on my custom dataset using the google colab ROBOFLOW-tensorflow-object-detection-faster-rcnn.ipynb, but when I run the 'Install required packages' section ,Iam getting the error 'cannot import name 'get_config' from 'tensorflow.python.eager.context' . I tried to upgrade tensorflow and Keras , but not working
Tried Upgrade of tensorflow
Also trying to locally download the repository to try to import from tensorflow. Please help
Try to upgrade the tensorflow:
pip install --upgrade tensorflow
pip install --upgrade tensorflow-gpu
For me TF2.9 worked for the same ROBOFLOW colab notebook:
!yes|pip uninstall tensorflow
!pip install tensorflow==2.9
First of all, I apologize that my English is not good for you to understand.
Currently, I am doing computer vision using tensorflow version 1.14. In the process, the following problem ocurred in the process of rotating the model using GPU.
AttributeError: module 'tensorflow._api.v1.config' has no attribute 'set_visible_devices'
The current development environment is as follows.
Python: 3.7.9
conda: 4.8.3
tensorflow: 1.14.0
keras: 2.3.1
In addition, I currently have 4 gpu, and i want to use 2 gpu as if it were 1 gpu. Can you give me a good idea for this?
thank you.
It seems you need to upgrade the tensorflow because tf.config.set_visible_devices() function is available in latest version of tensorflow, you can use below code to upgrade the tensorflow:
!pip install --upgrade pip.
!pip install --upgrade tensorflow
You can follow the link to install the CPU/GPU version of tensorflow as per requirement and for tf.config.set_visible_devices() function related details, check here
I was getting the error "NotFoundError: No algorithm worked!" on an architecture that was developed based on the older versions of tensorflow (pre-2.0.0 versions), and that is run on Colab.
Now, Google Colab has an updated version of Tensorflow (post-2.0.0 versions) and Keras.
Following the question that was asked here I downgraded Tensorflow to 1.15.0 : How to downgrade tensorflow version in colab?
I used this command to downgrade Tensorflow :
!pip install tensorflow==1.15.0
import tensorflow as tf
Still, I have a problem importing Keras.
To solve the problem, I downgraded the Keras version to 2.2.4 using this command :
!pip install keras==2.2.4
I am using Jupiter Notebook installed with Anaconda distribution and I want to install Tensorflow.
I wrote
!pip install tensorflow
it installed it, but now when I want to import tensorflow, when I type
import tensorflow as tf
it gives me an error:
ImportError: DLL load failed with error code -1073741795
I searched for answers and questions related to this issue but nothing helped me. The most weird is that I managed to install and import tensorflow on another computer like this. I can`t find out what I am missing.
I have followed every step for installing keras but whenever I am trying to import keras it gives me an error No module named tensorflow. But I have already installed tensorflow.
I have two questions-
1. How can I solve this particular ImportError?
2. If possible can anyone give me a detailed step by step instruction on installing theano, tensorflow and keras? Please don't give any links to install keras because i have tried them all but they keep giving some kind of error or problem.
If possible please take a look at my other question since they are related No module named keras
Thank You
Try sudo -H python -m pip install --upgrade --force-reinstall tensorflow