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

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

Open
Cuihaoisme opened this issue Apr 30, 2019 · 1 comment
Open

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

Cuihaoisme opened this issue Apr 30, 2019 · 1 comment

Comments

@Cuihaoisme
Copy link

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
Copy link
Owner

shartoo commented May 5, 2019

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

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