Closed HackyleShawe closed 5 years ago
您好!我看了您的博客和本项目,严格按照您博客的说明步骤进行,但是在第一步时我只拍了4k张照片。
在第二步时,执行“train_faces.py”源文件时,发生了如下错误: InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder_1' with dtype float and shape [?,2] [[node Placeholder_1 (defined at F:/ProgramDesign/Python-Spyder/FaceRe/train_faces.py:69) ]]
InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder_1' with dtype float and shape [?,2] [[node Placeholder_1 (defined at F:/ProgramDesign/Python-Spyder/FaceRe/train_faces.py:69) ]]
我对您的代码修改了两处: 注释了train_faces.py的第10行代码:# other_faces_path = './other_faces' 注释了train_faces.py的第50行代码:# readData(other_faces_path) 我的运行环境:win10、TensorFlow1.13.1、Python3.6、Anaconda Spyder3.3.4;
注释了train_faces.py的第10行代码:# other_faces_path = './other_faces'
注释了train_faces.py的第50行代码:# readData(other_faces_path)
请问这样该如何解决呢?(菜鸟自学AI,所提问题若有冒犯,还请见谅!)
您好!我看了您的博客和本项目,严格按照您博客的说明步骤进行,但是在第一步时我只拍了4k张照片。
在第二步时,执行“train_faces.py”源文件时,发生了如下错误:
InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder_1' with dtype float and shape [?,2] [[node Placeholder_1 (defined at F:/ProgramDesign/Python-Spyder/FaceRe/train_faces.py:69) ]]
我对您的代码修改了两处:
注释了train_faces.py的第10行代码:# other_faces_path = './other_faces'
注释了train_faces.py的第50行代码:# readData(other_faces_path)
我的运行环境:win10、TensorFlow1.13.1、Python3.6、Anaconda Spyder3.3.4;请问这样该如何解决呢?(菜鸟自学AI,所提问题若有冒犯,还请见谅!)