-
Notifications
You must be signed in to change notification settings - Fork 70
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
slice index out of bounds problem during training #36
Comments
Hi, I never had this issue before. From reading the error information it's difficult for me to guess the reason. You may want to have a step-by-step debugging about the data reading. |
Hi again @cchen-cc - I think because my dataset may have different format what you have. And problem is probably caused by defining labels in dataloader.py My aim is to do a binary segmentation, thus I have slightly changed the dataloader.py --> label_vol = tf.decode_raw(parser['label_vol'], tf.float32)
Let me know please if these are correct for defining data loader for binary segmentation problem? Thanks |
I'm not very sure, but I think the depth set in tf.one_hot to be 1 seems incorrect. |
(@cchen-cc ) Now getting the error below: OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0) |
@cchen-cc Hello. Sorry for commenting in between the discussion. But I'm facing the same error when trying to train, as mentioned above by @numancelik34 : Error - tensorflow.python.framework.errors_impl. OutOfRangeError: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0) I did refer to your answer relating to the same issue #13 #21 : whether the data paths stored in imagea_list and imageb_list are correct I paths and data in the variables is correctly taken, but still the issue seems to occur when shuffle_batch() is executed during sess.run(self.inputs) in main.py. @cchen-cc it would be great if you could provide any more inputs or suggestions to debug the issue. |
Same here @cchen-cc Let me know please if there is missing point here. Thanks |
@cchen-cc Thanks. The issue indeed was with the paths. It's solved for me now. |
Hi @muddasser27 - what type of dataset you are using - same with the one that SIFA paper implemented? or your own dataset? If it is your own dataset, then how is your data is composed? like the usual shape arrangement - 3 dims and no any slices? Thanks |
Hi @numancelik34 . I'm using the same dataset used in SIFA and shared by the the authors. |
@muddasser27 Congrats you've found the cause. |
@muddasser27 Here I see that you have successfully trained using the data set of the original author. I also try to train using the data set of the original author, but this error keeps appearing. How can I solve it? Or would you like to share your modified code? [07:35<73:03:58, 26.32s/it]iter 6: processing time 0.4044947624206543 During handling of the above exception, another exception occurred: Traceback (most recent call last): Caused by op 'shuffle_batch', defined at: OutOfRangeError (see above for traceback): RandomShuffleQueue '_2_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 1, current size 0) This problem always occurs when iterating over a certain number of steps. |
Getting following error while trying to adapt into my dataset. My dataset is composed of 256,256,3 for raw images and 256,256,1 for labels; but I use different type of images and not using slices. I try to work with binary segmentation problem.
ValueError: slice index 1 of dimension 3 out of bounds. for 'strided_slice_27' (op: 'StridedSlice') with input shapes: [?,256,256,1], [4], [4], [4] and with computed input tensors: input[1] = <0 0 0 1>, input[2] = <0 0 0 2>, input[3] = <1 1 1 1>.
Why getting this problem?
Thanks
The text was updated successfully, but these errors were encountered: