FaceRank icon indicating copy to clipboard operation
FaceRank copied to clipboard

运行FaceRank-master/run_model.py的方法,报错了,model的文件从百度下载放进去了

Open ithjz opened this issue 7 years ago • 5 comments

E:\ProgramData\Anaconda3\python.exe D:/360c/FaceRank-master/run_model.py (?, 128, 128, 24) (?, 64, 64, 24) (?, 64, 64, 96) (?, 32, 32, 96) 2017-09-08 10:56:33.912298: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-09-08 10:56:33.912298: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. Traceback (most recent call last): File "D:/360c/FaceRank-master/run_model.py", line 144, in pred_result_test=sess.run(pred_result, feed_dict={x: batch_xs,keep_prob: 1.}) [] File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 895, in run 0 run_metadata_ptr) (0,) File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, 128, 128, 3)'

Process finished with exit code 1

ithjz avatar Sep 08 '17 02:09 ithjz

model 放好了,直接运行 run_model

fendouai avatar Sep 08 '17 05:09 fendouai

model放好了 ,直接运行 run_model ,出现错误

E:\ProgramData\Anaconda3\python.exe D:/360c/FaceRank-master/run_model.py (?, 128, 128, 24) (?, 64, 64, 24) (?, 64, 64, 96) (?, 32, 32, 96) 2017-09-08 15:22:00.272525: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-09-08 15:22:00.272525: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. [] Traceback (most recent call last): 0 File "D:/360c/FaceRank-master/run_model.py", line 144, in (0,) pred_result_test=sess.run(pred_result, feed_dict={x: batch_xs,keep_prob: 1.}) File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 895, in run run_metadata_ptr) File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, 128, 128, 3)'

Process finished with exit code 1

ithjz avatar Sep 08 '17 07:09 ithjz

我是这个错误

InvalidArgumentError (see above for traceback): Unsuccessful TensorSliceReader c onstructor: Failed to get matching files on ./model/model.ckpt: Not found: FindF irstFile failed for: ./model : ϵͳ\udcd5Ҳ\udcbb\udcb5\udcbdָ\udcb6\udca8\udcb5\ud cc4·\udcbe\udcb6\udca1\udca3 ; No such process [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT , DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _d evice="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/ RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

lvZic avatar Mar 09 '18 10:03 lvZic

没有在 windows 上测试过,目前有这个问题的都是 windows 系统的,建议试一下 Ubuntu。

fendouai avatar Mar 10 '18 14:03 fendouai

@ithjz 能共享下model 吗

idreamsoft avatar May 15 '18 04:05 idreamsoft