Google colaboratory 属性错误:模块';tensorflow';没有属性';日志';在掩码RCNN实现期间

Google colaboratory 属性错误:模块';tensorflow';没有属性';日志';在掩码RCNN实现期间,google-colaboratory,faster-rcnn,Google Colaboratory,Faster Rcnn,我试着将日志改为math.log,并将tensorflow版本降级为1.4,但仍然出现错误。请有人帮忙。谢谢。 AttributeError:在用户代码中: /content/Mask_RCNN/mrcnn/model.py:390 call * roi_level = log2_graph(tf.sqrt(h * w) / (224.0 / tf.sqrt(image_area))) /content/Mask_RCNN/mrcnn/model.py:341 log2_graph

我试着将日志改为math.log,并将tensorflow版本降级为1.4,但仍然出现错误。请有人帮忙。谢谢。 AttributeError:在用户代码中:

/content/Mask_RCNN/mrcnn/model.py:390 call  *
    roi_level = log2_graph(tf.sqrt(h * w) / (224.0 / tf.sqrt(image_area)))
/content/Mask_RCNN/mrcnn/model.py:341 log2_graph  *
    return tf.log(x) / tf.log(2.0)

AttributeError: module 'tensorflow' has no attribute 'log'

此问题是由于向后兼容造成的

我使用
Python3.6
实现了以下要求:

numpy<2.0,>=1.16.0
scipy
Pillow
cython
matplotlib
scikit-image>=0.14.2
tensorflow==1.15.3
keras==2.2.4
opencv-python
h5py
imgaug
numpy=1.16.0
松软的
枕头
赛昂
matplotlib
scikit图像>=0.14.2
tensorflow==1.15.3
keras==2.2.4
opencv python
h5py
仪表