weixin_39941732
weixin_39941732
2020-12-29 00:08

TypeError: Expected Operation, Variable, or Tensor, got 0 on precise-convert

after training a model i tried to convert the model into a .pb file using precise-convert

(.venv) user-VirtualBox:~/Desktop/hey_project/mycroft-precise$ precise-convert hey-project.net

i expected that to succeed, instead i got: TypeError: Expected Operation, Variable, or Tensor, got 0

full output

setup: Ubuntu 18.04 on virtual box 5.2.30 hosted by windows 10

该提问来源于开源项目:MycroftAI/mycroft-precise

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

9条回答

  • weixin_39926016 weixin_39926016 4月前

    I had the same problem and error... Have you fixed a solution yet?

    点赞 评论 复制链接分享
  • weixin_39618824 weixin_39618824 4月前

    I had the same problem and error too.

    点赞 评论 复制链接分享
  • weixin_39657444 weixin_39657444 4月前

    Did you find any solution for this problem?

    点赞 评论 复制链接分享
  • weixin_39974030 weixin_39974030 4月前

    Check your Keras version. I was getting the same error using Keras 2.3.1.

    I downgraded to 2.2.4 and retrained and now it's working.

    点赞 评论 复制链接分享
  • weixin_39618824 weixin_39618824 4月前

    It worked for me.

    点赞 评论 复制链接分享
  • weixin_39941732 weixin_39941732 4月前

    Downgrading Keras to 2.2.4 and retraining also worked for me.

    点赞 评论 复制链接分享
  • weixin_39657444 weixin_39657444 4月前

    After downgrading Keras to 2.2.4, I run precise-convert again. This time, I got this error: "TypeError: Unexpected keyword argument passed to optimizer: learning_rate"

    What can be the reason of it?

    点赞 评论 复制链接分享
  • weixin_39974030 weixin_39974030 4月前

    You need to retrain the model with the downgraded Keras version before you can export it.

    点赞 评论 复制链接分享
  • weixin_39922476 weixin_39922476 4月前

    what if you are using tensorflow.keras ?

    点赞 评论 复制链接分享

相关推荐