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

前端 未结 5 726
一生所求
一生所求 2021-01-05 11:26

I am doing some task related to image captioning and I have loaded the weights of inception model like this

model = InceptionV3(weights=\'imagenet\')
         


        
5条回答
  •  忘掉有多难
    2021-01-05 11:36

    Change

    Import keras..
    

    to

    Import tensorflow.keras..
    

    where "something" refers to the module you want to import. It worked for me.

提交回复
热议问题