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

ValueError: setting an array element with a sequence. #13

Open
fengzifrank opened this issue Oct 31, 2018 · 1 comment
Open

ValueError: setting an array element with a sequence. #13

fengzifrank opened this issue Oct 31, 2018 · 1 comment

Comments

@fengzifrank
Copy link

您好 运行mscnn_train程序时,将百度云盘的数据路径加入后

Instructions for updating:
Use tf.global_variables_initializer instead.
Not found checkpoint file
WARNING:tensorflow:Passing a GraphDef to the SummaryWriter is deprecated. Pass a Graph object instead, such as sess.graph.
Traceback (most recent call last):
File "D:/视频/人群计数论文/mscnn-master/mscnn_train.py", line 161, in
tf.app.run()
File "D:\python3.5\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "D:/视频/人群计数论文/mscnn-master/mscnn_train.py", line 157, in main
train()
File "D:/视频/人群计数论文/mscnn-master/mscnn_train.py", line 119, in train
_, loss_value = sess.run([train_op, loss], feed_dict={image: np_xs, label: np_ys})
File "D:\python3.5\lib\site-packages\tensorflow\python\client\session.py", line 767, in run
run_metadata_ptr)
File "D:\python3.5\lib\site-packages\tensorflow\python\client\session.py", line 938, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "D:\python3.5\lib\site-packages\numpy\core\numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)

报这个错误 是不是需要将图片统一处理为同一大小

@Ling-Bao
Copy link
Owner

Ling-Bao commented Nov 1, 2018

怀疑是TensorFlow版本不同导致,项目利用tensorflow==1.0.0进行开发,目前仅在ubuntu16.04上进行过测试。

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

2 participants