当前位置: 代码迷 >> 综合 >> 解决module 'dlib' has no attribute 'load_rgb_image'
  详细解决方案

解决module 'dlib' has no attribute 'load_rgb_image'

热度:54   发布时间:2023-12-19 13:36:37.0

1.在生成对齐的头像相关图片的过程中 ,提示module 'dlib' has no attribute 'load_rgb_image'

默认环境的dlib版本需升级

解决办法

  1.pip uninstalled dlib

  2.pip install dlib

2.在特征码生成的头像 过程中 报

KeyError: "The name 'G_synthesis_1/_Run/concat:0' refers to a Tensor which does not exist. The operation, 'G_synthesis_1/_Run/concat', does not exist in the graph."

 tensorflow版本高了   

    重新安装  pip install tensorflow-gpu==1.14

  相关解决方案