sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 958 forks source link

IndexError is out of Bounce #9

Open ghost opened 8 years ago

ghost commented 8 years ago

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

hunkim commented 8 years ago

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

hugovk commented 7 years ago

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

hunkim commented 7 years ago

Sure.

On Fri, Jan 13, 2017 at 7:29 AM, Hugo notifications@github.com 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 .