imageai在loadModel时:

imageai报错ImportError: cannot import name ‘get_custom_objects‘ from ‘tensorflow.python.keras.utils‘

或:

imageai报错ImportError: cannot import name ‘get_custom_objects‘ from ‘tensorflow.python.keras.utils‘

分别点开报错的文件densenet.py和subpixel.py文件,将对应报错行的‘tensorflow.python.keras.utils’改为‘tensorflow.keras.utils’,即去掉python即可

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2021-09-09
  • 2021-12-28
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-10-28
  • 2021-06-26
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案