Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ithjz opened this issue Sep 8, 2017 · 5 comments

Comments

@ithjz
Copy link

ithjz commented Sep 8, 2017

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

@fendouai
Copy link
Owner

fendouai commented Sep 8, 2017

model 放好了,直接运行 run_model

@ithjz
Copy link
Author

ithjz commented Sep 8, 2017

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

@lvZic
Copy link

lvZic commented Mar 9, 2018

我是这个错误

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)]]

@fendouai
Copy link
Owner

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

@idreamsoft
Copy link

@ithjz 能共享下model 吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants