首先,最好从github上直接拷贝Mask_RCNN的官方文件到colab上,再进行安装。
! git clone https://github.com/matterport/Mask_RCNN.git
第二,目前tensorflow的版本默认是2.0的,需要调换成1.15的
%tensorflow_version 1.x
import tensorflow as tf
tf.__version__
第三,keras版本需要换成keras2.2.4
!pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple keras==2.2.4
每次colab断开之后,总是需要在进行新的环境配置