shartoo / luna16_multi_size_3dcnn

An implement of paper "Multi-level Contextual 3D CNNs for False Positive Reduction in Pulmonary Nodule Detection"
111 stars 45 forks source link

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

Open qiuliwang opened 6 years ago

qiuliwang commented 6 years ago

这是个很棒的项目,处理数据的部分没有太大问题就跑出来了,但是在训练过程中出现了一下问题: Traceback (most recent call last): File "main.py", line 16, in model.inference(normalazation_output_path,test_path,0,True) File "/home/wangqiuli/Documents/luna16_multi_size3dcnn/model.py", line 145, in inference ,summary = sess.run([train_step, merged],feed_dict =feed_dict) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 900, in run run_metadata_ptr) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1104, in _run np_val = np.asarray(subfeed_val, dtype=subfeed_dtype) File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 492, in asarray return array(a, dtype, copy=False, order=order) ValueError: setting an array element with a sequence. 请问作者能否帮忙解答一下

YunhengWu-IB commented 6 years ago

我也遇到了这个问题,作者能否帮忙解答一下呢?

shartoo commented 6 years ago

可否检查下数据呢? 我这边没有出现这个问题。这个错误的意思是 赋值有问题

zp678 commented 6 years ago

我也遇到同样的问题,请问大家解决了没有,可否帮忙解答一下?万分感谢

zp678 commented 6 years ago

@shartoo ,请问作者,测试数据和训练数据的维度是否是一样的,都是4维?

qiuliwang commented 6 years ago

@zp678 我个人认为是因为在测试某个分支的时候,不应当把三个尺度的数据都传回去测试。

zp678 commented 6 years ago

好的,谢谢您

2018-07-30 10:28 GMT+08:00 WangQL notifications@github.com:

@zp678 https://github.com/zp678 我个人认为是因为在测试某个分支的时候,不应当把三个尺度的数据都传回去测试。

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shartoo/luna16_multi_size_3dcnn/issues/5#issuecomment-408729615, or mute the thread https://github.com/notifications/unsubscribe-auth/AgiHjzpF7mNabunYCmPyZ0tUIZu6RXHOks5uLm9mgaJpZM4UUV4Q .

Johnhave commented 5 years ago

请问大家这个问题解决了吗?

qiuliwang commented 5 years ago

请问大家这个问题解决了吗?

测试单个尺度就行了

Johnhave commented 5 years ago

Traceback (most recent call last): File "main.py", line 16, in model.inference(normalazation_output_path,test_path,0,True) File "E:\jh\LUNA16\luna16_multi_size_3dcnn-master\model.py", line 133, in inference acc_test,loss = sess.run([accruacy,net_loss],feed_dict=test_dict) File "D:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 877, in run run_metadata_ptr) File "D:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1069, in _run np_val = np.asarray(subfeed_val, dtype=subfeed_dtype) File "D:\Program Files\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 492, in asarray return array(a, dtype, copy=False, order=order) ValueError: setting an array element with a sequence.