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

IndexError: list index out of range程序运行出错 #20

Open Cuihaoisme opened 5 years ago

Cuihaoisme commented 5 years ago

image

Traceback (most recent call last): File "/home/ch/luna_1/luna16_multi_size_3dcnn/data_prepare.py", line 267, in get_test_batch arr = np.load(npy) File "/root/Anaconda/lib/python3.6/site-packages/numpy/lib/npyio.py", line 370, in load fid = open(file, "rb") IsADirectoryError: [Errno 21] Is a directory: '/'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 16, in model.inference(normalazation_output_path,test_path,0,True) File "/home/ch/luna_1/luna16_multi_size_3dcnn/model.py", line 178, in inference test_batch,test_label = get_test_batch(test_path) File "/home/ch/luna_1/luna16_multi_size_3dcnn/data_prepare.py", line 278, in get_test_batch batch_array.append(batch_array[-1]) # some nodule process error leading nonexistent of the file, using the last file copy to fill 不知道什么原因,望解答!

shartoo commented 5 years ago

可能是你传入的路径有问题,你调试或者打印你传入的路径列表试试。