#1797·Mask_RCNN

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

Author: bsivavenuCreated Oct 15, 2019Updated Feb 1, 2025

i downloaded mask_rcnn_coco.h5 weights and installed pycocotools also and when i try to run demo.ipynb. i am getting this error as AttributeError: module 'tensorflow' has no attribute 'log' , please help i am still learning. I installed all the requoremnts.txt file also. please help.


AttributeError Traceback (most recent call last) in 1 # Create model object in inference mode. ----> 2 model = modellib.MaskRCNN(mode="inference", model_dir=MODEL_DIR, config=config) 3 4 # Load weights trained on MS-COCO 5 model.load_weights(COCO_MODEL_PATH, by_name=True)

this is the error im getting