In the previous article, I explained how to resolve the following errors.
AttributeError: module 'tensorflow' has no attribute 'log'
Click here for details ↓
[AttributeError: The story of solving module'tensorflow' has no attribute'log'. ] (https://qiita.com/skperfarming/items/dc2e95476bb97c830856)
However, as I proceeded with the investigation, it was ** a problem with the version of tensorflow and keras **.
This is the actual version change, tensorflow 1.5.0 keras 2.0.8 Change to.
https://tech-blog.optim.co.jp/entry/2019/03/28/173000 According to you, first enter the following code in Google colaboratory.
#Get source from git
%cd /content
!git clone https://github.com/matterport/Mask_RCNN.git
#Get library
%cd /content/Mask_RCNN
!pip install -r requirements.txt
** It's important from here! ** ** Although it is not listed on the above page, put the following code after this.
!pip install tensorflow==1.5.0
!pip install keras==2.0.8
You can now specify the version and install. (Actually, the version installed when you ran requirements.txt I have uninstalled and re-installed the specified version. )
For some reason, even though the version is specified in requirements.txt The latest version will be installed.
If you have an essential solution, please let us know!
Recommended Posts