char-rnn-tensorflow icon indicating copy to clipboard operation
char-rnn-tensorflow copied to clipboard

IndexError is out of Bounce

Open ghost opened this issue 9 years ago • 3 comments

loading preprocessed files Traceback (most recent call last): File "train.py", line 75, in main() File "train.py", line 39, in main train(args) File "train.py", line 42, in train data_loader = TextLoader(args.data_dir, args.batch_size, args.seq_length) File "/home/onetipp/char-rnn/char-rnn-tensorflow/utils.py", line 22, in init self.create_batches() File "/home/onetipp/char-rnn/char-rnn-tensorflow/utils.py", line 52, in create_batches ydata[-1] = xdata[0] IndexError: index 0 is out of bounds for axis 0 with size 0

ghost avatar Feb 18 '16 13:02 ghost

Check out pr #25. Your sample size is too small.

hunkim avatar Apr 28 '16 13:04 hunkim

@thecerial PR #25 is merged, can this be closed?

hugovk avatar Jan 13 '17 06:01 hugovk

Sure.

On Fri, Jan 13, 2017 at 7:29 AM, Hugo [email protected] wrote:

@thecerial https://github.com/thecerial PR #25 https://github.com/sherjilozair/char-rnn-tensorflow/pull/25 is merged, can this be closed?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sherjilozair/char-rnn-tensorflow/issues/9#issuecomment-272371402, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3DV-EIwWilCDoPnvk8kxLynG2otWGZks5rRxnMgaJpZM4HdE2S .

hunkim avatar Jan 13 '17 15:01 hunkim