module keras engine topology has no attribute load weights from hdf5 group by name

0 votes

Hi Guys,

I want to use Mask-RCNN demo.py in my Jupiter notebook but when I ran the demo code in part of Create Model and Load Trained Weights I faced the below error.

AttributeError: module 'keras.engine.topology' has no attribute 'load_weights_from_hdf5_group_by_name'

How can I solve this error?

Jul 13, 2020 in Machine Learning by akhtar
• 38,180 points
433 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to clean your build dir first. Then in the mrcnn/model.py file, replace the "topology" with "saving". Now run your code using the below command.

$ python setup.py install

I hope it will work.

answered Jul 13, 2020 by MD
• 95,140 points

Related Questions In Machine Learning

0 votes
1 answer

AttributeError: module 'cv2.cv2' has no attribute 'face_LBPHFaceRecognizer'

Hi@MD, LBPHFaceRecognizer module comes from a package named ...READ MORE

answered Apr 20, 2020 in Machine Learning by akhtar
• 38,180 points
7,025 views
0 votes
1 answer

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

Hi@akhtar, There may be problem in the versions. ...READ MORE

answered Apr 21, 2020 in Machine Learning by MD
• 95,140 points
7,077 views
0 votes
1 answer

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

Hi@akhtar, Tensorflow 2.0 has eager_execution enabled by default and ...READ MORE

answered Apr 21, 2020 in Machine Learning by MD
• 95,140 points
1,008 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'estimator'.

Hi@akhtar, There was an environment issue, tensorflow was ...READ MORE

answered Apr 23, 2020 in Machine Learning by MD
• 95,140 points
1,126 views
0 votes
1 answer

AttributeError: module 'coco' has no attribute 'CocoConfig'

Hi@akhtar, You need to import the coco module ...READ MORE

answered Jul 13, 2020 in Machine Learning by MD
• 95,140 points
335 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,991 views
0 votes
0 answers
0 votes
1 answer

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

Hi@Usman, It seems you are using an older ...READ MORE

answered Jul 18, 2020 in Machine Learning by MD
• 95,140 points
2,058 views
0 votes
1 answer

AttributeError: module 'matplotlib' has no attribute 'scatter'

Hi@akhtar, To avoid this error, make sure you ...READ MORE

answered Apr 16, 2020 in Machine Learning by MD
• 95,140 points
3,845 views