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: index 0 is out of bounds for axis 0 with size 0 #6

Open
ZHANGHUAHAI opened this issue Aug 22, 2018 · 0 comments
Open

IndexError: index 0 is out of bounds for axis 0 with size 0 #6

ZHANGHUAHAI opened this issue Aug 22, 2018 · 0 comments

Comments

@ZHANGHUAHAI
Copy link

ZHANGHUAHAI commented Aug 22, 2018

Dear Xin
I have an error while running the code:python main.py
====== Phase >>> train <<< ======
2018-08-25 16:34:55.208481: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
[*] Reading checkpoint...
[!] Load failed...
Traceback (most recent call last):
File "main.py", line 38, in
tf.app.run()
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "main.py", line 30, in main
model.train()
File "D:\miccai17-mmwhs-hybrid-master\ds_ft_hybrid_4ct\src\model.py", line 237, in train
batch_img, batch_label = get_batch_patches(img_clec, label_clec, self.inputI_size, self.batch_size, chn=1, flip_flag=True, rot_flag=True)
File "D:\miccai17-mmwhs-hybrid-master\ds_ft_hybrid_4ct\src\utils.py", line 57, in get_batch_patches
rand_img = img_clec[rand_idx[0]]
IndexError: index 0 is out of bounds for axis 0 with size 0
I hope that you can help me solve it.
Thanks
Zhang

@ZHANGHUAHAI ZHANGHUAHAI changed the title NameError: name 'ConfigParser' is not defined IndexError: list index out of range Aug 23, 2018
@ZHANGHUAHAI ZHANGHUAHAI changed the title IndexError: list index out of range IndexError: index 0 is out of bounds for axis 0 with size 0 Aug 25, 2018
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

1 participant